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.

Available Templates

These templates include an example feature (todos) with full security configuration.

TemplateRuntimeDatabaseAuthTenantCommand
cloudflareCloudflare WorkersD1 (SQLite)Better AuthMulti-tenantquickback create cloudflare my-app
bunBunbetter-sqlite3Better AuthMulti-tenantquickback create bun my-app
tursoBunLibSQL (Turso)Better AuthMulti-tenantquickback create turso my-app

Starter Templates

Purpose-built templates with opinionated defaults for common use cases.

TemplateRuntimeDatabaseTenantCommand
blogCloudflare WorkersD1Single-tenantquickback create blog my-site

The blog template creates a single-tenant blog/CMS backend with:

  • Public read access (no auth required for list and get)
  • Admin-only write access (create, update, delete, publish/unpublish)
  • A posts feature with title, slug, content, status, and publish date
  • Single-tenant mode (organizations: false)

Empty Scaffolding

Start from scratch with just the config file — no example features. Add your own definitions.

TemplateRuntimeDatabaseCommand
emptyCloudflare WorkersD1quickback create empty my-app
empty-bunBunbetter-sqlite3quickback create empty-bun my-app

These create the project structure with quickback.config.ts only — no features/ directory. Run quickback init inside the project to scaffold your first feature.

What Each Template Includes

Full-featured and starter templates scaffold a complete project with:

  • quickback.config.ts — Pre-configured with the right providers
  • quickback/features/ — Example feature(s) with security configuration
  • Deployment scriptsnpm run deploy for Cloudflare, npm start for Bun

Empty templates include only:

  • quickback.config.ts — Pre-configured with the right providers
  • package.json — Dependencies ready to install

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

Blog (Single-Tenant CMS)

Best for personal sites, blogs, or any app with a single tenant. Uses single-tenant mode — no organizations, roles come from user.role.

  • Public JSON API for content
  • Admin-only editing via Better Auth admin plugin
  • Pair with any frontend (Astro, Next.js, SvelteKit, etc.)

Empty (Start from Scratch)

Best when you know exactly what you want to build. Gets you the project structure and config without any opinionated features.

  • Config-only scaffolding
  • Available for both Cloudflare and Bun runtimes
  • Add features with quickback init or by hand

Template Aliases

For convenience, templates have short aliases:

AliasTemplate
cfbetterauth-d1-cloudflare
localbetterauth-sqlite-bun
saasb2bsaas-cloudflare
minimalapi-minimal-bun
scaffoldempty-cloudflare

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