Quickback Docs

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

TemplateRuntimeDatabaseAuthCommand
cloudflareCloudflare WorkersD1 (SQLite)Better Authquickback create cloudflare my-app
bunBunbetter-sqlite3Better Authquickback create bun my-app
tursoBunLibSQL (Turso)Better Authquickback create turso my-app

What Each Template Includes

Every template scaffolds a complete project with:

  • quickback.config.ts — Pre-configured with the right providers
  • definitions/features/ — Example todos feature with full security configuration
  • Database migrations — Ready to apply
  • Deployment scriptsnpm run deploy for Cloudflare, npm start for Bun

Choosing a Template

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 dev

See the individual template guides for detailed setup:

On this page