npm.io
0.2.1 • Published 2d ago

@convex-localfirst/component

Licence
MIT
Version
0.2.1
Deps
0
Size
32 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

@convex-localfirst/component

A mountable Convex component that holds all local-first sync bookkeeping — the op ledger (idempotency), the change log (GC'd opportunistically after the retention window), the local→server id map, and per-row versions — so your app schema only carries its own tables.

npm install @convex-localfirst/component
// convex/convex.config.ts
import { defineApp } from "convex/server";
import localfirst from "@convex-localfirst/component/convex.config.js";

const app = defineApp();
app.use(localfirst);
export default app;

Peer dependency: convex. MIT

Keywords