Templates
Overview of Quickback project templates. Choose the right starting point for your backend.
Quickback provides pre-configured templates to get you started quickly. Each template combines a runtime, database, and auth provider into a working project with an example feature.
Available Templates
| Template | Runtime | Database | Auth | Command |
|---|---|---|---|---|
cloudflare | Cloudflare Workers | D1 (SQLite) | Better Auth | quickback create cloudflare my-app |
bun | Bun | better-sqlite3 | Better Auth | quickback create bun my-app |
turso | Bun | LibSQL (Turso) | Better Auth | quickback create turso my-app |
What Each Template Includes
Every template scaffolds a complete project with:
quickback.config.ts— Pre-configured with the right providersdefinitions/features/— Exampletodosfeature with full security configuration- Database migrations — Ready to apply
- Deployment scripts —
npm run deployfor Cloudflare,npm startfor Bun
Choosing a Template
Cloudflare (Recommended for Production)
Best for production deployments. Runs on Cloudflare's global edge network with zero cold starts. Includes D1 (SQLite at the edge), KV storage, and R2 file storage.
- Free tier available (Workers free plan)
- Global edge deployment
- Built-in KV, R2, Queues, Vectorize
- Dual database mode (separate auth and features DBs)
Bun (Best for Local Development)
Best for local development and prototyping. Runs on Bun with a local SQLite file. No cloud account needed.
- No cloud setup required
- Fast local iteration
- SQLite file stored in
data/directory - Easy to switch to Cloudflare later
Turso (Best for Multi-Region)
Best when you need SQLite with multi-region replication. Uses LibSQL via Turso's managed service.
- Multi-region database replication
- SQLite compatibility
- Managed backups and branching
After Creating a Project
# 1. Create the project
quickback create cloudflare my-app
cd my-app
# 2. Log in to the compiler
quickback login
# 3. Compile your definitions
quickback compile
# 4. Run locally
npm run devSee the individual template guides for detailed setup: