Skip to content
pre-alpha — the TypeScript API may still shift. The SQL won't.

Use these when you already know the runtime you want and need a complete project shape: config, schema files, query files, generated wrappers, adapter usage, and runtime migration notes.

For compact adapter snippets only, use Adapters. For external tools and service-specific helper modules, use Integrations.

RuntimeGuide
Cloudflare Durable ObjectsDurable Objects
Cloudflare D1Cloudflare D1
Node SQLite, better-sqlite3, native libsqlNode SQLite
Bun SQLiteBun SQLite
Turso Cloud and libSQLTurso and libSQL
Expo SQLiteExpo SQLite
sqlite-wasm in the browsersqlite-wasm

Every guide follows the same SQL-first loop:

  1. author definitions.sql;
  2. write runtime queries in a small queries.sql file;
  3. run sqlfu draft;
  4. run sqlfu generate;
  5. pass the generated wrapper a sqlfu client from the runtime adapter.