Guides
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.
| Runtime | Guide |
|---|---|
| Cloudflare Durable Objects | Durable Objects |
| Cloudflare D1 | Cloudflare D1 |
| Node SQLite, better-sqlite3, native libsql | Node SQLite |
| Bun SQLite | Bun SQLite |
| Turso Cloud and libSQL | Turso and libSQL |
| Expo SQLite | Expo SQLite |
| sqlite-wasm in the browser | sqlite-wasm |
Every guide follows the same SQL-first loop:
- author
definitions.sql; - write runtime queries in a small
queries.sqlfile; - run
sqlfu draft; - run
sqlfu generate; - pass the generated wrapper a sqlfu client from the runtime adapter.