Sara
Sara3w ago

Convex + extentions

Has anyone made a working chrome extension with convex? If so, share links please?
10 Replies
Sara
SaraOP3w ago
@Jackie Jaan Hello Jackie, I appreciate you contacting me regarding my. comment on "using convex with chrome extensions", and I would've preferred a thread or a reply here since its more beneficial for everybody. I don't like people contacting me directly, so If you have any questions feel free to send them here. not privatly I've started a repo, with wxt, and I'm still on the verge of making it work fully
Jackie Jaan
Jackie Jaan3w ago
Okay thank you
Sara
SaraOP3w ago
I'm also trying to make a main domain repo, that handles connecting the db with the client side, and to make auth fully managable with my convex instance I don't have a plan yet, but it does work according to claud
Barrel Of Lube
GitHub
GitHub - mefengl/wxt-starter: Maybe the best template based on wxt.
Maybe the best template based on wxt. Contribute to mefengl/wxt-starter development by creating an account on GitHub.
Sara
SaraOP3w ago
Well, have you got a convex + wxt starter?
Jackie Jaan
Jackie Jaan3w ago
Not yet
Sara
SaraOP3w ago
I belive what you need to do is add the cloud convex link to the manifest, and from there create a new convex instance, and export it, you'd need to use the same instance to make mutations+ queries work I'm back from travelling, I might make a working template soon if I have time
Barrel Of Lube
trying to find it, i didn't commit it so chances r low
Sara
SaraOP3w ago
I see. I'll dig in to this today and Tomorrow then, it might be a huge pain though
Barrel Of Lube
https://github.com/mefengl/wxt-starter/blob/main/src/entrypoints/background.ts, this is the service worker file, this keeps processes alive even after the extension popup has been minimized. https://github.com/mefengl/wxt-starter/tree/main/src/entrypoints/popup this is the react app. you essentially want to keep the convex subscriptions alive in the background with a separate hatch if there's a need to wait for updates and run stuff in the background, but if its just auth stuff and displaying data on demand then it should be relatively straight forward.

Did you find this page helpful?