Exafunction / codeium-chrome

Free, ultrafast code autocomplete for Chrome
https://www.codeium.com/
MIT License
110 stars 16 forks source link

Expose a completions API on the window object for websites #27

Open supriyo-biswas opened 11 months ago

supriyo-biswas commented 11 months ago

Hi there,

I run a coding playground that uses Codemirror 6, and I'd like this extension to support my website.

I understand that Codemirror 6 is currently not supported. Since supporting Codemirror 6 is likely to involve some work, I'd like to ask for an API, exposed on the window object, which I can trigger with the editor text and provide autocompletions myself.

I understand that you may not want to inject Codeium's content scripts on every website out there, so I'm open to having my website added manually to the list of supported sites. In this request, I'm simply asking for an API to be exposed for websites which will be in the said (and as of yet not implemented) list.

pqn commented 11 months ago

This amounts to us implementing a JavaScript API layer on top of our RPC API layer. I think this would be a longer term effort.

It might be quicker to figure out a CodeMirror 6 solution.