Convex + extentions
Has anyone made a working chrome extension with convex? If so, share links please?
10 Replies
@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
Okay thank you
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
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.
Well, have you got a convex + wxt starter?
Not yet
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
trying to find it, i didn't commit it so chances r low
I see. I'll dig in to this today and Tomorrow then, it might be a huge pain though
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.