SQLite backend for db0 — pure JavaScript via sql.js, zero native dependencies.
npm install @db0-ai/core @db0-ai/backends-sqliteimport { createSqliteBackend } from "@db0-ai/backends-sqlite";
// Persistent — file-backed
const backend = await createSqliteBackend({ dbPath: "./db0.sqlite" });
// In-memory — for tests
const testBackend = await createSqliteBackend({ dbPath: ":memory:" });
// Default — persistent at ./db0.sqlite
const defaultBackend = await createSqliteBackend();Works everywhere Node.js runs. No native compilation, no system SQLite dependency. Your data stays on your machine.
See the main db0 README for full documentation.
MIT