convex dev --local
any eta on
convex-local
? quite interested in that due to local-first 😄11 Replies
@Paul You can try it today! There are a few different efforts going one here.
Today, you can run
npx convex dev --local
and that will a binary locally for development only.
This doesn't sound particularly related to local-first as I understand it though, what is it you're looking for?
There's also work underway to make self-hosting easier, for more than just development.
But to me "local-first" usually means browser state, not your users running a server locally
Soon the npx convex dev --local
flow interface will be different, and we expect developing against a local binary to be the primary way developers use convex while developing, which decreases push latency among other things.The thread here: https://discord.com/channels/1019350475847499849/1308603658967191733
Ah gotcha, you're not talking about
--local
, but the local-first stuffThe poster mentioned local-first in their sentence so I thought that's what --local implied.
ah yeah my bad, I didn't read the full conversation, just saw Lee's command about now
npx convex dev --local
workedNo worries! I wasn't exactly sure either. But this definition of local does sound interesting though!
yeah I'm not sure which one they're talking about, reading now
but no timeline on the local-first-style bidirectional sync described in the stack posts
I have thought about the scenario where there is a local database and a remote database and a layer in-between like skipdb framework, which can then keep them both mutually consistent.
âž• this sounds interesting. my message above was responding to
Does convex not intend to maintain an update/migration path for self-host deployments? Will npx export, upgrade, npx import work (and is that what is advised)?and i sort of skimmed over this part, which deserves its own addressing
Trying to evaluate if convex-local might be a practical option for embedding in a(n offline-first) desktop application (and potentially isomorphically on the backend)
the
embedding in a(n offline-first) desktop applicationis what gleaned my interest. As that's something I'm doing as well.
Ah, yes. When I say local first embedding I'm talking about including convex in a desktop app/executable (e.g. https://v1.tauri.app/v1/guides/building/sidecar/).