Use bun:sqlite as the KV store for zero
Perfect for CLIs, TUIs, and desktop apps
bun add zero-bun-sqlite-storeimport { Zero } from "@rocicorp/zero";
import { bunSQLiteStoreProvider } from "zero-bun-sqlite-store";
const zero = new Zero({
kvStore: bunSQLiteStoreProvider(),
...
});Ideally this becomes part of @rocicorp/zero, working on a contribution.
This was tested with standard zero sqlite store test suite.
Running tests
bun install
bun test