Paul
Paul•4w ago

convex dev --local

any eta on convex-local? quite interested in that due to local-first 😄
11 Replies
ballingt
ballingt•4w ago
@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.
ballingt
ballingt•4w ago
Ah gotcha, you're not talking about --local, but the local-first stuff
Paul
PaulOP•4w ago
The poster mentioned local-first in their sentence so I thought that's what --local implied.
ballingt
ballingt•4w ago
ah yeah my bad, I didn't read the full conversation, just saw Lee's command about now npx convex dev --local worked
Paul
PaulOP•4w ago
No worries! I wasn't exactly sure either. But this definition of local does sound interesting though!
ballingt
ballingt•4w ago
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
Paul
PaulOP•4w ago
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.
lee
lee•4w ago
âž• 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)
Paul
PaulOP•4w ago
the
embedding in a(n offline-first) desktop application
is what gleaned my interest. As that's something I'm doing as well.
jcmoore
jcmoore•4w ago
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/).

Did you find this page helpful?