Deno and Fresh
Can the Convex client be imported as ESM from esm.sh? What kind of Deno support is there?
2 Replies
Yes, importing from esm.run or esm.sh works. Here this is: https://observablehq.com/@ballingt/hello-convex
Observable
Hello Convex
How do you get shared, reactive server-side state for an Observable notebook? There are many ways: AWS, firebase, a slick solution from Tom Larkworthy — and now there's one more, Convex. You can sign up for the Convex at convex.dev. To use Convex in a webapp or from Node.js the standard
npm install convex
etc. is recommended, but in Observable...I don't know about Deno support, I haven't tried it, but we'd be open to changes to make it work if there are any issues. There's no reason in theory that Convex clients shouldn't work in any JavaScript environment with either websockets (for live query updates) or HTTP (for normal DB mutations, queries, action). Would love to hear if this is working.