Quickback Docs

Compile Targets

Quickback compiles your definitions for different deployment targets. Learn about Cloudflare Workers, Neon, and Supabase output.

The Quickback compiler generates different output based on your chosen providers. Each target includes optimized code for the specific runtime and database.

Available Targets

TargetRuntimeDatabaseAuth
CloudflareCloudflare WorkersD1 (SQLite)Better Auth
NeonCloudflare Workers / Node.jsNeon (PostgreSQL)Better Auth + Neon Authorize
SupabaseSupabase Edge FunctionsSupabase (PostgreSQL)Supabase Auth

How Targets Differ

  • Runtime: Hono on Cloudflare Workers
  • Security: Application-level firewall, access, guards, masking
  • Database: D1 with Drizzle ORM
  • Best for: Full-stack applications, edge deployment

Neon

  • Runtime: Hono on Cloudflare Workers or Node.js
  • Security: PostgreSQL Row Level Security (RLS) + application-level guards
  • Database: Neon PostgreSQL with Drizzle ORM
  • Best for: Applications needing full PostgreSQL capabilities

Supabase

  • Runtime: Supabase Edge Functions
  • Security: PostgreSQL Row Level Security (RLS) only
  • Database: Supabase PostgreSQL
  • Best for: Existing Supabase projects

Configuration

Set your target in quickback.config.ts:

import { defineConfig, defineRuntime, defineDatabase, defineAuth } from "@quickback/compiler";

export default defineConfig({
  name: "my-app",
  providers: {
    runtime: defineRuntime("cloudflare"),       // or "supabase"
    database: defineDatabase("cloudflare-d1"),  // or "neon", "supabase"
    auth: defineAuth("better-auth"),            // or "supabase-auth"
  },
});

On this page