@quickback-dev/cli 0.59.1 → 0.59.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/commands/compile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAkFH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAsB,OAAO,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6oBzE"}
1
+ {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/commands/compile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAkFH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAsB,OAAO,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkpBzE"}
@@ -419,11 +419,16 @@ export async function compile(options = {}) {
419
419
  if (config.account && accountObj?.build === false) {
420
420
  console.log(pc.gray(` ${pc.dim('○')} account SPA skipped (build: false)`));
421
421
  }
422
- const hasSchemaRegistry = result.files.some((f) => f.path === 'schema-registry.json');
422
+ // Spec blobs are emitted under the assets directory, not the project root
423
+ // — the worker serves them through the ASSETS binding instead of importing
424
+ // them, so a multi-MB spec stays out of the bundle. Mirrors SPEC_ASSET_DIR
425
+ // in the compiler (no shared module between the two packages).
426
+ const specDir = 'src/apps/__quickback/spec/';
427
+ const hasSchemaRegistry = result.files.some((f) => f.path === `${specDir}schema-registry.json`);
423
428
  if (hasSchemaRegistry) {
424
429
  console.log(pc.gray(` ${pc.green('●')} CMS schema registry`));
425
430
  }
426
- const hasOpenAPI = result.files.some((f) => f.path === 'openapi.json');
431
+ const hasOpenAPI = result.files.some((f) => f.path === `${specDir}openapi.json`);
427
432
  if (hasOpenAPI) {
428
433
  console.log(pc.gray(` ${pc.green('●')} OpenAPI specification`));
429
434
  }
@@ -1 +1 @@
1
- {"version":3,"file":"compile.js","sourceRoot":"","sources":["../../src/commands/compile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EACL,iCAAiC,EACjC,4BAA4B,GAC7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC3P,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAC3F,OAAO,EAAE,cAAc,EAAE,u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MAAM,IAAI,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC;QACpC,CAAC;IAEH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QAEnC,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;YAC3B,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YAEjD,iCAAiC;YACjC,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,EAAE,CAAC;gBACrD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,yCAAyC,CAAC,CAAC,CAAC;gBAClE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;YACtC,CAAC;iBAAM,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC3C,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,2CAA2C,CAAC,CAAC,CAAC;gBACpE,OAAO,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAC;YAC/D,CAAC;QACH,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -27,7 +27,7 @@ export const DOCS = {
27
27
  },
28
28
  "api/openapi": {
29
29
  "title": "OpenAPI Spec",
30
- "content": "The compiler generates an [OpenAPI 3.1](https://spec.openapis.org/oas/v3.1.0) specification from your feature definitions. By default it's both written to `openapi.json` at your project root and served as a runtime route.\n\n## Endpoint\n\n```\nGET /openapi.json\n```\n\nReturns the full OpenAPI spec as JSON.\n\n```bash\ncurl https://your-api.example.com/openapi.json\n```\n\n## What's included\n\nThe generated spec documents every route the compiler produces:\n\n- CRUD endpoints (list, get, create, update, delete)\n- Batch operations\n- Views\n- Actions (including standalone actions)\n- Auth routes (`/api/auth/**`)\n- Storage, embeddings, and webhook routes (when configured)\n\nEach endpoint includes request/response schemas derived from your Drizzle column types, access control metadata, and error responses.\n\n### Schema fidelity\n\nThe generated component schemas carry enough type information that strict validators (zod, openapi-typescript, openapi-fetch) produce non-optional, narrowed types out of the box:\n\n- **`required[]` on response components** — every selected column is listed; nullable columns are present as `T | null`, not optional.\n- **Logical q types survive database lowering** — `q.bool()` remains `boolean`, `q.timestamp()` remains an ISO date-time string, and `q.url()` retains its URI format even when D1 stores the value as text or integer.\n- **Closed enums on `text(_, { enum: [...] })` columns** — emitted as `{ type: \"string\", enum: [...] }`, narrowing to a literal union in TS.\n- **`Error.code` is a closed enum** — every `code` value the API can emit (`AUTH_MISSING`, `DB_UNIQUE_VIOLATION`, `BATCH_SIZE_EXCEEDED`, …) is enumerated so consumers can `switch` exhaustively.\n- **ID `format`** — only emitted as `format: \"uuid\"` when your project's `generateId` actually produces UUIDs. cuid2 / prefixed / nanoid / serial generators get plain `{ type: \"string\" }`, keeping strict OpenAPI validators happy.\n\n### Action input and output schemas\n\nActions defined with [`defineAction({ input, output })`](/define/actions) get both Zod schemas lifted into the operation. `GET` inputs become typed query parameters; other methods use a JSON request body. A declared `output` becomes the success response schema and the generated helper requires `execute` to return a compatible value.\n\nThe CLI evaluates only the schema declarations in an isolated local bundle and converts them with Zod 4's `z.toJSONSchema()`. It never invokes `execute`, and the hosted compiler only receives plain JSON Schema data. Discriminated unions, refinements, recursive schemas, and shared schema references therefore flow to OpenAPI and generated TypeScript without relying on the compiler's static fallback parser.\n\n## Configuration\n\nBoth generation and publishing default to `true`. You can control them independently in `quickback.config.ts`:\n\n```typescript\nexport default defineConfig({\n name: \"my-app\",\n // ...\n openapi: {\n generate: true, // write openapi.json to project root\n publish: true, // serve GET /openapi.json at runtime\n },\n});\n```\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| `generate` | `true` | Write `openapi.json` to the project root during compilation |\n| `publish` | `true` | Serve the spec at `GET /openapi.json` (requires `generate: true`) |\n| `docs` | `false` | Mount an interactive API browser at `GET /docs` — `\"scalar\"`, `\"swagger\"`, or `false` |\n\nOmitting the `openapi` key entirely is equivalent to `generate: true, publish: true, docs: false`.\n\n### Generate only (no runtime route)\n\n```typescript\nopenapi: {\n generate: true,\n publish: false,\n}\n```\n\nThe file is still written so you can use it in CI or commit it to your repo, but no route is added to the app.\n\n### Disable entirely\n\n```typescript\nopenapi: {\n generate: false,\n}\n```\n\nNo file is written and no route is served.\n\n### Interactive API browser at `/docs`\n\nMount an in-browser API reference by setting `openapi.docs`:\n\n```typescript\nopenapi: {\n docs: 'scalar', // or 'swagger'\n}\n```\n\n| Value | UI | Notes |\n|---|---|---|\n| `\"scalar\"` | [Scalar API Reference](https://scalar.com/) — modern, lightweight | Recommended default |\n| `\"swagger\"` | [Swagger UI](https://swagger.io/tools/swagger-ui/) — the familiar standard | Good if your team expects it |\n| `false` / unset | No `/docs` route | Default |\n\nBoth UIs are loaded from CDN in a generated static HTML route — **no npm package is added to your project, no Hono middleware is installed, and the runtime bundle stays the same size**. The flag is purely compile-time: it toggles whether a `/docs` route is emitted.\n\nRequires `publish: true` (the default). When `publish` is off, `/docs` is silently skipped — there's no spec for it to read.\n\n## Usage with tools\n\n### Import into Postman\n\n1. Open Postman and click **Import**\n2. Paste the URL `https://your-api.example.com/openapi.json` or upload the file\n3. Postman creates a collection with every endpoint pre-configured\n\n### Generated TypeScript types (`api-types.gen.ts`)\n\nThe compiler emits `api-types.gen.ts` next to `openapi.json` by default — a fully typed view of every route, request body, and response, ready to import in client code:\n\n```typescript\nimport type { paths, components } from '../api-types.gen';\n\ntype Job = components['schemas']['Job'];\ntype ListJobsResponse = paths['/api/v1/jobs']['get']['responses']['200']['content']['application/json'];\n```\n\nPair it with [`openapi-fetch`](https://github.com/openapi-ts/openapi-typescript/tree/main/packages/openapi-fetch) for a fully typed client:\n\n```typescript\nimport createClient from 'openapi-fetch';\nimport type { paths } from '../api-types.gen';\n\nconst client = createClient<paths>({ baseUrl: 'https://your-api.example.com' });\nconst { data, error } = await client.GET('/api/v1/jobs', { params: { query: { limit: 25 } } });\n```\n\n#### Configuration\n\n| `openapi.types` | Behavior |\n|---|---|\n| `true` (default) | Write `api-types.gen.ts` to the project root |\n| `false` | Don't emit the types file |\n| `\"src/lib/api-types.ts\"` | Custom output path (relative to project root) |\n| `[\"api-types.gen.ts\", \"apps/web/src/lib/api-types.gen.ts\"]` | Write the same generated types to multiple paths in one compile |\n\n```typescript\n// quickback.config.ts\nexport default defineConfig({\n // ...\n openapi: {\n types: ['api-types.gen.ts', 'apps/web/src/lib/api-types.gen.ts'],\n },\n});\n```\n\nThe file is generated by piping the in-memory spec through [openapi-typescript](https://github.com/openapi-ts/openapi-typescript) — you can keep running it manually if you want a different output path or version, but for the typical case there's nothing to wire up. If your API project and SPA live in the same repo, prefer multiple `openapi.types` outputs over a second manual `codegen:api` step so one `quickback compile` keeps both copies in sync. Skipped automatically when `openapi.generate` is `false`.\n\nFor application code, prefer the compact first-party [`quickback.gen.ts` type tree](/api/typescript). Keep `api-types.gen.ts` for `openapi-fetch` and third-party OpenAPI tooling.\n\n### External viewer\n\nPoint any OpenAPI-compatible viewer at the endpoint:\n\n```\nhttps://petstore.swagger.io/?url=https://your-api.example.com/openapi.json\n```\n\nOr enable the in-project browser via the [`docs` config option](#interactive-api-browser-at-docs) above and visit `/docs` directly.\n\n## Example output (excerpt)\n\n```json\n{\n \"openapi\": \"3.1.0\",\n \"info\": {\n \"title\": \"my-app API\",\n \"version\": \"1.0.0\"\n },\n \"paths\": {\n \"/api/v1/jobs\": {\n \"get\": {\n \"summary\": \"List jobs\",\n \"operationId\": \"listJobs\",\n \"parameters\": [\n { \"name\": \"limit\", \"in\": \"query\", \"schema\": { \"type\": \"integer\" } },\n { \"name\": \"offset\", \"in\": \"query\", \"schema\": { \"type\": \"integer\" } }\n ],\n \"responses\": {\n \"200\": {\n \"description\": \"Success\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"data\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/components/schemas/Job\" } }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n```\n\n## Operations manifest\n\nAlongside the spec, every compile writes `reports/operations.manifest.json` — a\nstable, machine-readable index of the full route surface (resource, action,\nview, and auth routes; since v0.47 also the realtime, storage, and FGA\nsurfaces):\n\n```json\n[\n { \"operationId\": \"listCustomers\", \"method\": \"GET\", \"path\": \"/api/v1/customers\", \"auth\": \"session\", \"feature\": \"customers\", \"kind\": \"crud\" }\n]\n```\n\nThe manifest is a public contract: entries are sorted by `operationId`, carry\nno timestamps, and the shape is extend-only — new fields may be added, existing\nones won't change meaning. `operationId`s are stable across compiles for the\nsame configuration, which makes the manifest the recommended integration point\nfor agent/MCP tooling, route inventories, and diff-based change review.\n\nA sibling artifact, `reports/conformance.manifest.json`, enumerates the\nexpected authorization outcome for every route × principal class (derived from\nthe same compiler model that emits the enforcement code). The compiler's own CI\nexecutes it against a running build on every change."
30
+ "content": "The compiler generates an [OpenAPI 3.1](https://spec.openapis.org/oas/v3.1.0) specification from your feature definitions. By default it's both written to `src/apps/__quickback/spec/openapi.json` and served as a runtime route. It lives under the assets directory rather than the project root so the multi-MB blob stays out of the Worker bundle — see [Output](/tooling/output#spec-blobs-are-assets-not-bundle).\n\n## Endpoint\n\n```\nGET /openapi.json\n```\n\nReturns the full OpenAPI spec as JSON.\n\n```bash\ncurl https://your-api.example.com/openapi.json\n```\n\n## What's included\n\nThe generated spec documents every route the compiler produces:\n\n- CRUD endpoints (list, get, create, update, delete)\n- Batch operations\n- Views\n- Actions (including standalone actions)\n- Auth routes (`/api/auth/**`)\n- Storage, embeddings, and webhook routes (when configured)\n\nEach endpoint includes request/response schemas derived from your Drizzle column types, access control metadata, and error responses.\n\n### Schema fidelity\n\nThe generated component schemas carry enough type information that strict validators (zod, openapi-typescript, openapi-fetch) produce non-optional, narrowed types out of the box:\n\n- **`required[]` on response components** — every selected column is listed; nullable columns are present as `T | null`, not optional.\n- **Logical q types survive database lowering** — `q.bool()` remains `boolean`, `q.timestamp()` remains an ISO date-time string, and `q.url()` retains its URI format even when D1 stores the value as text or integer.\n- **Closed enums on `text(_, { enum: [...] })` columns** — emitted as `{ type: \"string\", enum: [...] }`, narrowing to a literal union in TS.\n- **`Error.code` is a closed enum** — every `code` value the API can emit (`AUTH_MISSING`, `DB_UNIQUE_VIOLATION`, `BATCH_SIZE_EXCEEDED`, …) is enumerated so consumers can `switch` exhaustively.\n- **ID `format`** — only emitted as `format: \"uuid\"` when your project's `generateId` actually produces UUIDs. cuid2 / prefixed / nanoid / serial generators get plain `{ type: \"string\" }`, keeping strict OpenAPI validators happy.\n\n### Action input and output schemas\n\nActions defined with [`defineAction({ input, output })`](/define/actions) get both Zod schemas lifted into the operation. `GET` inputs become typed query parameters; other methods use a JSON request body. A declared `output` becomes the success response schema and the generated helper requires `execute` to return a compatible value.\n\nThe CLI evaluates only the schema declarations in an isolated local bundle and converts them with Zod 4's `z.toJSONSchema()`. It never invokes `execute`, and the hosted compiler only receives plain JSON Schema data. Discriminated unions, refinements, recursive schemas, and shared schema references therefore flow to OpenAPI and generated TypeScript without relying on the compiler's static fallback parser.\n\n## Configuration\n\nBoth generation and publishing default to `true`. You can control them independently in `quickback.config.ts`:\n\n```typescript\nexport default defineConfig({\n name: \"my-app\",\n // ...\n openapi: {\n generate: true, // write the spec into src/apps/__quickback/spec/\n publish: true, // serve GET /openapi.json at runtime\n },\n});\n```\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| `generate` | `true` | Write `openapi.json` into `src/apps/__quickback/spec/` during compilation |\n| `publish` | `true` | Serve the spec at `GET /openapi.json` (requires `generate: true`) |\n| `docs` | `false` | Mount an interactive API browser at `GET /docs` — `\"scalar\"`, `\"swagger\"`, or `false` |\n\nOmitting the `openapi` key entirely is equivalent to `generate: true, publish: true, docs: false`.\n\n### Generate only (no runtime route)\n\n```typescript\nopenapi: {\n generate: true,\n publish: false,\n}\n```\n\nThe file is still written so you can use it in CI or commit it to your repo, but no route is added to the app.\n\n### Disable entirely\n\n```typescript\nopenapi: {\n generate: false,\n}\n```\n\nNo file is written and no route is served.\n\n### Interactive API browser at `/docs`\n\nMount an in-browser API reference by setting `openapi.docs`:\n\n```typescript\nopenapi: {\n docs: 'scalar', // or 'swagger'\n}\n```\n\n| Value | UI | Notes |\n|---|---|---|\n| `\"scalar\"` | [Scalar API Reference](https://scalar.com/) — modern, lightweight | Recommended default |\n| `\"swagger\"` | [Swagger UI](https://swagger.io/tools/swagger-ui/) — the familiar standard | Good if your team expects it |\n| `false` / unset | No `/docs` route | Default |\n\nBoth UIs are loaded from CDN in a generated static HTML route — **no npm package is added to your project, no Hono middleware is installed, and the runtime bundle stays the same size**. The flag is purely compile-time: it toggles whether a `/docs` route is emitted.\n\nRequires `publish: true` (the default). When `publish` is off, `/docs` is silently skipped — there's no spec for it to read.\n\n## Usage with tools\n\n### Import into Postman\n\n1. Open Postman and click **Import**\n2. Paste the URL `https://your-api.example.com/openapi.json` or upload the file\n3. Postman creates a collection with every endpoint pre-configured\n\n### Generated TypeScript types (`api-types.gen.ts`)\n\nThe compiler emits `api-types.gen.ts` next to `openapi.json` by default — a fully typed view of every route, request body, and response, ready to import in client code:\n\n```typescript\nimport type { paths, components } from '../api-types.gen';\n\ntype Job = components['schemas']['Job'];\ntype ListJobsResponse = paths['/api/v1/jobs']['get']['responses']['200']['content']['application/json'];\n```\n\nPair it with [`openapi-fetch`](https://github.com/openapi-ts/openapi-typescript/tree/main/packages/openapi-fetch) for a fully typed client:\n\n```typescript\nimport createClient from 'openapi-fetch';\nimport type { paths } from '../api-types.gen';\n\nconst client = createClient<paths>({ baseUrl: 'https://your-api.example.com' });\nconst { data, error } = await client.GET('/api/v1/jobs', { params: { query: { limit: 25 } } });\n```\n\n#### Configuration\n\n| `openapi.types` | Behavior |\n|---|---|\n| `true` (default) | Write `api-types.gen.ts` to the project root |\n| `false` | Don't emit the types file |\n| `\"src/lib/api-types.ts\"` | Custom output path (relative to project root) |\n| `[\"api-types.gen.ts\", \"apps/web/src/lib/api-types.gen.ts\"]` | Write the same generated types to multiple paths in one compile |\n\n```typescript\n// quickback.config.ts\nexport default defineConfig({\n // ...\n openapi: {\n types: ['api-types.gen.ts', 'apps/web/src/lib/api-types.gen.ts'],\n },\n});\n```\n\nThe file is generated by piping the in-memory spec through [openapi-typescript](https://github.com/openapi-ts/openapi-typescript) — you can keep running it manually if you want a different output path or version, but for the typical case there's nothing to wire up. If your API project and SPA live in the same repo, prefer multiple `openapi.types` outputs over a second manual `codegen:api` step so one `quickback compile` keeps both copies in sync. Skipped automatically when `openapi.generate` is `false`.\n\nFor application code, prefer the compact first-party [`quickback.gen.ts` type tree](/api/typescript). Keep `api-types.gen.ts` for `openapi-fetch` and third-party OpenAPI tooling.\n\n### External viewer\n\nPoint any OpenAPI-compatible viewer at the endpoint:\n\n```\nhttps://petstore.swagger.io/?url=https://your-api.example.com/openapi.json\n```\n\nOr enable the in-project browser via the [`docs` config option](#interactive-api-browser-at-docs) above and visit `/docs` directly.\n\n## Example output (excerpt)\n\n```json\n{\n \"openapi\": \"3.1.0\",\n \"info\": {\n \"title\": \"my-app API\",\n \"version\": \"1.0.0\"\n },\n \"paths\": {\n \"/api/v1/jobs\": {\n \"get\": {\n \"summary\": \"List jobs\",\n \"operationId\": \"listJobs\",\n \"parameters\": [\n { \"name\": \"limit\", \"in\": \"query\", \"schema\": { \"type\": \"integer\" } },\n { \"name\": \"offset\", \"in\": \"query\", \"schema\": { \"type\": \"integer\" } }\n ],\n \"responses\": {\n \"200\": {\n \"description\": \"Success\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"data\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/components/schemas/Job\" } }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n```\n\n## Operations manifest\n\nAlongside the spec, every compile writes `reports/operations.manifest.json` — a\nstable, machine-readable index of the full route surface (resource, action,\nview, and auth routes; since v0.47 also the realtime, storage, and FGA\nsurfaces):\n\n```json\n[\n { \"operationId\": \"listCustomers\", \"method\": \"GET\", \"path\": \"/api/v1/customers\", \"auth\": \"session\", \"feature\": \"customers\", \"kind\": \"crud\" }\n]\n```\n\nThe manifest is a public contract: entries are sorted by `operationId`, carry\nno timestamps, and the shape is extend-only — new fields may be added, existing\nones won't change meaning. `operationId`s are stable across compiles for the\nsame configuration, which makes the manifest the recommended integration point\nfor agent/MCP tooling, route inventories, and diff-based change review.\n\nA sibling artifact, `reports/conformance.manifest.json`, enumerates the\nexpected authorization outcome for every route × principal class (derived from\nthe same compiler model that emits the enforcement code). The compiler's own CI\nexecutes it against a running build on every change."
31
31
  },
32
32
  "api/query-params": {
33
33
  "title": "Query Parameters",
@@ -459,7 +459,7 @@ export const DOCS = {
459
459
  },
460
460
  "tooling/cloud-compiler/endpoints": {
461
461
  "title": "Endpoints",
462
- "content": "The cloud compiler API is hosted at `https://compiler.quickback.dev`.\n\n## Public (No Auth)\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `/health` | GET | Health check |\n| `/templates` | GET | List available templates |\n\n## Authenticated\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `/compile` | POST | Compile definitions into backend files |\n\nThe `/compile` endpoint requires either a session token (from `quickback login`) or an API key (via `QUICKBACK_API_KEY` header). See [Authentication](/tooling/cloud-compiler/authentication) for details.\n\n## Raw-files mode (`POST /compile`)\n\n`/compile` normally expects the parsed `CompilerInput` the CLI assembles client-side. Thin clients (agents, web builders, CI without the CLI) can instead send the project sources verbatim and let the compiler organize them server-side:\n\n```json\n{\n \"rawFiles\": {\n \"quickback/quickback.config.ts\": \"import { defineConfig } from …\",\n \"quickback/features/todos/todos.ts\": \"import { feature, q } from …\",\n \"quickback/features/todos/actions/complete.ts\": \"…\"\n }\n}\n```\n\nThe map uses project-root-relative paths and follows the same layout `quickback compile` reads from disk: `quickback/quickback.config.ts`, `quickback/features/**`, `quickback/services/**`, `quickback/{lib,hooks,plugins,middlewares,email-templates}/**`, plus `quickback/drizzle/**/meta/**` and `wrangler.toml` for incremental builds.\n\nTwo constraints, both fail-closed:\n\n- **The config must be fully static.** The compiler parses `quickback.config.ts` with a literals-only evaluator — it never executes user code. Object/array/string/number/boolean literals, substitution-free template literals, and the `define*` helper calls all work; variables, computed values, and imports-as-values are rejected with a 400 that names the offending construct and line.\n- **Action input schemas are contract-sensitive.** For v1, raw-files requests may omit `actionInputSchemas` and use the compiler's lower-fidelity static parser. V2 requires one usable client-harvested `z.toJSONSchema(action.input)` entry for every authored action. The CLI reports each missing action with its local bundle or evaluation error; the API independently reports missing or invalid action keys.\n\nRaw-files requests work with both `?complete=true` and `?complete=false`\n(validation-only) compiles. The v2 action-schema completeness gate applies to\nboth modes; `complete=false` is not an escape hatch for a partial harvest.\n\n## Edge validation backend\n\nValidation compiles (`POST /compile?complete=false`) may be served by an edge Worker instead of the compiler container. This is **transparent to clients**: same endpoint, same auth, same request and response shapes (plain or gzipped JSON, raw-files or parsed input, identical payload limits, error shapes, and generated-file envelopes) — just no container cold start.\n\nThe response header `X-Quickback-Compile-Backend` says which backend answered:\n\n| Value | Meaning |\n|-------|---------|\n| `edge` | Served by the edge Worker |\n| `container-fallback` | Edge is enabled but failed (5xx/unreachable); the container answered instead |\n| _(absent)_ | Edge routing is not enabled; the container answered, as before |\n\nComplete compiles (`?complete=true`, the default) always run in the container — they need the CLI toolchain (drizzle-kit, SPA builds). The edge Worker rejects them with a 400 pointing at the container endpoint.\n\n## Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| `QUICKBACK_API_KEY` | API key for authentication (alternative to `quickback login`) |\n| `QUICKBACK_API_URL` | Override compiler API URL (default: `https://compiler.quickback.dev`) |\n\n### Custom Compiler URL\n\nPoint the CLI to a different compiler (local or custom):\n\n```bash\nQUICKBACK_API_URL=http://localhost:3000 quickback compile\n```\n\nSee [Local Compiler](/tooling/cloud-compiler/local-compiler) for running the compiler locally with Docker.\n\n## Streaming Protocol (`POST /compile`)\n\nBy default `/compile` returns a single JSON response. If the request includes `Accept: text/event-stream`, the compiler upgrades to Server-Sent Events so the CLI can render progress while the build runs.\n\nThere are two stream protocol versions, negotiated via the `X-Quickback-Stream` request header:\n\n| Header | Protocol | Behavior |\n|--------|----------|----------|\n| _(absent)_ | **v1** | Sends `progress` events during the build, then a single `result` event with the entire compilation payload (config, generated files, drizzle output, SPA bundles, etc.) JSON-encoded as one frame. |\n| `X-Quickback-Stream: v2` | **v2 (chunked)** | Sends `progress` events during the build, then a `meta` event with the file count, then one `file` event per generated file, then a final `done` event with metadata, commands, and warnings. |\n\nThe server echoes the chosen version back as the response `X-Quickback-Stream` header so the CLI knows which framing to parse.\n\n### Why v2\n\nMulti-megabyte SPA bundles (CMS + Account, with sourcemaps) take long enough to `JSON.stringify` that the v1 single-frame `result` event blocks Cloudflare's container event loop. Two things break: Docker's `HEALTHCHECK` fails, and the CLI's 120-second connection timeout fires before the body flushes. v2 emits files one at a time and yields back to the event loop every 10 files (`setImmediate`), keeping `/health` responsive and TCP backpressure alive.\n\nThe `@quickback-dev/cli` v0.10.x and later send `X-Quickback-Stream: v2` automatically. v1 is preserved for older clients.\n\n### Event shapes (v2)\n\n```\nevent: progress\ndata: { \"stage\": \"vite-cms\", \"message\": \"...\" }\n\nevent: meta\ndata: { \"fileCount\": 412, \"version\": \"0.10.3\" }\n\nevent: file\ndata: { \"path\": \"src/...\", \"content\": \"...\", ... }\n…\n\nevent: done\ndata: { \"meta\": {...}, \"commands\": [...], \"warnings\": [...] }\n```\n\nOn failure, an `error` event is emitted in either protocol:\n\n```\nevent: error\ndata: { \"error\": \"Compilation failed\", \"code\": \"...\", \"message\": \"...\" }\n```"
462
+ "content": "The cloud compiler API is hosted at `https://compiler.quickback.dev`.\n\n## Public (No Auth)\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `/health` | GET | Health check |\n| `/templates` | GET | List available templates |\n\n## Authenticated\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `/compile` | POST | Compile definitions into backend files |\n\nThe `/compile` endpoint requires either a session token (from `quickback login`) or an API key (via `QUICKBACK_API_KEY` header). See [Authentication](/tooling/cloud-compiler/authentication) for details.\n\n## Raw-files mode (`POST /compile`)\n\n`/compile` normally expects the parsed `CompilerInput` the CLI assembles client-side. Thin clients (agents, web builders, CI without the CLI) can instead send the project sources verbatim and let the compiler organize them server-side:\n\n```json\n{\n \"rawFiles\": {\n \"quickback/quickback.config.ts\": \"import { defineConfig } from …\",\n \"quickback/features/todos/todos.ts\": \"import { feature, q } from …\",\n \"quickback/features/todos/actions/complete.ts\": \"…\"\n }\n}\n```\n\nThe map uses project-root-relative paths and follows the same layout `quickback compile` reads from disk: `quickback/quickback.config.ts`, `quickback/features/**`, `quickback/services/**`, `quickback/{lib,hooks,plugins,middlewares,email-templates}/**`, plus `quickback/drizzle/**/meta/**` and `wrangler.toml` for incremental builds.\n\nTwo constraints, both fail-closed:\n\n- **The config must be fully static.** The compiler parses `quickback.config.ts` with a literals-only evaluator — it never executes user code. Object/array/string/number/boolean literals, substitution-free template literals, and the `define*` helper calls all work; variables, computed values, and imports-as-values are rejected with a 400 that names the offending construct and line.\n- **Action input schemas are contract-sensitive.** For v1, raw-files requests may omit `actionInputSchemas` and use the compiler's lower-fidelity static parser. V2 requires one usable client-harvested `z.toJSONSchema(action.input)` entry for every authored action. The CLI reports each missing action with its local bundle or evaluation error; the API independently reports missing or invalid action keys.\n\nRaw-files requests work with both `?complete=true` and `?complete=false`\n(validation-only) compiles. The v2 action-schema completeness gate applies to\nboth modes; `complete=false` is not an escape hatch for a partial harvest.\n\n## Edge validation backend\n\nValidation compiles (`POST /compile?complete=false`) may be served by an edge Worker instead of the compiler container. This is **transparent to clients**: same endpoint, same auth, same request and response shapes (plain or gzipped JSON, raw-files or parsed input, identical payload limits, error shapes, and generated-file envelopes) — just no container cold start.\n\nThe response header `X-Quickback-Compile-Backend` says which backend answered:\n\n| Value | Meaning |\n|-------|---------|\n| `edge` | Served by the edge Worker |\n| `container-fallback` | Edge is enabled but failed (5xx/unreachable); the container answered instead |\n| _(absent)_ | Edge routing is not enabled; the container answered, as before |\n\nComplete compiles (`?complete=true`, the default) always run in the container — they need the CLI toolchain (drizzle-kit, prebuilt SPA assets). The edge Worker rejects them with a 400 pointing at the container endpoint.\n\n## Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| `QUICKBACK_API_KEY` | API key for authentication (alternative to `quickback login`) |\n| `QUICKBACK_API_URL` | Override compiler API URL (default: `https://compiler.quickback.dev`) |\n\n### Custom Compiler URL\n\nPoint the CLI to a different compiler (local or custom):\n\n```bash\nQUICKBACK_API_URL=http://localhost:3000 quickback compile\n```\n\nSee [Local Compiler](/tooling/cloud-compiler/local-compiler) for running the compiler locally with Docker.\n\n## Streaming Protocol (`POST /compile`)\n\nBy default `/compile` returns a single JSON response. If the request includes `Accept: text/event-stream`, the compiler upgrades to Server-Sent Events so the CLI can render progress while the build runs.\n\nThere are two stream protocol versions, negotiated via the `X-Quickback-Stream` request header:\n\n| Header | Protocol | Behavior |\n|--------|----------|----------|\n| _(absent)_ | **v1** | Sends `progress` events during the build, then a single `result` event with the entire compilation payload (config, generated files, drizzle output, SPA bundles, etc.) JSON-encoded as one frame. |\n| `X-Quickback-Stream: v2` | **v2 (chunked)** | Sends `progress` events during the build, then a `meta` event with the file count, then one `file` event per generated file, then a final `done` event with metadata, commands, and warnings. |\n\nThe server echoes the chosen version back as the response `X-Quickback-Stream` header so the CLI knows which framing to parse.\n\n### Why v2\n\nMulti-megabyte SPA bundles (CMS + Account, with sourcemaps) take long enough to `JSON.stringify` that the v1 single-frame `result` event blocks Cloudflare's container event loop. Two things break: Docker's `HEALTHCHECK` fails, and the CLI's 120-second connection timeout fires before the body flushes. v2 emits files one at a time and yields back to the event loop every 10 files (`setImmediate`), keeping `/health` responsive and TCP backpressure alive.\n\nThe `@quickback-dev/cli` v0.10.x and later send `X-Quickback-Stream: v2` automatically. v1 is preserved for older clients.\n\n### Event shapes (v2)\n\n```\nevent: progress\ndata: { \"stage\": \"vite-cms\", \"message\": \"...\" }\n\nevent: meta\ndata: { \"fileCount\": 412, \"version\": \"0.10.3\" }\n\nevent: file\ndata: { \"path\": \"src/...\", \"content\": \"...\", ... }\n…\n\nevent: done\ndata: { \"meta\": {...}, \"commands\": [...], \"warnings\": [...] }\n```\n\nOn failure, an `error` event is emitted in either protocol:\n\n```\nevent: error\ndata: { \"error\": \"Compilation failed\", \"code\": \"...\", \"message\": \"...\" }\n```"
463
463
  },
464
464
  "tooling/cloud-compiler": {
465
465
  "title": "Cloud Compiler",
@@ -467,7 +467,7 @@ export const DOCS = {
467
467
  },
468
468
  "tooling/cloud-compiler/local-compiler": {
469
469
  "title": "Local Compiler",
470
- "content": "Run the Quickback compiler locally using Docker. This is a fully supported\ncompiler mode, not a reduced fallback: it uses the exact same Docker image as\nthe hosted compiler and produces the same backend, migrations, SDKs, and SPA\nbuilds while keeping compile source on the local machine.\n\n## Prerequisites\n\n- Docker Desktop installed and running\n- Quickback monorepo cloned locally\n\n## Quick Start\n\nFrom the monorepo root:\n\n```bash\ncd apps/compiler-local && bash dev.sh\n```\n\nThis will:\n1. Ensure Docker Desktop is running\n2. Stop any existing compiler container\n3. Build the Docker image from `apps/compiler/Dockerfile`\n4. Start it in explicit local mode, published only on `127.0.0.1:3000`\n\n### Custom Port\n\n```bash\nbash dev.sh 3001\n```\n\n## Compiling a Project\n\nPoint the CLI to your local compiler:\n\n```bash\nQUICKBACK_API_URL=http://localhost:3000 quickback compile\n```\n\nOr export it for the session:\n\n```bash\nexport QUICKBACK_API_URL=http://localhost:3000\nquickback compile\n```\n\nThe supported launcher does not require `quickback login`. It opts the compiler\ninto local mode and binds Docker's host port to loopback, so the unauthenticated\ncompile endpoint is not exposed to the LAN. The CLI skips its login prompt only\nwhen `QUICKBACK_API_URL` has the exact hostname `localhost`, `127.0.0.1`, or\n`::1`; longer hostnames and URLs that merely contain those strings still use\nhosted authentication.\n\n## Manual Build & Run\n\nYou can also build and run the Docker image directly from the monorepo root:\n\n```bash\n# Build\ndocker build -t quickback-compiler -f apps/compiler/Dockerfile .\n\n# Run with the same security boundary as the supported launcher\ndocker run --rm \\\n -e QUICKBACK_COMPILER_MODE=local \\\n -p 127.0.0.1:3000:3000 \\\n quickback-compiler\n```\n\n`QUICKBACK_COMPILER_MODE` is fail-closed: only the exact value `local` bypasses\ncompile authentication. If the variable is absent or misspelled, the compiler\nuses hosted authentication. Never publish a local-mode container on\n`0.0.0.0` or a non-loopback interface.\n\n## Verify\n\nCheck the compiler is running:\n\n```bash\ncurl http://localhost:3000/health\n```\n\n## How It Works\n\nThe Docker image includes:\n- Pre-installed dependencies for compiled projects (`/deps/node_modules`)\n- CMS and Account SPA source code (`/spa/cms/`, `/spa/account/`)\n- Pre-installed SPA dependencies (`/spa-deps/cms/`, `/spa-deps/account/`)\n\nWhen compiling a project with `cms: true` or `account: true`, the compiler builds the SPAs from source inside the container with the correct Vite environment variables (e.g., `VITE_QUICKBACK_API_URL`, `VITE_QUICKBACK_ACCOUNT_URL`). This ensures each project gets properly configured SPA assets without manual intervention.\n\nThe generated worker additionally injects the same per-project values into every served SPA shell as `window.__QUICKBACK_RUNTIME`, and the SPAs prefer that runtime blob over the baked env — so the served behavior is identical even with a generic (no-`.env`) SPA build.\n\n## Deploying to Cloud\n\nAfter making changes to the compiler, deploy to `compiler.quickback.dev`:\n\n```bash\ncd apps/compiler-cloud && bash deploy.sh\n```\n\n## Troubleshooting\n\n### Container not starting\n\n```bash\ndocker logs quickback-compiler-local\n```\n\n### Port already in use\n\n```bash\n# Find what's using the port\nlsof -i :3000\n\n# Use a different port\nbash dev.sh 3001\n```\n\n### Docker out of disk space\n\n```bash\ndocker system prune -af\n```\n\n### SPA build warnings\n\nIf you see SPA build warnings during compilation, ensure the SPA dependency files are up to date:\n- `apps/compiler/deps-spa-cms-package.json`\n- `apps/compiler/deps-spa-account-package.json`\n\nThese must include all dependencies from `packages/cms/package.json` and `packages/account/package.json` respectively."
470
+ "content": "Run the Quickback compiler locally using Docker. This is a fully supported\ncompiler mode, not a reduced fallback: it uses the exact same Docker image as\nthe hosted compiler and produces the same backend, migrations, SDKs, and SPA\nbuilds while keeping compile source on the local machine.\n\n## Prerequisites\n\n- Docker Desktop installed and running\n- Quickback monorepo cloned locally\n\n## Quick Start\n\nFrom the monorepo root:\n\n```bash\ncd apps/compiler-local && bash dev.sh\n```\n\nThis will:\n1. Ensure Docker Desktop is running\n2. Stop any existing compiler container\n3. Build the Docker image from `apps/compiler/Dockerfile`\n4. Start it in explicit local mode, published only on `127.0.0.1:3000`\n\n### Custom Port\n\n```bash\nbash dev.sh 3001\n```\n\n## Compiling a Project\n\nPoint the CLI to your local compiler:\n\n```bash\nQUICKBACK_API_URL=http://localhost:3000 quickback compile\n```\n\nOr export it for the session:\n\n```bash\nexport QUICKBACK_API_URL=http://localhost:3000\nquickback compile\n```\n\nThe supported launcher does not require `quickback login`. It opts the compiler\ninto local mode and binds Docker's host port to loopback, so the unauthenticated\ncompile endpoint is not exposed to the LAN. The CLI skips its login prompt only\nwhen `QUICKBACK_API_URL` has the exact hostname `localhost`, `127.0.0.1`, or\n`::1`; longer hostnames and URLs that merely contain those strings still use\nhosted authentication.\n\n## Manual Build & Run\n\nYou can also build and run the Docker image directly from the monorepo root:\n\n```bash\n# Build\ndocker build -t quickback-compiler -f apps/compiler/Dockerfile .\n\n# Run with the same security boundary as the supported launcher\ndocker run --rm \\\n -e QUICKBACK_COMPILER_MODE=local \\\n -p 127.0.0.1:3000:3000 \\\n quickback-compiler\n```\n\n`QUICKBACK_COMPILER_MODE` is fail-closed: only the exact value `local` bypasses\ncompile authentication. If the variable is absent or misspelled, the compiler\nuses hosted authentication. Never publish a local-mode container on\n`0.0.0.0` or a non-loopback interface.\n\n## Verify\n\nCheck the compiler is running:\n\n```bash\ncurl http://localhost:3000/health\n```\n\n## How It Works\n\nThe Docker image includes:\n- Pre-installed dependencies for compiled projects (`/deps/node_modules`)\n- CMS and Account SPA source code (`/spa/cms/`, `/spa/account/`)\n- Pre-installed SPA dependencies (`/spa-deps/cms/`, `/spa-deps/account/`)\n\nWhen compiling a project with `cms: true` or `account: true`, the compiler builds the SPAs from source inside the container with the correct Vite environment variables (e.g., `VITE_QUICKBACK_API_URL`, `VITE_QUICKBACK_ACCOUNT_URL`). This ensures each project gets properly configured SPA assets without manual intervention.\n\nThe generated worker additionally injects the same per-project values into every served SPA shell as `window.__QUICKBACK_RUNTIME`, and the SPAs prefer that runtime blob over the baked env — so the served behavior is identical even with a generic (no-`.env`) SPA build.\n\n## Deploying to Cloud\n\nAfter making changes to the compiler, deploy to `compiler.quickback.dev`:\n\n```bash\ncd apps/compiler-cloud && bash deploy.sh\n```\n\n## Troubleshooting\n\n### Container not starting\n\n```bash\ndocker logs quickback-compiler-local\n```\n\n### Port already in use\n\n```bash\n# Find what's using the port\nlsof -i :3000\n\n# Use a different port\nbash dev.sh 3001\n```\n\n### Docker out of disk space\n\n```bash\ndocker system prune -af\n```\n\n### SPA asset warnings\n\nCompiles never build the SPAs — the Docker image carries generic prebuilt CMS/Account bundles (built once, at image build) that a compile copies into `src/apps/`. A \"prebuilt … SPA assets not found\" warning means the image was built without the `spa-prebuilt` stage completing; rebuild it with `bash dev.sh`.\n\nSPA dependency manifests (`apps/compiler/deps-spa-cms-package.json`, `deps-spa-account-package.json`) are only consumed by that image-build stage — if one is stale, the **image build** fails loudly, never a user compile."
471
471
  },
472
472
  "tooling/cloud-compiler/troubleshooting": {
473
473
  "title": "Troubleshooting",
@@ -475,7 +475,7 @@ export const DOCS = {
475
475
  },
476
476
  "tooling/output": {
477
477
  "title": "Output Structure",
478
- "content": "The compiler generates a complete project structure based on your definitions and provider configuration. Cloudflare Workers is the only supported runtime; what varies is which optional surfaces your config enables.\n\n**Warning:** Never edit files in `src/` directly. They are overwritten on every compile. Make changes in your `quickback/` definitions instead.\n\n## Output\n\n```\nsrc/\n├── index.ts # Hono app entry point (Workers export)\n├── env.d.ts # Cloudflare bindings TypeScript types\n├── db/\n│ ├── index.ts # Database connection factory\n│ ├── auth-schema.ts # Auth table schemas (dual mode)\n│ └── features-schema.ts # Feature table schemas (dual mode)\n├── auth/\n│ └── schema.ts # Better Auth table schemas (generated by the Better Auth CLI)\n├── features/\n│ └── {feature}/\n│ ├── schema.ts # Drizzle table definition(s)\n│ ├── {feature}.ts # Table alias — re-exports the table from schema.ts\n│ ├── {feature}.resource.ts # Firewall / access / masking helpers for this resource\n│ ├── {feature}.routes.ts # CRUD + record-bound action endpoints\n│ ├── {feature}-actions.routes.ts # Standalone action endpoints (when an action sets `path:`)\n│ ├── actions.ts # Aggregator — imports every action's default export\n│ ├── actions/\n│ │ └── {action}.ts # One file per authored action\n│ └── .quickback/\n│ └── define-action.ts # Typed per-feature `defineAction` helper\n├── routes/\n│ └── {feature}.ts # Mount re-export consumed by src/index.ts\n├── lib/\n│ ├── auth.ts # Better Auth instance & config\n│ ├── access.ts # Access control helpers\n│ ├── types.ts # Runtime type definitions\n│ ├── masks.ts # Field masking utilities\n│ ├── services.ts # Service layer\n│ ├── audit-wrapper.ts # Stamps the managed audit columns on write\n│ └── security-audit.ts # Unsafe cross-tenant audit logger (when needed)\n└── middleware/\n ├── auth.ts # Auth context middleware\n ├── db.ts # Database instance middleware\n └── services.ts # Service injection middleware\n\nquickback/drizzle/\n├── auth/ # Auth migrations (dual mode)\n│ ├── meta/\n│ │ ├── _journal.json\n│ │ └── 0000_snapshot.json\n│ └── 0000_initial.sql\n├── features/ # Feature migrations (dual mode)\n│ ├── meta/\n│ │ ├── _journal.json\n│ │ └── 0000_snapshot.json\n│ └── 0000_initial.sql\n└── audit/ # Unsafe cross-tenant action audit migrations (when needed)\n ├── meta/\n └── 0000_initial.sql\n\n# Root config files\n├── package.json\n├── tsconfig.json\n├── wrangler.toml # Cloudflare Workers config\n├── drizzle.config.ts # Features DB drizzle config\n├── drizzle.auth.config.ts # Auth DB drizzle config (dual mode)\n└── drizzle.audit.config.ts # Audit DB drizzle config (when unsafe actions exist)\n```\n\nNot every per-feature file is always emitted:\n\n- `actions.ts`, `actions/`, and `.quickback/define-action.ts` appear only when the feature has at least one authored action under `quickback/features/{feature}/actions/`.\n- `{feature}-actions.routes.ts` appears only when at least one of those actions declares `path:` (the marker that makes an action standalone).\n- `schema.ts`, `{feature}.ts`, and `{feature}.resource.ts` are skipped for tableless features.\n- A multi-table feature gets one alias file per table (`{feature}.ts`, `{other_table}.ts`) alongside the single `schema.ts`.\n\n## Spec Blobs Load As Text\n\nThe generated `wrangler.toml` contains a rule you did not configure:\n\n```toml\n[[rules]]\ntype = \"Text\"\nglobs = [\"**/openapi.json\", \"**/asyncapi.json\", \"**/schema-registry.json\"]\n```\n\nThis is deliberate, and it exists to protect cold-start time.\n\nA Worker has a limited CPU budget for its **startup window** — the module\nevaluation that runs before the first request is served. A plain JSON import is\ninlined by the bundler as a JavaScript object literal, so the runtime parses it\nas source and builds the entire object graph during that window. For a large\nAPI the spec is the single biggest thing in the bundle, and the cost is paid on\nevery cold start to serve discovery routes that most callers never request.\n\nLoading the blobs as text means startup only allocates a string. The generated\n`src/index.ts` parses each one lazily, on first request, and memoizes it:\n\n```ts\nimport openapiSpecText from '../openapi.json';\n\nlet __openapiSpec: unknown;\nconst openapiSpec = () => (__openapiSpec ??= JSON.parse(openapiSpecText as unknown as string));\n\napp.get('/openapi.json', (c) => c.json(openapiSpec()));\n```\n\nBehavior is unchanged — the same routes return the same payloads. Only *when*\nthe parse happens moves.\n\nThe saving scales with spec size. On a ~7 MB spec this cut measured startup CPU\nby roughly 40%; below ~0.5 MB it is within measurement noise. Projects that\nemit no spec are unaffected, because bundler rules only apply to files that are\nactually imported.\n\n**Warning:** Do not hand-edit this rule out. Without it the `…Text` imports\nresolve to parsed objects and `JSON.parse` receives an object instead of a\nstring.\n\n## Generated Package Dependency Security\n\nFor projects using Better Auth, the generated `package.json` keeps the stable\n`auth@1.6.x` development dependency that provides the `better-auth` executable\nused by `auth:schema`. It also emits this npm override:\n\n```json\n{\n \"overrides\": {\n \"lodash\": \"4.18.1\"\n }\n}\n```\n\nThe override lifts the CLI's dev-only Prisma schema-parser chain off Lodash\nversions affected by the 2026 code-injection and prototype-pollution\nadvisories. It does not change the Better Auth runtime package or generated\nauthentication behavior. Quickback preserves unrelated overrides already in\nyour package manifest, but the compiler-owned Lodash security pin wins if an\nexisting override conflicts.\n\nAfter recompiling, run your package manager's install command so its lockfile\nrecords the patched transitive version. Use `npm audit --omit=dev` when\nevaluating the production dependency tree; development-tool advisories are a\nseparate review surface.\n\nFor Better Auth projects, `quickback compile` owns auth-schema generation.\nThe generated `build` script runs TypeScript only and never rewrites\n`src/auth/schema.ts`, so build and deployment preflight checks preserve a clean\ngenerated worktree. `auth:schema` remains an explicit diagnostic command; run\n`quickback compile` afterward to restore canonical generated bytes.\n\nOn recompilation, Quickback replaces commands for script names it generates,\nincluding `build`, with the current compiler output. Scripts with other names\nare treated as project customizations and preserved. This lets existing\nprojects acquire build and deployment fixes without losing unrelated tooling.\n\n## Optional Output Files\n\nThese files are generated only when the corresponding features are configured:\n\n### Embeddings\n\nWhen any feature has `embeddings` configured:\n\n```\nsrc/\n├── lib/\n│ └── embeddings.ts # Embedding helpers\n├── routes/\n│ └── embeddings.ts # POST /api/{v1|v2}/embeddings endpoint\n└── queue-consumer.ts # Queue handler for async embedding jobs\n```\n\n### File Storage (R2)\n\nWhen `fileStorage` is configured:\n\n```\nsrc/\n└── routes/\n └── storage.ts # File upload/download endpoints\nquickback/drizzle/\n└── files/ # File metadata migrations\n ├── meta/\n └── 0000_*.sql\n```\n\n### Webhooks\n\nWhen webhooks are enabled:\n\n```\nsrc/\n└── lib/\n └── webhooks/\n ├── index.ts # Webhook module entry\n ├── sign.ts # Webhook payload signing\n ├── handlers.ts # Handler registry\n ├── emit.ts # Queue emission helpers\n ├── routes.ts # Inbound/outbound endpoints\n └── providers/\n ├── index.ts\n └── stripe.ts # Stripe webhook handler\nquickback/drizzle/\n└── webhooks/ # Webhook schema migrations\n ├── meta/\n └── 0000_*.sql\n```\n\n### Security Audit Database (Unsafe Actions)\n\nWhen any action enables unsafe cross-tenant mode (`unsafe.crossTenant: true`):\n\n```\nsrc/\n├── db/\n│ └── audit-schema.ts # audit_events table\n└── lib/\n └── security-audit.ts # mandatory audit writer\n\nquickback/drizzle/\n└── audit/\n ├── meta/\n └── 0000_*.sql\n\n# Root\n└── drizzle.audit.config.ts\n```\n\nCloudflare output also includes an `AUDIT_DB` D1 binding in `wrangler.toml` and migration scripts:\n\n- `db:migrate:audit:local`\n- `db:migrate:audit:remote`\n\n### Security Contract Report and Signature\n\nGenerated on every compile (unless disabled via `compiler.securityContracts.report.enabled: false`):\n\n```\nreports/\n├── security-contracts.report.json # Contract evaluation summary + violations\n└── security-contracts.report.sig.json # Signature / digest envelope for the report\n```\n\nThe signature file uses HMAC-SHA256 when a signing key is configured, otherwise it falls back to SHA-256 digest mode. \nSet `compiler.securityContracts.report.signature.required: true` to fail compilation when a signing key is missing.\n\n### Realtime\n\nWhen any feature has `realtime` configured:\n\n```\nsrc/\n├── lib/\n│ ├── realtime.ts # Broadcast helpers\n│ ├── Broadcaster.ts # Durable Object class (inline in main worker)\n│ └── ws-ticket.ts # WebSocket ticket auth utility\n└── routes/\n └── ws-ticket.ts # POST /realtime/v1/ws-ticket endpoint\n```\n\nThe Broadcaster DO class is exported from your main worker entry point and runs inline — no separate `cloudflare-workers/broadcast/` deployment needed.\n\n### Device Authorization\n\nWhen the `deviceAuthorization` plugin is enabled:\n\n```\nsrc/\n└── routes/\n └── cli-auth.ts # Device auth flow endpoints\n```\n\n## Database Schemas\n\n### Dual Database Mode (D1 default)\n\nThe compiler separates schemas into two files:\n\n**`src/db/auth-schema.ts`** — Re-exports Better Auth table schemas:\n- `users`, `sessions`, `accounts`\n- `organizations`, `members`, `invitations` (if organizations enabled)\n- Plugin-specific tables (`apiKeys`, etc.)\n\n**`src/db/features-schema.ts`** — Re-exports your feature schemas:\n- Every table declared with `feature()` or `defineTable()`\n- The managed audit / soft-delete columns you declared on each table — `...q.audit()` / `...q.softDelete()` on the q path, the canonical Drizzle lines on the raw-Drizzle path\n\n### Single Database Mode (`splitDatabases: false`)\n\n**`src/db/schema.ts`** — Combined re-export of all schemas (auth + features).\n\n## Generated Routes\n\nFor each feature, the compiler generates a routes file at `src/features/{name}/routes.ts` containing:\n\n| Route | Generated When |\n|-------|----------------|\n| `GET /` | `crud.list` configured |\n| `GET /:id` | `crud.get` configured |\n| `POST /` | `crud.create` configured |\n| `PATCH /:id` | `crud.update` configured |\n| `DELETE /:id` | `crud.delete` configured |\n| `PUT /:id` | `crud.put` configured |\n| `POST /batch` | `crud.create` exists (auto-enabled) |\n| `PATCH /batch` | `crud.update` exists (auto-enabled) |\n| `DELETE /batch` | `crud.delete` exists (auto-enabled) |\n| `PUT /batch` | `crud.put` exists (auto-enabled) |\n| `GET /views/{name}` | `views` configured |\n| `POST /:id/{action}` | Record-based actions defined |\n| `POST /{action}` | Standalone actions defined |\n\nRoutes are mounted under `/api/v1/{feature}` for the default contract or\n`/api/v2/{feature}` when `contract: { version: \"v2\" }` is selected.\n\n## Migrations\n\nThe compiler runs the project-local `drizzle-kit generate` binary during compilation to produce SQL migration files. On subsequent compiles, it uses `existingFiles` (your current migration state) to generate only incremental changes.\n\nIf a compiler response returns migration generation as a post-compile command,\nthe command matches `build.packageManager`: `npm exec`, `pnpm exec`, `yarn exec`,\nor `bun run`. These forms resolve the binary from the generated project's\ndependencies. The npm form runs offline and declines npm's missing package\ninstall prompt, so Quickback never downloads an unpinned Drizzle CLI as a\nfallback. If the local binary is missing, install the generated project's\ndependencies and compile again.\n\nThe CLI loads migration meta JSON from one location only — `<project>/quickback/drizzle/`:\n\n- `quickback/drizzle/auth/meta/`\n- `quickback/drizzle/features/meta/`\n- `quickback/drizzle/files/meta/`\n- `quickback/drizzle/webhooks/meta/`\n- `quickback/drizzle/audit/meta/`\n- `quickback/drizzle/meta/` (single-database mode)\n\nQuickback owns this state — nothing under a project-root `drizzle/` folder is ever read or written.\n\nMigration and report artifacts are written to the `quickback/` state directory:\n\n- `quickback/drizzle/...` for Drizzle migration SQL/meta artifacts\n- `quickback/reports/...` for security contract report artifacts\n\n### Migration history is never wiped\n\nUnlike `src/`, the `quickback/drizzle/` tree is **not** hermetic — it is history,\nand history is only ever appended to or superseded.\n\nTo keep compile payloads small, the CLI uploads every migration `.sql` and\n`_journal.json` but only the **newest** `NNNN_snapshot.json` per meta directory.\nThe compiler's response is therefore a partial view by construction, and a file\nmissing from it carries no instruction. Compile removes a file only when the\ncompiler was actually shown it and left it out; anything never uploaded — every\nhistorical snapshot — is preserved untouched.\n\nWhen something is removed, the previous tree is archived to\n`quickback/.archives/drizzle-<timestamp>/` (the three most recent are kept) and\nthe compile prints what it removed and what it preserved.\n\nFor non-interactive environments (cloud compile, CI), table/column renames must be declared with `compiler.migrations.renames` in `quickback.config.ts`. This avoids interactive rename prompts during migration generation.\n\nMigration files follow the Drizzle Kit naming convention:\n```\n0000_initial.sql\n0001_add_status_column.sql\n0002_create_orders_table.sql\n```\n\n## CMS and Account UI Assets\n\nWhen `cms` and/or `account` are enabled, the compiler builds the SPAs from source at compile time and includes the assets in the output.\n\nEach SPA is placed in its own subdirectory under `src/apps/`:\n\n```\nsrc/apps/ # Root assets directory\n├── cms/ # CMS SPA (served at /cms/ on unified domain)\n│ ├── index.html\n│ └── assets/\n│ ├── app.abc123.js # Content-hashed filenames from Vite\n│ └── app.xyz456.css\n└── account/ # Account SPA (served at /account/ on unified domain)\n ├── index.html\n └── assets/\n ├── app.def789.js\n └── app.ghi012.css\n```\n\nOn custom domains, each SPA is served at root (`/`) via hostname-based routing. On the unified domain, CMS is at `/cms/` and Account is at `/account/`.\n\n### Static Assets (`quickback/public/`)\n\nAnything you drop under `quickback/public/` is copied verbatim into `src/apps/` on every compile. The compiler does not parse, template, or otherwise touch these files — they are bytes that ride past it into the Cloudflare ASSETS binding.\n\n```\nquickback/public/ # Source — checked into your repo\n├── favicon.ico\n├── robots.txt\n├── og/\n│ └── og-image.png\n└── pdfs/\n └── whitepaper.pdf\n```\n\nAfter compile:\n\n```\nsrc/apps/ # Destination — written by the CLI\n├── favicon.ico # Served at https://your-domain/favicon.ico\n├── robots.txt # Served at /robots.txt\n├── og/og-image.png # Served at /og/og-image.png\n├── pdfs/whitepaper.pdf\n├── cms/ # Compiler-emitted SPA (don't shadow)\n└── account/ # Compiler-emitted SPA (don't shadow)\n```\n\nNotes:\n\n- The folder is optional. If it doesn't exist, this step is a no-op.\n- Files removed from `quickback/public/` disappear from `src/apps/` on the next compile — `src/` is wiped and rewritten each run.\n- Hidden entries (`.DS_Store`, `.git/`, dotfiles) are skipped.\n- A file in `quickback/public/` that would overwrite a compiler-emitted path (e.g. `quickback/public/cms/index.html`) fails the compile with a clear error rather than silently shadowing the SPA shell.\n- Binaries (images, fonts, PDFs) are copied byte-for-byte — there is no string round-trip.\n\n### Source Apps (`quickback/apps/`)\n\nFor hand-authored TypeScript apps and prebuilt SPA bundles that live alongside the compiler-emitted SPA shells, drop them under `quickback/apps/<name>/`. The CLI copies the tree into `src/apps/<name>/` on every compile, byte-for-byte, after the compiler has finished writing. Bind a directory to a hostname via [`config.apps`](/configure/domains#app-domains) — the compiler emits the matching Worker middleware automatically.\n\n```\nquickback/apps/ # Source — checked into your repo\n├── m/ # A hand-authored mobile companion app\n│ ├── index.tsx\n│ ├── components/Button.tsx\n│ └── lib/utils.ts\n└── admin/ # A hand-authored admin tool\n └── index.tsx\n```\n\nAfter compile:\n\n```\nsrc/apps/\n├── m/index.tsx # Hand-authored — preserved across compiles\n├── m/components/Button.tsx\n├── m/lib/utils.ts\n├── admin/index.tsx\n├── cms/ # Compiler-emitted SPA (don't shadow)\n└── account/ # Compiler-emitted SPA (don't shadow)\n```\n\nWhen to choose `apps/` vs `public/`:\n\n| | `quickback/public/` | `quickback/apps/` |\n|---|---|---|\n| **Use for** | Static binaries (logos, fonts, OG images, PDFs, robots.txt) | Hand-authored TS/TSX/JS app source |\n| **Skips** | Hidden entries only (`.DS_Store`, `.git/`) | Hidden entries + `node_modules/`, `dist/`, `build/`, `.next/`, `.turbo/`, `.cache/` |\n| **Folder layout** | Files at any depth — flat or nested | Apps under named subfolders (`m/`, `admin/`, …) |\n\nNotes:\n\n- The folder is optional. If it doesn't exist, this step is a no-op.\n- Files removed from `quickback/apps/<name>/` disappear from `src/apps/<name>/` on the next compile — `src/` is wiped and rewritten each run.\n- A file in `quickback/apps/` that would overwrite a compiler-emitted path (e.g. `quickback/apps/cms/index.tsx` while `cms: true`) fails the compile with a clear error.\n- Migrating from hand-edited `src/apps/<name>/`: move the entire folder under `quickback/apps/<name>/` once, then trust the compile cycle. The hermetic `src/` contract holds again.\n\n### Generated Wrangler Assets Config\n\nThe compiler always generates `run_worker_first = true` when SPAs are enabled — the Worker handles all SPA routing (per hostname and per path prefix):\n\n```toml\n[assets]\nbinding = \"ASSETS\"\ndirectory = \"src/apps\"\nnot_found_handling = \"none\"\nrun_worker_first = true\n```\n\nSee [Multi-Domain Architecture](/configure/domains) for details on hostname routing.\n\n## See Also\n\n- [Providers](/configure/providers) — Configure runtime, database, and auth providers\n- [Environment variables](/configure/variables) — Required variables by runtime\n- [Multi-Domain Architecture](/configure/domains) — Custom domains and hostname routing"
478
+ "content": "The compiler generates a complete project structure based on your definitions and provider configuration. Cloudflare Workers is the only supported runtime; what varies is which optional surfaces your config enables.\n\n**Warning:** Never edit files in `src/` directly. They are overwritten on every compile. Make changes in your `quickback/` definitions instead.\n\n## Output\n\n```\nsrc/\n├── index.ts # Hono app entry point (Workers export)\n├── env.d.ts # Cloudflare bindings TypeScript types\n├── db/\n│ ├── index.ts # Database connection factory\n│ ├── auth-schema.ts # Auth table schemas (dual mode)\n│ └── features-schema.ts # Feature table schemas (dual mode)\n├── auth/\n│ └── schema.ts # Better Auth table schemas (generated by the Better Auth CLI)\n├── features/\n│ └── {feature}/\n│ ├── schema.ts # Drizzle table definition(s)\n│ ├── {feature}.ts # Table alias — re-exports the table from schema.ts\n│ ├── {feature}.resource.ts # Firewall / access / masking helpers for this resource\n│ ├── {feature}.routes.ts # CRUD + record-bound action endpoints\n│ ├── {feature}-actions.routes.ts # Standalone action endpoints (when an action sets `path:`)\n│ ├── actions.ts # Aggregator — imports every action's default export\n│ ├── actions/\n│ │ └── {action}.ts # One file per authored action\n│ └── .quickback/\n│ └── define-action.ts # Typed per-feature `defineAction` helper\n├── routes/\n│ └── {feature}.ts # Mount re-export consumed by src/index.ts\n├── lib/\n│ ├── auth.ts # Better Auth instance & config\n│ ├── access.ts # Access control helpers\n│ ├── types.ts # Runtime type definitions\n│ ├── masks.ts # Field masking utilities\n│ ├── services.ts # Service layer\n│ ├── audit-wrapper.ts # Stamps the managed audit columns on write\n│ └── security-audit.ts # Unsafe cross-tenant audit logger (when needed)\n└── middleware/\n ├── auth.ts # Auth context middleware\n ├── db.ts # Database instance middleware\n └── services.ts # Service injection middleware\n\nquickback/drizzle/\n├── auth/ # Auth migrations (dual mode)\n│ ├── meta/\n│ │ ├── _journal.json\n│ │ └── 0000_snapshot.json\n│ └── 0000_initial.sql\n├── features/ # Feature migrations (dual mode)\n│ ├── meta/\n│ │ ├── _journal.json\n│ │ └── 0000_snapshot.json\n│ └── 0000_initial.sql\n└── audit/ # Unsafe cross-tenant action audit migrations (when needed)\n ├── meta/\n └── 0000_initial.sql\n\n# Root config files\n├── package.json\n├── tsconfig.json\n├── wrangler.toml # Cloudflare Workers config\n├── drizzle.config.ts # Features DB drizzle config\n├── drizzle.auth.config.ts # Auth DB drizzle config (dual mode)\n└── drizzle.audit.config.ts # Audit DB drizzle config (when unsafe actions exist)\n```\n\nNot every per-feature file is always emitted:\n\n- `actions.ts`, `actions/`, and `.quickback/define-action.ts` appear only when the feature has at least one authored action under `quickback/features/{feature}/actions/`.\n- `{feature}-actions.routes.ts` appears only when at least one of those actions declares `path:` (the marker that makes an action standalone).\n- `schema.ts`, `{feature}.ts`, and `{feature}.resource.ts` are skipped for tableless features.\n- A multi-table feature gets one alias file per table (`{feature}.ts`, `{other_table}.ts`) alongside the single `schema.ts`.\n\n## Spec Blobs Are Assets, Not Bundle\n\n`openapi.json`, `asyncapi.json` and `schema-registry.json` are **not** written\nto your project root. They are emitted under the assets directory:\n\n```\nsrc/apps/__quickback/spec/\n├── openapi.json\n├── asyncapi.json # only when the project has an events surface\n└── schema-registry.json\n```\n\nThis exists to protect cold-start time.\n\nA Worker has a limited CPU budget for its **startup window** — the module\nevaluation that runs before the first request is served — and everything in the\nbundle counts against it, because the runtime has to parse the whole script. On\na large API the specs are the single biggest thing in that bundle, and the cost\nis paid on every cold start to serve discovery routes most callers never\nrequest.\n\nServing them from the [ASSETS\nbinding](https://developers.cloudflare.com/workers/static-assets/) takes them\nout of the bundle entirely. The generated `src/index.ts` fetches on demand:\n\n```ts\nconst __serveSpec = async (c: any, name: string) => {\n const res = await c.env.ASSETS.fetch(\n new Request(new URL(`/__quickback/spec/${name}`, c.req.url)),\n );\n // ...\n};\n\napp.get('/openapi.json', (c) => __serveSpec(c, 'openapi.json'));\n```\n\nThe routes and payloads are unchanged — `GET /openapi.json` still returns the\nsame spec, under the same [`openapi.publish`](/api/openapi) gate.\n\nBecause of this, projects get an `[assets]` block even with no CMS, Account, or\ncustom app configured. `run_worker_first = true` in that block is\n**security-load-bearing**: it routes every request through your Worker first, so\nan asset is served only when the Worker fetches it. That is what keeps\n`__quickback/spec/` reachable exclusively through the gated spec routes — a\n`publish: 'admin'` spec is not a public URL. Do not relax it.\n\n## Generated Package Dependency Security\n\nFor projects using Better Auth, the generated `package.json` keeps the stable\n`auth@1.6.x` development dependency that provides the `better-auth` executable\nused by `auth:schema`. It also emits this npm override:\n\n```json\n{\n \"overrides\": {\n \"lodash\": \"4.18.1\"\n }\n}\n```\n\nThe override lifts the CLI's dev-only Prisma schema-parser chain off Lodash\nversions affected by the 2026 code-injection and prototype-pollution\nadvisories. It does not change the Better Auth runtime package or generated\nauthentication behavior. Quickback preserves unrelated overrides already in\nyour package manifest, but the compiler-owned Lodash security pin wins if an\nexisting override conflicts.\n\nAfter recompiling, run your package manager's install command so its lockfile\nrecords the patched transitive version. Use `npm audit --omit=dev` when\nevaluating the production dependency tree; development-tool advisories are a\nseparate review surface.\n\nFor Better Auth projects, `quickback compile` owns auth-schema generation.\nThe generated `build` script runs TypeScript only and never rewrites\n`src/auth/schema.ts`, so build and deployment preflight checks preserve a clean\ngenerated worktree. `auth:schema` remains an explicit diagnostic command; run\n`quickback compile` afterward to restore canonical generated bytes.\n\nOn recompilation, Quickback replaces commands for script names it generates,\nincluding `build`, with the current compiler output. Scripts with other names\nare treated as project customizations and preserved. This lets existing\nprojects acquire build and deployment fixes without losing unrelated tooling.\n\n## Optional Output Files\n\nThese files are generated only when the corresponding features are configured:\n\n### Embeddings\n\nWhen any feature has `embeddings` configured:\n\n```\nsrc/\n├── lib/\n│ └── embeddings.ts # Embedding helpers\n├── routes/\n│ └── embeddings.ts # POST /api/{v1|v2}/embeddings endpoint\n└── queue-consumer.ts # Queue handler for async embedding jobs\n```\n\n### File Storage (R2)\n\nWhen `fileStorage` is configured:\n\n```\nsrc/\n└── routes/\n └── storage.ts # File upload/download endpoints\nquickback/drizzle/\n└── files/ # File metadata migrations\n ├── meta/\n └── 0000_*.sql\n```\n\n### Webhooks\n\nWhen webhooks are enabled:\n\n```\nsrc/\n└── lib/\n └── webhooks/\n ├── index.ts # Webhook module entry\n ├── sign.ts # Webhook payload signing\n ├── handlers.ts # Handler registry\n ├── emit.ts # Queue emission helpers\n ├── routes.ts # Inbound/outbound endpoints\n └── providers/\n ├── index.ts\n └── stripe.ts # Stripe webhook handler\nquickback/drizzle/\n└── webhooks/ # Webhook schema migrations\n ├── meta/\n └── 0000_*.sql\n```\n\n### Security Audit Database (Unsafe Actions)\n\nWhen any action enables unsafe cross-tenant mode (`unsafe.crossTenant: true`):\n\n```\nsrc/\n├── db/\n│ └── audit-schema.ts # audit_events table\n└── lib/\n └── security-audit.ts # mandatory audit writer\n\nquickback/drizzle/\n└── audit/\n ├── meta/\n └── 0000_*.sql\n\n# Root\n└── drizzle.audit.config.ts\n```\n\nCloudflare output also includes an `AUDIT_DB` D1 binding in `wrangler.toml` and migration scripts:\n\n- `db:migrate:audit:local`\n- `db:migrate:audit:remote`\n\n### Security Contract Report and Signature\n\nGenerated on every compile (unless disabled via `compiler.securityContracts.report.enabled: false`):\n\n```\nreports/\n├── security-contracts.report.json # Contract evaluation summary + violations\n└── security-contracts.report.sig.json # Signature / digest envelope for the report\n```\n\nThe signature file uses HMAC-SHA256 when a signing key is configured, otherwise it falls back to SHA-256 digest mode. \nSet `compiler.securityContracts.report.signature.required: true` to fail compilation when a signing key is missing.\n\n### Realtime\n\nWhen any feature has `realtime` configured:\n\n```\nsrc/\n├── lib/\n│ ├── realtime.ts # Broadcast helpers\n│ ├── Broadcaster.ts # Durable Object class (inline in main worker)\n│ └── ws-ticket.ts # WebSocket ticket auth utility\n└── routes/\n └── ws-ticket.ts # POST /realtime/v1/ws-ticket endpoint\n```\n\nThe Broadcaster DO class is exported from your main worker entry point and runs inline — no separate `cloudflare-workers/broadcast/` deployment needed.\n\n### Device Authorization\n\nWhen the `deviceAuthorization` plugin is enabled:\n\n```\nsrc/\n└── routes/\n └── cli-auth.ts # Device auth flow endpoints\n```\n\n## Database Schemas\n\n### Dual Database Mode (D1 default)\n\nThe compiler separates schemas into two files:\n\n**`src/db/auth-schema.ts`** — Re-exports Better Auth table schemas:\n- `users`, `sessions`, `accounts`\n- `organizations`, `members`, `invitations` (if organizations enabled)\n- Plugin-specific tables (`apiKeys`, etc.)\n\n**`src/db/features-schema.ts`** — Re-exports your feature schemas:\n- Every table declared with `feature()` or `defineTable()`\n- The managed audit / soft-delete columns you declared on each table — `...q.audit()` / `...q.softDelete()` on the q path, the canonical Drizzle lines on the raw-Drizzle path\n\n### Single Database Mode (`splitDatabases: false`)\n\n**`src/db/schema.ts`** — Combined re-export of all schemas (auth + features).\n\n## Generated Routes\n\nFor each feature, the compiler generates a routes file at `src/features/{name}/routes.ts` containing:\n\n| Route | Generated When |\n|-------|----------------|\n| `GET /` | `crud.list` configured |\n| `GET /:id` | `crud.get` configured |\n| `POST /` | `crud.create` configured |\n| `PATCH /:id` | `crud.update` configured |\n| `DELETE /:id` | `crud.delete` configured |\n| `PUT /:id` | `crud.put` configured |\n| `POST /batch` | `crud.create` exists (auto-enabled) |\n| `PATCH /batch` | `crud.update` exists (auto-enabled) |\n| `DELETE /batch` | `crud.delete` exists (auto-enabled) |\n| `PUT /batch` | `crud.put` exists (auto-enabled) |\n| `GET /views/{name}` | `views` configured |\n| `POST /:id/{action}` | Record-based actions defined |\n| `POST /{action}` | Standalone actions defined |\n\nRoutes are mounted under `/api/v1/{feature}` for the default contract or\n`/api/v2/{feature}` when `contract: { version: \"v2\" }` is selected.\n\n## Migrations\n\nThe compiler runs the project-local `drizzle-kit generate` binary during compilation to produce SQL migration files. On subsequent compiles, it uses `existingFiles` (your current migration state) to generate only incremental changes.\n\nIf a compiler response returns migration generation as a post-compile command,\nthe command matches `build.packageManager`: `npm exec`, `pnpm exec`, `yarn exec`,\nor `bun run`. These forms resolve the binary from the generated project's\ndependencies. The npm form runs offline and declines npm's missing package\ninstall prompt, so Quickback never downloads an unpinned Drizzle CLI as a\nfallback. If the local binary is missing, install the generated project's\ndependencies and compile again.\n\nThe CLI loads migration meta JSON from one location only — `<project>/quickback/drizzle/`:\n\n- `quickback/drizzle/auth/meta/`\n- `quickback/drizzle/features/meta/`\n- `quickback/drizzle/files/meta/`\n- `quickback/drizzle/webhooks/meta/`\n- `quickback/drizzle/audit/meta/`\n- `quickback/drizzle/meta/` (single-database mode)\n\nQuickback owns this state — nothing under a project-root `drizzle/` folder is ever read or written.\n\nMigration and report artifacts are written to the `quickback/` state directory:\n\n- `quickback/drizzle/...` for Drizzle migration SQL/meta artifacts\n- `quickback/reports/...` for security contract report artifacts\n\n### Migration history is never wiped\n\nUnlike `src/`, the `quickback/drizzle/` tree is **not** hermetic — it is history,\nand history is only ever appended to or superseded.\n\nTo keep compile payloads small, the CLI uploads every migration `.sql` and\n`_journal.json` but only the **newest** `NNNN_snapshot.json` per meta directory.\nThe compiler's response is therefore a partial view by construction, and a file\nmissing from it carries no instruction. Compile removes a file only when the\ncompiler was actually shown it and left it out; anything never uploaded — every\nhistorical snapshot — is preserved untouched.\n\nWhen something is removed, the previous tree is archived to\n`quickback/.archives/drizzle-<timestamp>/` (the three most recent are kept) and\nthe compile prints what it removed and what it preserved.\n\nFor non-interactive environments (cloud compile, CI), table/column renames must be declared with `compiler.migrations.renames` in `quickback.config.ts`. This avoids interactive rename prompts during migration generation.\n\nMigration files follow the Drizzle Kit naming convention:\n```\n0000_initial.sql\n0001_add_status_column.sql\n0002_create_orders_table.sql\n```\n\n## CMS and Account UI Assets\n\nWhen `cms` and/or `account` are enabled, the compiler stages the generic prebuilt SPA bundles (built once per compiler release) into the output; per-project configuration reaches them at serve time via the worker-injected `window.__QUICKBACK_RUNTIME` blob.\n\nEach SPA is placed in its own subdirectory under `src/apps/`:\n\n```\nsrc/apps/ # Root assets directory\n├── cms/ # CMS SPA (served at /cms/ on unified domain)\n│ ├── index.html\n│ └── assets/\n│ ├── app.abc123.js # Content-hashed filenames from Vite\n│ └── app.xyz456.css\n├── account/ # Account SPA (served at /account/ on unified domain)\n│ ├── index.html\n│ └── assets/\n│ ├── app.def789.js\n│ └── app.ghi012.css\n└── __quickback/ # Compiler-owned — reserved, never yours to write\n └── spec/ # Spec blobs, fetched via the ASSETS binding\n ├── openapi.json\n ├── asyncapi.json\n └── schema-registry.json\n```\n\nOn custom domains, each SPA is served at root (`/`) via hostname-based routing. On the unified domain, CMS is at `/cms/` and Account is at `/account/`.\n\n### Static Assets (`quickback/public/`)\n\nAnything you drop under `quickback/public/` is copied verbatim into `src/apps/` on every compile. The compiler does not parse, template, or otherwise touch these files — they are bytes that ride past it into the Cloudflare ASSETS binding.\n\n```\nquickback/public/ # Source — checked into your repo\n├── favicon.ico\n├── robots.txt\n├── og/\n│ └── og-image.png\n└── pdfs/\n └── whitepaper.pdf\n```\n\nAfter compile:\n\n```\nsrc/apps/ # Destination — written by the CLI\n├── favicon.ico # Served at https://your-domain/favicon.ico\n├── robots.txt # Served at /robots.txt\n├── og/og-image.png # Served at /og/og-image.png\n├── pdfs/whitepaper.pdf\n├── cms/ # Compiler-emitted SPA (don't shadow)\n└── account/ # Compiler-emitted SPA (don't shadow)\n```\n\nNotes:\n\n- The folder is optional. If it doesn't exist, this step is a no-op.\n- Files removed from `quickback/public/` disappear from `src/apps/` on the next compile — `src/` is wiped and rewritten each run.\n- Hidden entries (`.DS_Store`, `.git/`, dotfiles) are skipped.\n- A file in `quickback/public/` that would overwrite a compiler-emitted path (e.g. `quickback/public/cms/index.html`) fails the compile with a clear error rather than silently shadowing the SPA shell.\n- Binaries (images, fonts, PDFs) are copied byte-for-byte — there is no string round-trip.\n\n### Source Apps (`quickback/apps/`)\n\nFor hand-authored TypeScript apps and prebuilt SPA bundles that live alongside the compiler-emitted SPA shells, drop them under `quickback/apps/<name>/`. The CLI copies the tree into `src/apps/<name>/` on every compile, byte-for-byte, after the compiler has finished writing. Bind a directory to a hostname via [`config.apps`](/configure/domains#app-domains) — the compiler emits the matching Worker middleware automatically.\n\n```\nquickback/apps/ # Source — checked into your repo\n├── m/ # A hand-authored mobile companion app\n│ ├── index.tsx\n│ ├── components/Button.tsx\n│ └── lib/utils.ts\n└── admin/ # A hand-authored admin tool\n └── index.tsx\n```\n\nAfter compile:\n\n```\nsrc/apps/\n├── m/index.tsx # Hand-authored — preserved across compiles\n├── m/components/Button.tsx\n├── m/lib/utils.ts\n├── admin/index.tsx\n├── cms/ # Compiler-emitted SPA (don't shadow)\n└── account/ # Compiler-emitted SPA (don't shadow)\n```\n\nWhen to choose `apps/` vs `public/`:\n\n| | `quickback/public/` | `quickback/apps/` |\n|---|---|---|\n| **Use for** | Static binaries (logos, fonts, OG images, PDFs, robots.txt) | Hand-authored TS/TSX/JS app source |\n| **Skips** | Hidden entries only (`.DS_Store`, `.git/`) | Hidden entries + `node_modules/`, `dist/`, `build/`, `.next/`, `.turbo/`, `.cache/` |\n| **Folder layout** | Files at any depth — flat or nested | Apps under named subfolders (`m/`, `admin/`, …) |\n\nNotes:\n\n- The folder is optional. If it doesn't exist, this step is a no-op.\n- Files removed from `quickback/apps/<name>/` disappear from `src/apps/<name>/` on the next compile — `src/` is wiped and rewritten each run.\n- A file in `quickback/apps/` that would overwrite a compiler-emitted path (e.g. `quickback/apps/cms/index.tsx` while `cms: true`) fails the compile with a clear error.\n- Migrating from hand-edited `src/apps/<name>/`: move the entire folder under `quickback/apps/<name>/` once, then trust the compile cycle. The hermetic `src/` contract holds again.\n\n### Generated Wrangler Assets Config\n\nThe compiler always generates `run_worker_first = true` when SPAs are enabled — the Worker handles all SPA routing (per hostname and per path prefix):\n\n```toml\n[assets]\nbinding = \"ASSETS\"\ndirectory = \"src/apps\"\nnot_found_handling = \"none\"\nrun_worker_first = true\n```\n\nSee [Multi-Domain Architecture](/configure/domains) for details on hostname routing.\n\n## See Also\n\n- [Providers](/configure/providers) — Configure runtime, database, and auth providers\n- [Environment variables](/configure/variables) — Required variables by runtime\n- [Multi-Domain Architecture](/configure/domains) — Custom domains and hostname routing"
479
479
  },
480
480
  "tooling/troubleshooting": {
481
481
  "title": "Troubleshooting",
@@ -487,11 +487,11 @@ export const DOCS = {
487
487
  },
488
488
  "ui/account/environment-variables": {
489
489
  "title": "Environment Variables",
490
- "content": "# Environment Variables\n\nConfigure the Account UI by setting environment variables in your `.env` file or deployment platform.\n\n## Quick Setup — Single Variable\n\nFor the common \"unified deployment\" where API, Account, and CMS all live on the same Quickback origin, you only need **one** variable:\n\n```bash\n# Points at the Quickback Worker origin\nVITE_QUICKBACK_URL=https://secure.example.com\n```\n\nWhen `VITE_QUICKBACK_URL` is set, it's used as a fallback for the individual URL vars:\n\n| Individual var | Used first | Falls back to |\n|---|---|---|\n| `VITE_QUICKBACK_API_URL` | if set | `${VITE_QUICKBACK_URL}` |\n| `VITE_QUICKBACK_ACCOUNT_URL` | if set | `${VITE_QUICKBACK_URL}/account` |\n| `VITE_QUICKBACK_CMS_URL` | if set | `${VITE_QUICKBACK_URL}/cms` |\n\n## Required Variables\n\nAt minimum, you need one of:\n\n- **`VITE_QUICKBACK_URL`** — catch-all for the Quickback origin (recommended), **or**\n- **`VITE_QUICKBACK_API_URL`** — explicit API URL (use this if your API lives on a different subdomain from Account/CMS)\n\n### Split-subdomain setup\n\nIf your API, Account, and CMS live on separate custom subdomains, set them explicitly:\n\n```bash\n# Quickback API URL\nVITE_QUICKBACK_API_URL=https://api.example.com\n\n# Account UI URL (where the Account UI is deployed)\nVITE_ACCOUNT_APP_URL=https://account.example.com\n\n# Optional: override Account/CMS URLs for cross-origin links\nVITE_QUICKBACK_ACCOUNT_URL=https://auth.example.com\nVITE_QUICKBACK_CMS_URL=https://cms.example.com\n```\n\n## App Identity\n\nConfigure your application's basic information:\n\n```bash\n# App name (displayed in UI)\nVITE_APP_NAME=My Application\n\n# Tagline (shown on landing pages)\nVITE_APP_TAGLINE=Build faster, ship sooner\n\n# Full description\nVITE_APP_DESCRIPTION=A complete platform for building modern web applications\n\n# Company information\nVITE_COMPANY_NAME=My Company Inc.\nVITE_COMPANY_ADDRESS=123 Main St, Suite 100, San Francisco, CA 94105\n```\n\n## URLs\n\n### Main Application\n\n```bash\n# Your main application URL\n# Users will be redirected here after authentication\nVITE_QUICKBACK_APP_URL=https://app.example.com\n\n# Organization/Tenant URL pattern (optional)\n# Use {slug} as placeholder for organization identifier\n# Examples:\n# /organizations/{slug} -> app.example.com/organizations/acme\n# /workspace/{slug} -> app.example.com/workspace/acme\n# https://{slug}.example.com -> acme.example.com\nVITE_TENANT_URL_PATTERN=/organizations/{slug}\n```\n\n### Support and Legal\n\n```bash\n# Support/help URL\nVITE_SUPPORT_URL=https://support.example.com\n\n# Privacy policy URL\nVITE_PRIVACY_URL=https://example.com/privacy\n\n# Terms of service URL\nVITE_TERMS_URL=https://example.com/terms\n```\n\n## Email Configuration\n\n```bash\n# From address for all emails\nVITE_EMAIL_FROM=noreply@example.com\n\n# Reply-to address\nVITE_EMAIL_REPLY_TO=support@example.com\n\n# Support email address\nVITE_SUPPORT_EMAIL=support@example.com\n\n# AWS Region for SES (if using AWS SES)\nVITE_EMAIL_REGION=us-east-1\n```\n\n## Branding\n\n```bash\n# Primary theme color (hex code)\nVITE_THEME_COLOR=#1e293b\n\n# SEO keywords (comma-separated)\nVITE_SEO_KEYWORDS=saas,authentication,account management\n```\n\n## Feature Flags\n\nEnable or disable features using boolean environment variables. **Every flag carries the `VITE_` prefix** — Vite only exposes `VITE_*` vars to client code, so an unprefixed `ENABLE_PASSKEY=true` is read by nothing.\n\n### `appConfig.features`\n\n| Variable | `features` key | Default |\n|---|---|---|\n| `VITE_ENABLE_ORGANIZATIONS` | `organizations` | `false` |\n| `VITE_ENABLE_ORG_TEAMS` | `orgTeams` | `false` |\n| `VITE_ENABLE_ADMIN` | `admin` | `true` |\n| `VITE_ENABLE_FILE_UPLOADS` | `fileUploads` | `false` |\n| `VITE_ENABLE_PASSKEY` | `passkey` | `false` |\n| `VITE_ENABLE_EMAIL_OTP` | `emailOTP` | `false` |\n| `VITE_ENABLE_PASSWORD` | `password` | `true` |\n| `VITE_ENABLE_GOOGLE_OAUTH` | `googleOAuth` | `false` |\n| `VITE_ENABLE_SUBSCRIPTIONS` | `subscriptions` | `false` |\n| `VITE_ENABLE_REALTIME` | `realtime` | `false` |\n\n### `appConfig.auth`\n\n| Variable | `auth` key | Default |\n|---|---|---|\n| `VITE_ENABLE_SIGNUP` | `enableSignup` | `true` |\n| `VITE_ENABLE_EMAIL_VERIFICATION` | `requireEmailVerification` | `true` |\n| `VITE_DISABLE_EMAIL_STATUS_CHECK` | `disableEmailStatusCheck` | `false` |\n\n```bash\n# Authentication\nVITE_ENABLE_SIGNUP=true # default: true\nVITE_ENABLE_EMAIL_VERIFICATION=true # default: true\nVITE_DISABLE_EMAIL_STATUS_CHECK=false # default: false — inverted sense\nVITE_ENABLE_PASSWORD=true # default: true\nVITE_ENABLE_PASSKEY=false # default: false\nVITE_ENABLE_EMAIL_OTP=false # default: false\nVITE_ENABLE_GOOGLE_OAUTH=false # default: false\n\n# Account management\nVITE_ENABLE_FILE_UPLOADS=false # default: false\nVITE_ENABLE_SUBSCRIPTIONS=false # default: false\nVITE_ENABLE_REALTIME=false # default: false\n\n# Organizations\nVITE_ENABLE_ORGANIZATIONS=false # default: false\nVITE_ENABLE_ORG_TEAMS=false # default: false\n# Auto-set to true when the BA config has organization({ teams: { enabled: true } }).\n# When false the Teams tab is hidden and the auth client doesn't expose team APIs.\n\n# Admin\nVITE_ENABLE_ADMIN=true # default: true\n```\n\nPer-flag behaviour is documented under [Feature Flags](/ui/account/features).\n\n## Complete Example\n\nHere's a complete `.env` file with all common configuration:\n\n```bash title=\".env\"\n# ===== REQUIRED =====\nVITE_QUICKBACK_API_URL=https://api.example.com\nVITE_ACCOUNT_APP_URL=https://account.example.com\n\n# ===== APP IDENTITY =====\nVITE_APP_NAME=Acme SaaS\nVITE_APP_TAGLINE=Build faster, ship sooner\nVITE_APP_DESCRIPTION=The complete platform for modern web applications\nVITE_COMPANY_NAME=Acme Corporation\nVITE_COMPANY_ADDRESS=123 Main St, Suite 100, San Francisco, CA 94105\n\n# ===== URLS =====\nVITE_QUICKBACK_APP_URL=https://app.acme.com\nVITE_TENANT_URL_PATTERN=/organizations/{slug}\nVITE_SUPPORT_URL=https://help.acme.com\nVITE_PRIVACY_URL=https://acme.com/privacy\nVITE_TERMS_URL=https://acme.com/terms\n\n# ===== EMAIL =====\nVITE_EMAIL_FROM=noreply@acme.com\nVITE_EMAIL_REPLY_TO=support@acme.com\nVITE_SUPPORT_EMAIL=support@acme.com\nVITE_EMAIL_REGION=us-east-1\n\n# ===== BRANDING =====\nVITE_THEME_COLOR=#3b82f6\n\n# ===== SEO =====\nVITE_SEO_KEYWORDS=saas,project management,team collaboration\n\n# ===== FEATURES =====\nVITE_ENABLE_SIGNUP=true\nVITE_ENABLE_EMAIL_VERIFICATION=true\nVITE_ENABLE_PASSKEY=true\nVITE_ENABLE_EMAIL_OTP=true\nVITE_ENABLE_PASSWORD=false\nVITE_ENABLE_ORGANIZATIONS=true\nVITE_ENABLE_ORG_TEAMS=true\nVITE_ENABLE_ADMIN=true\nVITE_ENABLE_FILE_UPLOADS=true\nVITE_VITE_DISABLE_EMAIL_STATUS_CHECK=false\n```\n\n## Environment-Specific Configuration\n\n### Development\n\n```bash title=\".env.development\"\nVITE_QUICKBACK_API_URL=http://localhost:8787\nVITE_ACCOUNT_APP_URL=http://localhost:5173\nVITE_QUICKBACK_APP_URL=http://localhost:3000\nVITE_DISABLE_EMAIL_STATUS_CHECK=true\n```\n\n### Staging\n\n```bash title=\".env.staging\"\nVITE_QUICKBACK_API_URL=https://api-staging.example.com\nVITE_ACCOUNT_APP_URL=https://account-staging.example.com\nVITE_QUICKBACK_APP_URL=https://app-staging.example.com\n```\n\n### Production\n\n```bash title=\".env.production\"\nVITE_QUICKBACK_API_URL=https://api.example.com\nVITE_ACCOUNT_APP_URL=https://account.example.com\nVITE_QUICKBACK_APP_URL=https://app.example.com\nVITE_DISABLE_EMAIL_STATUS_CHECK=false\n```\n\n## Deployment\n\nThe Account UI has no standalone deploy path — the compiler builds it from source and bundles it into your Worker. In a compiled project you normally set none of the variables on this page by hand:\n\n1. Declare the values in `quickback.config.ts` under `account` (name, branding, URLs, `auth` feature flags).\n2. `quickback compile` writes the matching `.env` for the in-Docker Vite build **and** bakes the same values into the generated worker.\n3. The worker injects them into every served Account shell as `window.__QUICKBACK_RUNTIME`, which the SPA prefers over the baked `VITE_*` values.\n\n```bash\nquickback compile\nnpx wrangler deploy\n```\n\nSee [With Quickback](/ui/account/with-quickback) for the full pipeline.\n\nThe `.env` files documented above apply when you run the Account SPA outside a Quickback worker — local `vite dev` against a remote API, or hosting the built assets yourself. In that case the values are baked at build time and changing one requires a rebuild.\n\n## Runtime Configuration\n\nSome values can be overridden at runtime using the config API:\n\n```ts\nimport { setAppConfig } from '@/config/app';\n\nsetAppConfig({\n name: 'My Custom App',\n branding: {\n primaryColor: '#ff6600',\n logoUrl: '/custom-logo.png',\n },\n urls: {\n base: 'https://account.custom.com',\n app: 'https://app.custom.com',\n },\n});\n```\n\n## Resolution behaviour\n\nConfig resolution is lenient — there is no startup validation pass and no throw for a missing URL:\n\n- **No API URL resolved** — falls back to `window.location.origin`\n- **No `VITE_QUICKBACK_ACCOUNT_URL` / `VITE_QUICKBACK_CMS_URL`** — derived from `VITE_QUICKBACK_URL` as `${base}/account` and `${base}/cms`; `null` if that is unset too\n- **Missing optional fields** — use the built-in defaults listed above\n\nThe two calls that *do* throw are `getDataApiUrl()` and `getStorageApiUrl()`, when `authRoute` is not `\"quickback\"` and `routes.api.data` / `routes.api.storage` were never configured.\n\n## Next Steps\n\n- **[Feature Flags](/ui/account/features)** - Detailed feature configuration\n- **[Customization](/ui/account/customization)** - Customize labels and messages\n- **[With Quickback](/ui/account/with-quickback)** - How the compiler builds and bundles Account UI"
490
+ "content": "# Environment Variables\n\nConfigure the Account UI by setting environment variables in your `.env` file or deployment platform.\n\n## Quick Setup — Single Variable\n\nFor the common \"unified deployment\" where API, Account, and CMS all live on the same Quickback origin, you only need **one** variable:\n\n```bash\n# Points at the Quickback Worker origin\nVITE_QUICKBACK_URL=https://secure.example.com\n```\n\nWhen `VITE_QUICKBACK_URL` is set, it's used as a fallback for the individual URL vars:\n\n| Individual var | Used first | Falls back to |\n|---|---|---|\n| `VITE_QUICKBACK_API_URL` | if set | `${VITE_QUICKBACK_URL}` |\n| `VITE_QUICKBACK_ACCOUNT_URL` | if set | `${VITE_QUICKBACK_URL}/account` |\n| `VITE_QUICKBACK_CMS_URL` | if set | `${VITE_QUICKBACK_URL}/cms` |\n\n## Required Variables\n\nAt minimum, you need one of:\n\n- **`VITE_QUICKBACK_URL`** — catch-all for the Quickback origin (recommended), **or**\n- **`VITE_QUICKBACK_API_URL`** — explicit API URL (use this if your API lives on a different subdomain from Account/CMS)\n\n### Split-subdomain setup\n\nIf your API, Account, and CMS live on separate custom subdomains, set them explicitly:\n\n```bash\n# Quickback API URL\nVITE_QUICKBACK_API_URL=https://api.example.com\n\n# Account UI URL (where the Account UI is deployed)\nVITE_ACCOUNT_APP_URL=https://account.example.com\n\n# Optional: override Account/CMS URLs for cross-origin links\nVITE_QUICKBACK_ACCOUNT_URL=https://auth.example.com\nVITE_QUICKBACK_CMS_URL=https://cms.example.com\n```\n\n## App Identity\n\nConfigure your application's basic information:\n\n```bash\n# App name (displayed in UI)\nVITE_APP_NAME=My Application\n\n# Tagline (shown on landing pages)\nVITE_APP_TAGLINE=Build faster, ship sooner\n\n# Full description\nVITE_APP_DESCRIPTION=A complete platform for building modern web applications\n\n# Company information\nVITE_COMPANY_NAME=My Company Inc.\nVITE_COMPANY_ADDRESS=123 Main St, Suite 100, San Francisco, CA 94105\n```\n\n## URLs\n\n### Main Application\n\n```bash\n# Your main application URL\n# Users will be redirected here after authentication\nVITE_QUICKBACK_APP_URL=https://app.example.com\n\n# Organization/Tenant URL pattern (optional)\n# Use {slug} as placeholder for organization identifier\n# Examples:\n# /organizations/{slug} -> app.example.com/organizations/acme\n# /workspace/{slug} -> app.example.com/workspace/acme\n# https://{slug}.example.com -> acme.example.com\nVITE_TENANT_URL_PATTERN=/organizations/{slug}\n```\n\n### Support and Legal\n\n```bash\n# Support/help URL\nVITE_SUPPORT_URL=https://support.example.com\n\n# Privacy policy URL\nVITE_PRIVACY_URL=https://example.com/privacy\n\n# Terms of service URL\nVITE_TERMS_URL=https://example.com/terms\n```\n\n## Email Configuration\n\n```bash\n# From address for all emails\nVITE_EMAIL_FROM=noreply@example.com\n\n# Reply-to address\nVITE_EMAIL_REPLY_TO=support@example.com\n\n# Support email address\nVITE_SUPPORT_EMAIL=support@example.com\n\n# AWS Region for SES (if using AWS SES)\nVITE_EMAIL_REGION=us-east-1\n```\n\n## Branding\n\n```bash\n# Primary theme color (hex code)\nVITE_THEME_COLOR=#1e293b\n\n# SEO keywords (comma-separated)\nVITE_SEO_KEYWORDS=saas,authentication,account management\n```\n\n## Feature Flags\n\nEnable or disable features using boolean environment variables. **Every flag carries the `VITE_` prefix** — Vite only exposes `VITE_*` vars to client code, so an unprefixed `ENABLE_PASSKEY=true` is read by nothing.\n\n### `appConfig.features`\n\n| Variable | `features` key | Default |\n|---|---|---|\n| `VITE_ENABLE_ORGANIZATIONS` | `organizations` | `false` |\n| `VITE_ENABLE_ORG_TEAMS` | `orgTeams` | `false` |\n| `VITE_ENABLE_ADMIN` | `admin` | `true` |\n| `VITE_ENABLE_FILE_UPLOADS` | `fileUploads` | `false` |\n| `VITE_ENABLE_PASSKEY` | `passkey` | `false` |\n| `VITE_ENABLE_EMAIL_OTP` | `emailOTP` | `false` |\n| `VITE_ENABLE_PASSWORD` | `password` | `true` |\n| `VITE_ENABLE_GOOGLE_OAUTH` | `googleOAuth` | `false` |\n| `VITE_ENABLE_SUBSCRIPTIONS` | `subscriptions` | `false` |\n| `VITE_ENABLE_REALTIME` | `realtime` | `false` |\n\n### `appConfig.auth`\n\n| Variable | `auth` key | Default |\n|---|---|---|\n| `VITE_ENABLE_SIGNUP` | `enableSignup` | `true` |\n| `VITE_ENABLE_EMAIL_VERIFICATION` | `requireEmailVerification` | `true` |\n| `VITE_DISABLE_EMAIL_STATUS_CHECK` | `disableEmailStatusCheck` | `false` |\n\n```bash\n# Authentication\nVITE_ENABLE_SIGNUP=true # default: true\nVITE_ENABLE_EMAIL_VERIFICATION=true # default: true\nVITE_DISABLE_EMAIL_STATUS_CHECK=false # default: false — inverted sense\nVITE_ENABLE_PASSWORD=true # default: true\nVITE_ENABLE_PASSKEY=false # default: false\nVITE_ENABLE_EMAIL_OTP=false # default: false\nVITE_ENABLE_GOOGLE_OAUTH=false # default: false\n\n# Account management\nVITE_ENABLE_FILE_UPLOADS=false # default: false\nVITE_ENABLE_SUBSCRIPTIONS=false # default: false\nVITE_ENABLE_REALTIME=false # default: false\n\n# Organizations\nVITE_ENABLE_ORGANIZATIONS=false # default: false\nVITE_ENABLE_ORG_TEAMS=false # default: false\n# Auto-set to true when the BA config has organization({ teams: { enabled: true } }).\n# When false the Teams tab is hidden and the auth client doesn't expose team APIs.\n\n# Admin\nVITE_ENABLE_ADMIN=true # default: true\n```\n\nPer-flag behaviour is documented under [Feature Flags](/ui/account/features).\n\n## Complete Example\n\nHere's a complete `.env` file with all common configuration:\n\n```bash title=\".env\"\n# ===== REQUIRED =====\nVITE_QUICKBACK_API_URL=https://api.example.com\nVITE_ACCOUNT_APP_URL=https://account.example.com\n\n# ===== APP IDENTITY =====\nVITE_APP_NAME=Acme SaaS\nVITE_APP_TAGLINE=Build faster, ship sooner\nVITE_APP_DESCRIPTION=The complete platform for modern web applications\nVITE_COMPANY_NAME=Acme Corporation\nVITE_COMPANY_ADDRESS=123 Main St, Suite 100, San Francisco, CA 94105\n\n# ===== URLS =====\nVITE_QUICKBACK_APP_URL=https://app.acme.com\nVITE_TENANT_URL_PATTERN=/organizations/{slug}\nVITE_SUPPORT_URL=https://help.acme.com\nVITE_PRIVACY_URL=https://acme.com/privacy\nVITE_TERMS_URL=https://acme.com/terms\n\n# ===== EMAIL =====\nVITE_EMAIL_FROM=noreply@acme.com\nVITE_EMAIL_REPLY_TO=support@acme.com\nVITE_SUPPORT_EMAIL=support@acme.com\nVITE_EMAIL_REGION=us-east-1\n\n# ===== BRANDING =====\nVITE_THEME_COLOR=#3b82f6\n\n# ===== SEO =====\nVITE_SEO_KEYWORDS=saas,project management,team collaboration\n\n# ===== FEATURES =====\nVITE_ENABLE_SIGNUP=true\nVITE_ENABLE_EMAIL_VERIFICATION=true\nVITE_ENABLE_PASSKEY=true\nVITE_ENABLE_EMAIL_OTP=true\nVITE_ENABLE_PASSWORD=false\nVITE_ENABLE_ORGANIZATIONS=true\nVITE_ENABLE_ORG_TEAMS=true\nVITE_ENABLE_ADMIN=true\nVITE_ENABLE_FILE_UPLOADS=true\nVITE_VITE_DISABLE_EMAIL_STATUS_CHECK=false\n```\n\n## Environment-Specific Configuration\n\n### Development\n\n```bash title=\".env.development\"\nVITE_QUICKBACK_API_URL=http://localhost:8787\nVITE_ACCOUNT_APP_URL=http://localhost:5173\nVITE_QUICKBACK_APP_URL=http://localhost:3000\nVITE_DISABLE_EMAIL_STATUS_CHECK=true\n```\n\n### Staging\n\n```bash title=\".env.staging\"\nVITE_QUICKBACK_API_URL=https://api-staging.example.com\nVITE_ACCOUNT_APP_URL=https://account-staging.example.com\nVITE_QUICKBACK_APP_URL=https://app-staging.example.com\n```\n\n### Production\n\n```bash title=\".env.production\"\nVITE_QUICKBACK_API_URL=https://api.example.com\nVITE_ACCOUNT_APP_URL=https://account.example.com\nVITE_QUICKBACK_APP_URL=https://app.example.com\nVITE_DISABLE_EMAIL_STATUS_CHECK=false\n```\n\n## Deployment\n\nThe Account UI has no standalone deploy path — the compiler ships a generic prebuilt bundle (built once per compiler release) into your Worker. In a compiled project you normally set none of the variables on this page by hand:\n\n1. Declare the values in `quickback.config.ts` under `account` (name, branding, URLs, `auth` feature flags).\n2. `quickback compile` stages the prebuilt Account assets and bakes the values into the generated worker.\n3. The worker injects them into every served Account shell as `window.__QUICKBACK_RUNTIME`, which the SPA prefers over baked `VITE_*` values. This runtime blob is the only per-project configuration channel — no per-project Vite build runs.\n\n```bash\nquickback compile\nnpx wrangler deploy\n```\n\nSee [With Quickback](/ui/account/with-quickback) for the full pipeline.\n\nThe `.env` files documented above apply when you run the Account SPA outside a Quickback worker — local `vite dev` against a remote API, or hosting the built assets yourself. In that case the values are baked at build time and changing one requires a rebuild.\n\n## Runtime Configuration\n\nSome values can be overridden at runtime using the config API:\n\n```ts\nimport { setAppConfig } from '@/config/app';\n\nsetAppConfig({\n name: 'My Custom App',\n branding: {\n primaryColor: '#ff6600',\n logoUrl: '/custom-logo.png',\n },\n urls: {\n base: 'https://account.custom.com',\n app: 'https://app.custom.com',\n },\n});\n```\n\n## Resolution behaviour\n\nConfig resolution is lenient — there is no startup validation pass and no throw for a missing URL:\n\n- **No API URL resolved** — falls back to `window.location.origin`\n- **No `VITE_QUICKBACK_ACCOUNT_URL` / `VITE_QUICKBACK_CMS_URL`** — derived from `VITE_QUICKBACK_URL` as `${base}/account` and `${base}/cms`; `null` if that is unset too\n- **Missing optional fields** — use the built-in defaults listed above\n\nThe two calls that *do* throw are `getDataApiUrl()` and `getStorageApiUrl()`, when `authRoute` is not `\"quickback\"` and `routes.api.data` / `routes.api.storage` were never configured.\n\n## Next Steps\n\n- **[Feature Flags](/ui/account/features)** - Detailed feature configuration\n- **[Customization](/ui/account/customization)** - Customize labels and messages\n- **[With Quickback](/ui/account/with-quickback)** - How the compiler builds and bundles Account UI"
491
491
  },
492
492
  "ui/account/features/admin": {
493
493
  "title": "Admin Panel",
494
- "content": "The admin panel provides a user management dashboard for administrators. It's part of the Account UI SPA — when enabled, the `/admin` route is included in the build.\n\n## Enabling Admin\n\nSet `auth.admin` to `true` in your account config:\n\n```typescript title=\"quickback/quickback.config.ts\"\naccount: {\n auth: {\n admin: true,\n },\n},\n```\n\nThis does two things:\n1. Includes admin route files in the Account SPA build (compile-time gating)\n2. Ensures the Better Auth `admin` plugin is enabled on the backend\n\nWhen `auth.admin` is `false` (the default), admin routes are excluded from the SPA bundle entirely — they don't exist in production.\n\n## What It Can Do\n\n- **View all users** — Paginated list with search\n- **Create users** — Manually create accounts with email/password\n- **Ban/unban users** — Suspend or reactivate user accounts\n- **Reset passwords** — Generate password reset for any user\n- **View sessions** — See active sessions for any user\n\n## Access Control\n\nThe admin panel is restricted to users with `role: \"admin\"` on their Better Auth user record. Non-admin users are redirected away from `/admin`.\n\nTo grant admin access to a user, use the Better Auth admin plugin:\n\n```bash\ncurl -X POST https://api.example.com/auth/v1/admin/set-role \\\n -H \"Authorization: Bearer $TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"userId\": \"user_123\", \"role\": \"admin\" }'\n```\n\n## Custom Admin Domain\n\nGive the admin panel its own subdomain with `adminDomain`:\n\n```typescript title=\"quickback/quickback.config.ts\"\naccount: {\n domain: \"auth.example.com\",\n adminDomain: \"admin.example.com\",\n auth: { password: true, admin: true },\n},\ntrustedOrigins: [\n \"https://auth.example.com\",\n \"https://admin.example.com\",\n],\n```\n\nThe admin domain serves the same Account SPA at root (`/`). The SPA's client-side router handles showing the admin page at `admin.example.com/admin`. Authentication cookies are shared across subdomains automatically via [cross-subdomain cookie configuration](/configure/domains#cross-subdomain-authentication).\n\n## CMS Access Control\n\nWhen both CMS and Account UI are enabled, the admin panel's profile page shows a \"Go to CMS\" button. You can restrict this to admin users only:\n\n```typescript\ncms: { domain: \"cms.example.com\", access: \"admin\" },\n```\n\nWith `access: \"admin\"`, callers outside the platform control-plane roles can't access the CMS at any layer: the link is hidden in Account UI, the SPA shell returns `403` before serving `index.html`, `/api/v1/schema` returns `403`, and the `custom_view` CRUD is locked to `userRole: [\"appmanager\"]` (plus `sysadmin` when enabled). See [CMS Connecting](/ui/admin/connecting#restrict-cms-access-to-admin-users-only) for the full enforcement model.\n\n## Related\n\n- [Configuration](/configure) — `auth.admin` and `adminDomain` options\n- [Multi-Domain Architecture](/configure/domains) — Custom domains and hostname routing\n- [Access Control](/define/access) — Role-based permissions in your API"
494
+ "content": "The admin panel provides a user management dashboard for administrators. It's part of the Account UI SPA — when enabled, the `/admin` route is included in the build.\n\n## Enabling Admin\n\nSet `auth.admin` to `true` in your account config:\n\n```typescript title=\"quickback/quickback.config.ts\"\naccount: {\n auth: {\n admin: true,\n },\n},\n```\n\nThis does two things:\n1. Sets `enableAdmin: true` on the SPA's runtime config, which unlocks the `/admin` routes (they guard themselves and redirect away when the flag is off)\n2. Ensures the Better Auth `admin` plugin is enabled on the backend\n\nWhen `auth.admin` is `false` (the default), the admin surface does not exist for your project: `/admin` redirects away for every user — including operators — and the nav entry is hidden. The compiler always emits the flag explicitly, so an unset value is a hard `false`.\n\n## What It Can Do\n\n- **View all users** — Paginated list with search\n- **Create users** — Manually create accounts with email/password\n- **Ban/unban users** — Suspend or reactivate user accounts\n- **Reset passwords** — Generate password reset for any user\n- **View sessions** — See active sessions for any user\n\n## Access Control\n\nThe admin panel is restricted to users with `role: \"admin\"` on their Better Auth user record. Non-admin users are redirected away from `/admin`.\n\nTo grant admin access to a user, use the Better Auth admin plugin:\n\n```bash\ncurl -X POST https://api.example.com/auth/v1/admin/set-role \\\n -H \"Authorization: Bearer $TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"userId\": \"user_123\", \"role\": \"admin\" }'\n```\n\n## Custom Admin Domain\n\nGive the admin panel its own subdomain with `adminDomain`:\n\n```typescript title=\"quickback/quickback.config.ts\"\naccount: {\n domain: \"auth.example.com\",\n adminDomain: \"admin.example.com\",\n auth: { password: true, admin: true },\n},\ntrustedOrigins: [\n \"https://auth.example.com\",\n \"https://admin.example.com\",\n],\n```\n\nThe admin domain serves the same Account SPA at root (`/`). The SPA's client-side router handles showing the admin page at `admin.example.com/admin`. Authentication cookies are shared across subdomains automatically via [cross-subdomain cookie configuration](/configure/domains#cross-subdomain-authentication).\n\n## CMS Access Control\n\nWhen both CMS and Account UI are enabled, the admin panel's profile page shows a \"Go to CMS\" button. You can restrict this to admin users only:\n\n```typescript\ncms: { domain: \"cms.example.com\", access: \"admin\" },\n```\n\nWith `access: \"admin\"`, callers outside the platform control-plane roles can't access the CMS at any layer: the link is hidden in Account UI, the SPA shell returns `403` before serving `index.html`, `/api/v1/schema` returns `403`, and the `custom_view` CRUD is locked to `userRole: [\"appmanager\"]` (plus `sysadmin` when enabled). See [CMS Connecting](/ui/admin/connecting#restrict-cms-access-to-admin-users-only) for the full enforcement model.\n\n## Related\n\n- [Configuration](/configure) — `auth.admin` and `adminDomain` options\n- [Multi-Domain Architecture](/configure/domains) — Custom domains and hostname routing\n- [Access Control](/define/access) — Role-based permissions in your API"
495
495
  },
496
496
  "ui/account/features/api-keys": {
497
497
  "title": "API Key Management",
@@ -515,7 +515,7 @@ export const DOCS = {
515
515
  },
516
516
  "ui/account/features/passkeys": {
517
517
  "title": "Passkeys",
518
- "content": "When `VITE_ENABLE_PASSKEY=true` (default: `false`), Account UI provides passkey registration and management. When it is off, the compiler strips the passkey routes from the bundle before the Vite build.\n\n## Passkey Registration\n\n- Setup wizard guides users through passkey creation\n- Supports fingerprint, Face ID, and hardware security keys\n- Multiple passkeys can be registered per account\n\n## Passkey Login\n\n- \"Sign in with passkey\" button on login page\n- Browser's native WebAuthn dialog\n- No password required\n\n## Managing Passkeys\n\n- View registered passkeys\n- Remove individual passkeys\n- Register additional passkeys\n\n## Requirements\n\n- HTTPS (WebAuthn requires secure context)\n- Modern browser with WebAuthn support\n\n## Related\n\n- [Auth Plugins](/platform/auth/plugins) — Plugin configuration\n- [Environment Variables](/ui/account/environment-variables)"
518
+ "content": "When the passkey feature is enabled (`enablePasskey` on the runtime config, default: `false`), Account UI provides passkey registration and management. When it is off, the passkey routes guard themselves at runtime — direct navigation redirects away and the management pages never render.\n\n## Passkey Registration\n\n- Setup wizard guides users through passkey creation\n- Supports fingerprint, Face ID, and hardware security keys\n- Multiple passkeys can be registered per account\n\n## Passkey Login\n\n- \"Sign in with passkey\" button on login page\n- Browser's native WebAuthn dialog\n- No password required\n\n## Managing Passkeys\n\n- View registered passkeys\n- Remove individual passkeys\n- Register additional passkeys\n\n## Requirements\n\n- HTTPS (WebAuthn requires secure context)\n- Modern browser with WebAuthn support\n\n## Related\n\n- [Auth Plugins](/platform/auth/plugins) — Plugin configuration\n- [Environment Variables](/ui/account/environment-variables)"
519
519
  },
520
520
  "ui/account/features/passwordless": {
521
521
  "title": "Passwordless Authentication",
@@ -531,11 +531,11 @@ export const DOCS = {
531
531
  },
532
532
  "ui/account": {
533
533
  "title": "Account UI",
534
- "content": "# Quickback Account UI\n\nA complete authentication and account management frontend that ships with the Quickback Stack. It handles login, signup, password reset, profile management, device sessions, passkeys, organizations, and admin — so you don't have to build any of it.\n\n## What's Included\n\nAccount UI is a single React SPA that contains three distinct sections:\n\n### Account (every user)\n\nLogin, signup, profile editing, password management, device sessions, email changes, and account deletion. This is what every user interacts with.\n\nServed on its own domain (e.g., `auth.example.com`) or at `/account/` when embedded alongside the CMS.\n\n### Organization Management (multi-tenant)\n\nDashboard with org switching, org creation, member invitations, role management, and org settings. Only available when `auth.organizations` is enabled.\n\n### Admin Panel (admin users only)\n\nUser management dashboard — view all users, search, create accounts, ban/unban, reset passwords, and manage sessions. Only accessible to users with the `admin` role. Can be served on its own domain (e.g., `admin.example.com`) via the `adminDomain` config.\n\n## How to Enable\n\nAdd `account` to your `quickback.config.ts` and compile. The compiler builds the SPA from source with your project-specific settings baked in and bundles it into your Worker.\n\n```typescript title=\"quickback/quickback.config.ts\"\nexport default {\n name: \"my-app\",\n template: \"hono\",\n cms: { domain: \"cms.example.com\" },\n account: {\n domain: \"auth.example.com\",\n name: \"My App\",\n auth: {\n password: true,\n passkey: true,\n organizations: true,\n admin: true,\n },\n },\n // ...providers\n};\n```\n\n```bash\nquickback compile\nnpx wrangler deploy\n```\n\nThat's it. The compiler:\n1. Reads your auth feature flags and branding from the config\n2. Generates a `.env` file with the correct `VITE_*` variables\n3. Builds the SPA from source with Vite (inside Docker)\n4. Excludes routes for disabled features (compile-time tree shaking)\n5. Bundles the built assets into your Worker alongside the API\n\nNo manual `.env` configuration needed. No separate deployment.\n\nSee [Configuration](/configure) for all `account` options and [Multi-Domain Architecture](/configure/domains) for custom domain setup.\n\n### Skip SPA Rebuild\n\nAfter the first compile, skip rebuilding the Account SPA on subsequent compiles:\n\n```typescript\naccount: { build: false, /* ...other options */ }\n```\n\nUseful when iterating on API features — saves significant compile time. Set back to `true` (or omit) when you need to update the Account UI.\n\n### Custom Output Directory\n\n```typescript\naccount: { outputDir: \"my-custom-path/account\" }\n```\n\nChanges where compiled Account assets are placed, instead of the default `src/apps/account/`.\n\n## Compile-Time Feature Gating\n\nAuth feature flags control which pages are included in the bundle:\n\n| Flag | Pages Included |\n|------|---------------|\n| `auth.password` | Password login, inline password change on profile |\n| `auth.emailOTP` | Email OTP login flow, email-based password reset |\n| `auth.passkey` | Passkey setup and management |\n| `auth.organizations` | Dashboard, org creation, member management, invitations |\n| `auth.admin` | Admin panel (user management) |\n\nWhen a flag is `false`, the corresponding route files are **removed before the Vite build** — they never appear in the JavaScript bundle. This keeps production bundles minimal.\n\n## Features\n\n- **Authentication** — Email/password, passkeys (WebAuthn), email OTP, magic links, email verification, password reset\n- **Account Management** — Profile editing, avatar upload, password changes, device/session management, account deletion\n- **Organizations** — Multi-tenant org management with owner/admin/member roles, invitations, and org settings\n- **Admin Panel** — User management dashboard with search, create, ban/unban, password reset, and session viewing\n- **API Keys** — Generate and manage API keys for programmatic access\n- **CLI Authorization** — Device authorization flow for `quickback login`\n\n## Next Steps\n\n- **[With Quickback](/ui/account/with-quickback)** — Configuration reference for the `account` block\n- **[Feature Flags](/ui/account/features)** — Enable and disable features\n- **[Environment Variables](/ui/account/environment-variables)** — Configuration reference\n- **[Customization](/ui/account/customization)** — Branding, labels, and theming\n- **[Multi-Domain Architecture](/configure/domains)** — Custom domains and hostname routing"
534
+ "content": "# Quickback Account UI\n\nA complete authentication and account management frontend that ships with the Quickback Stack. It handles login, signup, password reset, profile management, device sessions, passkeys, organizations, and admin — so you don't have to build any of it.\n\n## What's Included\n\nAccount UI is a single React SPA that contains three distinct sections:\n\n### Account (every user)\n\nLogin, signup, profile editing, password management, device sessions, email changes, and account deletion. This is what every user interacts with.\n\nServed on its own domain (e.g., `auth.example.com`) or at `/account/` when embedded alongside the CMS.\n\n### Organization Management (multi-tenant)\n\nDashboard with org switching, org creation, member invitations, role management, and org settings. Only available when `auth.organizations` is enabled.\n\n### Admin Panel (admin users only)\n\nUser management dashboard — view all users, search, create accounts, ban/unban, reset passwords, and manage sessions. Only accessible to users with the `admin` role. Can be served on its own domain (e.g., `admin.example.com`) via the `adminDomain` config.\n\n## How to Enable\n\nAdd `account` to your `quickback.config.ts` and compile. The compiler builds the SPA from source with your project-specific settings baked in and bundles it into your Worker.\n\n```typescript title=\"quickback/quickback.config.ts\"\nexport default {\n name: \"my-app\",\n template: \"hono\",\n cms: { domain: \"cms.example.com\" },\n account: {\n domain: \"auth.example.com\",\n name: \"My App\",\n auth: {\n password: true,\n passkey: true,\n organizations: true,\n admin: true,\n },\n },\n // ...providers\n};\n```\n\n```bash\nquickback compile\nnpx wrangler deploy\n```\n\nThat's it. The compiler:\n1. Reads your auth feature flags and branding from the config\n2. Generates a `.env` file with the correct `VITE_*` variables\n3. Builds the SPA from source with Vite (inside Docker)\n4. Excludes routes for disabled features (compile-time tree shaking)\n5. Bundles the built assets into your Worker alongside the API\n\nNo manual `.env` configuration needed. No separate deployment.\n\nSee [Configuration](/configure) for all `account` options and [Multi-Domain Architecture](/configure/domains) for custom domain setup.\n\n### Skip SPA Rebuild\n\nAfter the first compile, skip rebuilding the Account SPA on subsequent compiles:\n\n```typescript\naccount: { build: false, /* ...other options */ }\n```\n\nUseful when iterating on API features — saves significant compile time. Set back to `true` (or omit) when you need to update the Account UI.\n\n### Custom Output Directory\n\n```typescript\naccount: { outputDir: \"my-custom-path/account\" }\n```\n\nChanges where compiled Account assets are placed, instead of the default `src/apps/account/`.\n\n## Compile-Time Feature Gating\n\nAuth feature flags control which pages are included in the bundle:\n\n| Flag | Pages Included |\n|------|---------------|\n| `auth.password` | Password login, inline password change on profile |\n| `auth.emailOTP` | Email OTP login flow, email-based password reset |\n| `auth.passkey` | Passkey setup and management |\n| `auth.organizations` | Dashboard, org creation, member management, invitations |\n| `auth.admin` | Admin panel (user management) |\n\nWhen a flag is `false`, the corresponding routes **guard themselves at runtime** — each feature route checks its flag from the worker-injected `window.__QUICKBACK_RUNTIME` config in `beforeLoad` and redirects away, and navigation entries for it are hidden. The Account SPA ships as one generic prebuilt bundle; flags decide which surfaces exist for your project.\n\n## Features\n\n- **Authentication** — Email/password, passkeys (WebAuthn), email OTP, magic links, email verification, password reset\n- **Account Management** — Profile editing, avatar upload, password changes, device/session management, account deletion\n- **Organizations** — Multi-tenant org management with owner/admin/member roles, invitations, and org settings\n- **Admin Panel** — User management dashboard with search, create, ban/unban, password reset, and session viewing\n- **API Keys** — Generate and manage API keys for programmatic access\n- **CLI Authorization** — Device authorization flow for `quickback login`\n\n## Next Steps\n\n- **[With Quickback](/ui/account/with-quickback)** — Configuration reference for the `account` block\n- **[Feature Flags](/ui/account/features)** — Enable and disable features\n- **[Environment Variables](/ui/account/environment-variables)** — Configuration reference\n- **[Customization](/ui/account/customization)** — Branding, labels, and theming\n- **[Multi-Domain Architecture](/configure/domains)** — Custom domains and hostname routing"
535
535
  },
536
536
  "ui/account/with-quickback": {
537
537
  "title": "With Quickback",
538
- "content": "Account UI is part of the Quickback Stack. The compiler builds it from source and bundles it into your Worker — there is no separate npm package or standalone deploy path.\n\n## Compiler-Embedded\n\nAdd `account` to your `quickback.config.ts`:\n\n```typescript title=\"quickback/quickback.config.ts\"\nexport default {\n name: \"my-app\",\n template: \"hono\",\n account: {\n domain: \"auth.example.com\",\n name: \"My App\",\n companyName: \"My Company\",\n auth: {\n password: true,\n passkey: true,\n organizations: true,\n admin: true,\n },\n },\n // ...providers\n};\n```\n\nThen compile and deploy:\n\n```bash\nquickback compile\nnpx wrangler deploy\n```\n\n### What Happens During Compilation\n\n1. The compiler reads your `account` config and generates a `.env` file with the correct Vite environment variables (`VITE_QUICKBACK_URL`, `VITE_QUICKBACK_API_URL`, `VITE_ENABLE_PASSWORD`, branding, etc.)\n2. The Account SPA source is copied to a temp directory, with disabled feature routes excluded\n3. Pre-installed dependencies are symlinked (no `npm install` during build)\n4. Vite builds the SPA with your settings baked in\n5. Built assets (content-hashed filenames) are placed in the output directory\n\nThe generated worker **also** injects the same per-project values into every served Account shell as `window.__QUICKBACK_RUNTIME` (URLs, branding, auth feature flags). The SPA prefers that runtime blob over the baked `VITE_*` values, so a generic (no-`.env`) Account build served by the worker behaves identically to the baked build — the bake remains a fallback for serving the assets outside a Quickback worker.\n\nWhen CMS is also enabled, Account assets go to `src/apps/account/` and are served at `/account/`. When Account is the only SPA, assets go to `src/apps/` and are served at root.\n\n### Custom Domains\n\nWith a custom domain, the Account SPA is served at root (`/`) on that domain:\n\n```typescript\naccount: { domain: \"auth.example.com\" }\n```\n\nAdd an admin domain to serve the admin panel on its own subdomain:\n\n```typescript\naccount: {\n domain: \"auth.example.com\",\n adminDomain: \"admin.example.com\",\n}\n```\n\nSee [Multi-Domain Architecture](/configure/domains) for details on hostname routing and cross-subdomain cookies.\n\n### Auth Feature Flags\n\nFeature flags control which pages are included in the build:\n\n```typescript\nauth: {\n password: true, // Email/password login + inline password change\n emailOTP: false, // Email OTP login flow\n passkey: true, // WebAuthn passkey setup + management\n organizations: true, // Dashboard, org management, invitations\n admin: true, // Admin panel (user management)\n}\n```\n\nDisabled features are excluded at compile time — their route files are removed before the Vite build. See [Configuration](/configure) for all options.\n\n## Next Steps\n\n- [Configuration](/configure) — CMS and Account config reference\n- [Multi-Domain Architecture](/configure/domains) — Custom domains and hostname routing\n- [Environment Variables](/ui/account/environment-variables) — Complete variable reference\n- [Feature Flags](/ui/account/features) — Enable and disable features\n- [Auth Hooks](/ui/account/hooks) — Run project code on signup, login, and session events\n- [Customization](/ui/account/customization) — Branding, labels, and theming"
538
+ "content": "Account UI is part of the Quickback Stack. The compiler builds it from source and bundles it into your Worker — there is no separate npm package or standalone deploy path.\n\n## Compiler-Embedded\n\nAdd `account` to your `quickback.config.ts`:\n\n```typescript title=\"quickback/quickback.config.ts\"\nexport default {\n name: \"my-app\",\n template: \"hono\",\n account: {\n domain: \"auth.example.com\",\n name: \"My App\",\n companyName: \"My Company\",\n auth: {\n password: true,\n passkey: true,\n organizations: true,\n admin: true,\n },\n },\n // ...providers\n};\n```\n\nThen compile and deploy:\n\n```bash\nquickback compile\nnpx wrangler deploy\n```\n\n### What Happens During Compilation\n\n1. The compiler stages the **generic prebuilt** Account bundle (built once per compiler release — no per-project Vite build runs) into your output directory, rewriting only the `<title>` with your app name\n2. The generated worker carries your per-project values (URLs, branding, auth feature flags) and injects them into every served Account shell as `window.__QUICKBACK_RUNTIME`\n3. The SPA resolves each value runtime blob → baked `VITE_*` env → default, so the generic bundle behaves exactly as a per-project build would — the `VITE_*` env path remains for serving the assets outside a Quickback worker\n\nAccount assets go to `src/apps/account/` and are served at `/account/` (the root serves your API landing page, or the CMS when enabled).\n\n### Custom Domains\n\nWith a custom domain, the Account SPA is served at root (`/`) on that domain:\n\n```typescript\naccount: { domain: \"auth.example.com\" }\n```\n\nAdd an admin domain to serve the admin panel on its own subdomain:\n\n```typescript\naccount: {\n domain: \"auth.example.com\",\n adminDomain: \"admin.example.com\",\n}\n```\n\nSee [Multi-Domain Architecture](/configure/domains) for details on hostname routing and cross-subdomain cookies.\n\n### Auth Feature Flags\n\nFeature flags control which pages are included in the build:\n\n```typescript\nauth: {\n password: true, // Email/password login + inline password change\n emailOTP: false, // Email OTP login flow\n passkey: true, // WebAuthn passkey setup + management\n organizations: true, // Dashboard, org management, invitations\n admin: true, // Admin panel (user management)\n}\n```\n\nDisabled features guard themselves at runtime — the routes exist in the generic bundle but redirect away and hide from navigation when their flag is off. See [Configuration](/configure) for all options.\n\n## Next Steps\n\n- [Configuration](/configure) — CMS and Account config reference\n- [Multi-Domain Architecture](/configure/domains) — Custom domains and hostname routing\n- [Environment Variables](/ui/account/environment-variables) — Complete variable reference\n- [Feature Flags](/ui/account/features) — Enable and disable features\n- [Auth Hooks](/ui/account/hooks) — Run project code on signup, login, and session events\n- [Customization](/ui/account/customization) — Branding, labels, and theming"
539
539
  },
540
540
  "ui/admin/actions": {
541
541
  "title": "Actions",
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","sourceRoot":"","sources":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B,aAAa;IACb,uCAAuC;IACvC,kCAAkC;IAClC,wBAAwB;IACxB,uCAAuC;IACvC,wCAAwC;IACxC,gBAAgB;IAChB,yBAAyB;IACzB,0BAA0B;IAC1B,kCAAkC;IAClC,2BAA2B;IAC3B,8BAA8B;IAC9B,6BAA6B;IAC7B,mCAAmC;IACnC,qBAAqB;IACrB,mCAAmC;IACnC,8BAA8B;IAC9B,kCAAkC;IAClC,8BAA8B;IAC9B,kBAAkB;IAClB,YAAY;IACZ,2BAA2B;IAC3B,kBAAkB;IAClB,qBAAqB;IACrB,qBAAqB;IACrB,oBAAoB;IACpB,UAAU;IACV,yBAAyB;IACzB,gBAAgB;IAChB,yBAAyB;IACzB,wBAAwB;IACxB,0BAA0B;IAC1B,mBAAmB;IACnB,sBAAsB;CACvB,CAAC"}
1
+ {"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/docs/content.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,0DAA0D;AAO1D,MAAM,CAAC,MAAM,IAAI,GAA6B;IAC5C,aAAa,EAAE;QACb,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,gglBAAgglB;KAC5glB;IACD,sBAAsB,EAAE;QACtB,OAAO,EAAE,kBAAkB;QAC3B,SAAS,EAAE,0naAA0na;KACtoa;IACD,aAAa,EAAE;QACb,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,4xGAA4xG;KACxyG;IACD,UAAU,EAAE;QACV,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,kwsBAAkwsB;KAC9wsB;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,QAAQ;QACjB,SAAS,EAAE,+icAA+ic;KAC3jc;IACD,KAAK,EAAE;QACL,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,8uDAA8uD;KAC1vD;IACD,aAAa,EAAE;QACb,OAAO,EAAE,cAAc;QACvB,SAAS,EAAE,4rTAA4rT;KACxsT;IACD,kBAAkB,EAAE;QAClB,OAAO,EAAE,kBAA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,4BAA4B;IAC5B,UAAU;IACV,eAAe;IACf,0BAA0B;IAC1B,iBAAiB;IACjB,8BAA8B;IAC9B,mCAAmC;IACnC,mBAAmB;IACnB,8BAA8B;IAC9B,uCAAuC;IACvC,qCAAqC;IACrC,kCAAkC;IAClC,oBAAoB;IACpB,kBAAkB;IAClB,qBAAqB;IACrB,qBAAqB;IACrB,2BAA2B;IAC3B,2BAA2B;IAC3B,4BAA4B;IAC5B,iBAAiB;IACjB,kCAAkC;IAClC,2BAA2B;IAC3B,mBAAmB;IACnB,4BAA4B;IAC5B,sBAAsB;IACtB,2BAA2B;IAC3B,cAAc;IACd,iBAAiB;IACjB,oBAAoB;IACpB,OAAO;IACP,gBAAgB;IAChB,kBAAkB;IAClB,qBAAqB;IACrB,2BAA2B;IAC3B,sBAAsB;IACtB,iBAAiB;IACjB,qBAAqB;IACrB,sBAAsB;IACtB,aAAa;IACb,uCAAuC;IACvC,kCAAkC;IAClC,wBAAwB;IACxB,uCAAuC;IACvC,wCAAwC;IACxC,gBAAgB;IAChB,yBAAyB;IACzB,0BAA0B;IAC1B,kCAAkC;IAClC,2BAA2B;IAC3B,8BAA8B;IAC9B,6BAA6B;IAC7B,mCAAmC;IACnC,qBAAqB;IACrB,mCAAmC;IACnC,8BAA8B;IAC9B,kCAAkC;IAClC,8BAA8B;IAC9B,kBAAkB;IAClB,YAAY;IACZ,2BAA2B;IAC3B,kBAAkB;IAClB,qBAAqB;IACrB,qBAAqB;IACrB,oBAAoB;IACpB,UAAU;IACV,yBAAyB;IACzB,gBAAgB;IAChB,yBAAyB;IACzB,wBAAwB;IACxB,0BAA0B;IAC1B,mBAAmB;IACnB,sBAAsB;CACvB,CAAC"}
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import pc from "picocolors";
12
12
  // Version injected at build time by scripts/inject-version.ts
13
- const CLI_VERSION = "0.59.1";
13
+ const CLI_VERSION = "0.59.3";
14
14
  function getPackageVersion() {
15
15
  return CLI_VERSION;
16
16
  }
@@ -1,6 +1,6 @@
1
1
  # OpenAPI Spec
2
2
 
3
- The compiler generates an [OpenAPI 3.1](https://spec.openapis.org/oas/v3.1.0) specification from your feature definitions. By default it's both written to `openapi.json` at your project root and served as a runtime route.
3
+ The compiler generates an [OpenAPI 3.1](https://spec.openapis.org/oas/v3.1.0) specification from your feature definitions. By default it's both written to `src/apps/__quickback/spec/openapi.json` and served as a runtime route. It lives under the assets directory rather than the project root so the multi-MB blob stays out of the Worker bundle — see [Output](/tooling/output#spec-blobs-are-assets-not-bundle).
4
4
 
5
5
  ## Endpoint
6
6
 
@@ -52,7 +52,7 @@ export default defineConfig({
52
52
  name: "my-app",
53
53
  // ...
54
54
  openapi: {
55
- generate: true, // write openapi.json to project root
55
+ generate: true, // write the spec into src/apps/__quickback/spec/
56
56
  publish: true, // serve GET /openapi.json at runtime
57
57
  },
58
58
  });
@@ -60,7 +60,7 @@ export default defineConfig({
60
60
 
61
61
  | Option | Default | Description |
62
62
  |--------|---------|-------------|
63
- | `generate` | `true` | Write `openapi.json` to the project root during compilation |
63
+ | `generate` | `true` | Write `openapi.json` into `src/apps/__quickback/spec/` during compilation |
64
64
  | `publish` | `true` | Serve the spec at `GET /openapi.json` (requires `generate: true`) |
65
65
  | `docs` | `false` | Mount an interactive API browser at `GET /docs` — `"scalar"`, `"swagger"`, or `false` |
66
66
 
@@ -54,7 +54,7 @@ The response header `X-Quickback-Compile-Backend` says which backend answered:
54
54
  | `container-fallback` | Edge is enabled but failed (5xx/unreachable); the container answered instead |
55
55
  | _(absent)_ | Edge routing is not enabled; the container answered, as before |
56
56
 
57
- Complete compiles (`?complete=true`, the default) always run in the container — they need the CLI toolchain (drizzle-kit, SPA builds). The edge Worker rejects them with a 400 pointing at the container endpoint.
57
+ Complete compiles (`?complete=true`, the default) always run in the container — they need the CLI toolchain (drizzle-kit, prebuilt SPA assets). The edge Worker rejects them with a 400 pointing at the container endpoint.
58
58
 
59
59
  ## Environment Variables
60
60
 
@@ -123,10 +123,8 @@ bash dev.sh 3001
123
123
  docker system prune -af
124
124
  ```
125
125
 
126
- ### SPA build warnings
126
+ ### SPA asset warnings
127
127
 
128
- If you see SPA build warnings during compilation, ensure the SPA dependency files are up to date:
129
- - `apps/compiler/deps-spa-cms-package.json`
130
- - `apps/compiler/deps-spa-account-package.json`
128
+ Compiles never build the SPAs — the Docker image carries generic prebuilt CMS/Account bundles (built once, at image build) that a compile copies into `src/apps/`. A "prebuilt … SPA assets not found" warning means the image was built without the `spa-prebuilt` stage completing; rebuild it with `bash dev.sh`.
131
129
 
132
- These must include all dependencies from `packages/cms/package.json` and `packages/account/package.json` respectively.
130
+ SPA dependency manifests (`apps/compiler/deps-spa-cms-package.json`, `deps-spa-account-package.json`) are only consumed by that image-build stage — if one is stale, the **image build** fails loudly, never a user compile.
@@ -74,48 +74,58 @@ Not every per-feature file is always emitted:
74
74
  - `schema.ts`, `{feature}.ts`, and `{feature}.resource.ts` are skipped for tableless features.
75
75
  - A multi-table feature gets one alias file per table (`{feature}.ts`, `{other_table}.ts`) alongside the single `schema.ts`.
76
76
 
77
- ## Spec Blobs Load As Text
77
+ ## Spec Blobs Are Assets, Not Bundle
78
78
 
79
- The generated `wrangler.toml` contains a rule you did not configure:
79
+ `openapi.json`, `asyncapi.json` and `schema-registry.json` are **not** written
80
+ to your project root. They are emitted under the assets directory:
80
81
 
81
- ```toml
82
- [[rules]]
83
- type = "Text"
84
- globs = ["**/openapi.json", "**/asyncapi.json", "**/schema-registry.json"]
82
+ ```
83
+ src/apps/__quickback/spec/
84
+ ├── openapi.json
85
+ ├── asyncapi.json # only when the project has an events surface
86
+ └── schema-registry.json
85
87
  ```
86
88
 
87
- This is deliberate, and it exists to protect cold-start time.
89
+ This exists to protect cold-start time.
88
90
 
89
91
  A Worker has a limited CPU budget for its **startup window** — the module
90
- evaluation that runs before the first request is served. A plain JSON import is
91
- inlined by the bundler as a JavaScript object literal, so the runtime parses it
92
- as source and builds the entire object graph during that window. For a large
93
- API the spec is the single biggest thing in the bundle, and the cost is paid on
94
- every cold start to serve discovery routes that most callers never request.
92
+ evaluation that runs before the first request is served — and everything in the
93
+ bundle counts against it, because the runtime has to parse the whole script. On
94
+ a large API the specs are the single biggest thing in that bundle, and the cost
95
+ is paid on every cold start to serve discovery routes most callers never
96
+ request.
95
97
 
96
- Loading the blobs as text means startup only allocates a string. The generated
97
- `src/index.ts` parses each one lazily, on first request, and memoizes it:
98
+ Serving them from the [ASSETS
99
+ binding](https://developers.cloudflare.com/workers/static-assets/) takes them
100
+ out of the bundle entirely. The generated `src/index.ts` fetches on demand:
98
101
 
99
102
  ```ts
100
- import openapiSpecText from '../openapi.json';
101
-
102
- let __openapiSpec: unknown;
103
- const openapiSpec = () => (__openapiSpec ??= JSON.parse(openapiSpecText as unknown as string));
103
+ const __serveSpec = async (c: any, name: string) => {
104
+ const res = await c.env.ASSETS.fetch(
105
+ new Request(new URL(`/__quickback/spec/${name}`, c.req.url)),
106
+ );
107
+ // ...
108
+ };
104
109
 
105
- app.get('/openapi.json', (c) => c.json(openapiSpec()));
110
+ app.get('/openapi.json', (c) => __serveSpec(c, 'openapi.json'));
106
111
  ```
107
112
 
108
- Behavior is unchanged — the same routes return the same payloads. Only *when*
109
- the parse happens moves.
113
+ The routes and payloads are unchanged — `GET /openapi.json` still returns the
114
+ same spec, under the same [`openapi.publish`](/api/openapi) gate.
110
115
 
111
- The saving scales with spec size. On a ~7 MB spec this cut measured startup CPU
112
- by roughly 40%; below ~0.5 MB it is within measurement noise. Projects that
113
- emit no spec are unaffected, because bundler rules only apply to files that are
114
- actually imported.
116
+ Because of this, projects get an `[assets]` block even with no CMS, Account, or
117
+ custom app configured. `run_worker_first = true` in that block is
118
+ **security-load-bearing**: it routes every request through your Worker first, so
119
+ an asset is served only when the Worker fetches it. That is what keeps
120
+ `__quickback/spec/` reachable exclusively through the gated spec routes — a
121
+ `publish: 'admin'` spec is not a public URL. Do not relax it.
122
+
123
+ > **Reading the spec from disk.** Tooling that expected `openapi.json` at the
124
+ > project root — `npx openapi-typescript openapi.json`, CI steps, lint rules —
125
+ > must point at `src/apps/__quickback/spec/openapi.json`. `api-types.gen.ts` is
126
+ > unaffected: the compiler still generates it at the project root for you, so
127
+ > most projects never need to run `openapi-typescript` by hand.
115
128
 
116
- **Warning:** Do not hand-edit this rule out. Without it the `…Text` imports
117
- resolve to parsed objects and `JSON.parse` receives an object instead of a
118
- string.
119
129
 
120
130
  ## Generated Package Dependency Security
121
131
 
@@ -373,7 +383,7 @@ Migration files follow the Drizzle Kit naming convention:
373
383
 
374
384
  ## CMS and Account UI Assets
375
385
 
376
- When `cms` and/or `account` are enabled, the compiler builds the SPAs from source at compile time and includes the assets in the output.
386
+ When `cms` and/or `account` are enabled, the compiler stages the generic prebuilt SPA bundles (built once per compiler release) into the output; per-project configuration reaches them at serve time via the worker-injected `window.__QUICKBACK_RUNTIME` blob.
377
387
 
378
388
  Each SPA is placed in its own subdirectory under `src/apps/`:
379
389
 
@@ -384,11 +394,16 @@ src/apps/ # Root assets directory
384
394
  │ └── assets/
385
395
  │ ├── app.abc123.js # Content-hashed filenames from Vite
386
396
  │ └── app.xyz456.css
387
- └── account/ # Account SPA (served at /account/ on unified domain)
388
- ├── index.html
389
- └── assets/
390
- ├── app.def789.js
391
- └── app.ghi012.css
397
+ ├── account/ # Account SPA (served at /account/ on unified domain)
398
+ │ ├── index.html
399
+ │ └── assets/
400
+ │ ├── app.def789.js
401
+ │ └── app.ghi012.css
402
+ └── __quickback/ # Compiler-owned — reserved, never yours to write
403
+ └── spec/ # Spec blobs, fetched via the ASSETS binding
404
+ ├── openapi.json
405
+ ├── asyncapi.json
406
+ └── schema-registry.json
392
407
  ```
393
408
 
394
409
  On custom domains, each SPA is served at root (`/`) via hostname-based routing. On the unified domain, CMS is at `/cms/` and Account is at `/account/`.
@@ -278,11 +278,11 @@ VITE_DISABLE_EMAIL_STATUS_CHECK=false
278
278
 
279
279
  ## Deployment
280
280
 
281
- The Account UI has no standalone deploy path — the compiler builds it from source and bundles it into your Worker. In a compiled project you normally set none of the variables on this page by hand:
281
+ The Account UI has no standalone deploy path — the compiler ships a generic prebuilt bundle (built once per compiler release) into your Worker. In a compiled project you normally set none of the variables on this page by hand:
282
282
 
283
283
  1. Declare the values in `quickback.config.ts` under `account` (name, branding, URLs, `auth` feature flags).
284
- 2. `quickback compile` writes the matching `.env` for the in-Docker Vite build **and** bakes the same values into the generated worker.
285
- 3. The worker injects them into every served Account shell as `window.__QUICKBACK_RUNTIME`, which the SPA prefers over the baked `VITE_*` values.
284
+ 2. `quickback compile` stages the prebuilt Account assets and bakes the values into the generated worker.
285
+ 3. The worker injects them into every served Account shell as `window.__QUICKBACK_RUNTIME`, which the SPA prefers over baked `VITE_*` values. This runtime blob is the only per-project configuration channel — no per-project Vite build runs.
286
286
 
287
287
  ```bash
288
288
  quickback compile
@@ -15,10 +15,10 @@ account: {
15
15
  ```
16
16
 
17
17
  This does two things:
18
- 1. Includes admin route files in the Account SPA build (compile-time gating)
18
+ 1. Sets `enableAdmin: true` on the SPA's runtime config, which unlocks the `/admin` routes (they guard themselves and redirect away when the flag is off)
19
19
  2. Ensures the Better Auth `admin` plugin is enabled on the backend
20
20
 
21
- When `auth.admin` is `false` (the default), admin routes are excluded from the SPA bundle entirely — they don't exist in production.
21
+ When `auth.admin` is `false` (the default), the admin surface does not exist for your project: `/admin` redirects away for every user — including operators — and the nav entry is hidden. The compiler always emits the flag explicitly, so an unset value is a hard `false`.
22
22
 
23
23
  ## What It Can Do
24
24
 
@@ -1,6 +1,6 @@
1
1
  # Passkeys
2
2
 
3
- When `VITE_ENABLE_PASSKEY=true` (default: `false`), Account UI provides passkey registration and management. When it is off, the compiler strips the passkey routes from the bundle before the Vite build.
3
+ When the passkey feature is enabled (`enablePasskey` on the runtime config, default: `false`), Account UI provides passkey registration and management. When it is off, the passkey routes guard themselves at runtime — direct navigation redirects away and the management pages never render.
4
4
 
5
5
  ## Passkey Registration
6
6
 
@@ -89,7 +89,7 @@ Auth feature flags control which pages are included in the bundle:
89
89
  | `auth.organizations` | Dashboard, org creation, member management, invitations |
90
90
  | `auth.admin` | Admin panel (user management) |
91
91
 
92
- When a flag is `false`, the corresponding route files are **removed before the Vite build** — they never appear in the JavaScript bundle. This keeps production bundles minimal.
92
+ When a flag is `false`, the corresponding routes **guard themselves at runtime** — each feature route checks its flag from the worker-injected `window.__QUICKBACK_RUNTIME` config in `beforeLoad` and redirects away, and navigation entries for it are hidden. The Account SPA ships as one generic prebuilt bundle; flags decide which surfaces exist for your project.
93
93
 
94
94
  ## Features
95
95
 
@@ -34,15 +34,11 @@ npx wrangler deploy
34
34
 
35
35
  ### What Happens During Compilation
36
36
 
37
- 1. The compiler reads your `account` config and generates a `.env` file with the correct Vite environment variables (`VITE_QUICKBACK_URL`, `VITE_QUICKBACK_API_URL`, `VITE_ENABLE_PASSWORD`, branding, etc.)
38
- 2. The Account SPA source is copied to a temp directory, with disabled feature routes excluded
39
- 3. Pre-installed dependencies are symlinked (no `npm install` during build)
40
- 4. Vite builds the SPA with your settings baked in
41
- 5. Built assets (content-hashed filenames) are placed in the output directory
37
+ 1. The compiler stages the **generic prebuilt** Account bundle (built once per compiler release — no per-project Vite build runs) into your output directory, rewriting only the `<title>` with your app name
38
+ 2. The generated worker carries your per-project values (URLs, branding, auth feature flags) and injects them into every served Account shell as `window.__QUICKBACK_RUNTIME`
39
+ 3. The SPA resolves each value runtime blob → baked `VITE_*` env → default, so the generic bundle behaves exactly as a per-project build would — the `VITE_*` env path remains for serving the assets outside a Quickback worker
42
40
 
43
- The generated worker **also** injects the same per-project values into every served Account shell as `window.__QUICKBACK_RUNTIME` (URLs, branding, auth feature flags). The SPA prefers that runtime blob over the baked `VITE_*` values, so a generic (no-`.env`) Account build served by the worker behaves identically to the baked build — the bake remains a fallback for serving the assets outside a Quickback worker.
44
-
45
- When CMS is also enabled, Account assets go to `src/apps/account/` and are served at `/account/`. When Account is the only SPA, assets go to `src/apps/` and are served at root.
41
+ Account assets go to `src/apps/account/` and are served at `/account/` (the root serves your API landing page, or the CMS when enabled).
46
42
 
47
43
  ### Custom Domains
48
44
 
@@ -77,7 +73,7 @@ auth: {
77
73
  }
78
74
  ```
79
75
 
80
- Disabled features are excluded at compile time — their route files are removed before the Vite build. See [Configuration](/configure) for all options.
76
+ Disabled features guard themselves at runtime — the routes exist in the generic bundle but redirect away and hide from navigation when their flag is off. See [Configuration](/configure) for all options.
81
77
 
82
78
  ## Next Steps
83
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quickback-dev/cli",
3
- "version": "0.59.1",
3
+ "version": "0.59.3",
4
4
  "description": "CLI for Quickback — define your backend in TypeScript, compile to a fully wired Cloudflare Worker (or Bun / Node) with auth, database, migrations, security, CMS, and Account UI.",
5
5
  "author": "Kardoe Incorporated <paul@kardoe.com>",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  # OpenAPI Spec
2
2
 
3
- The compiler generates an [OpenAPI 3.1](https://spec.openapis.org/oas/v3.1.0) specification from your feature definitions. By default it's both written to `openapi.json` at your project root and served as a runtime route.
3
+ The compiler generates an [OpenAPI 3.1](https://spec.openapis.org/oas/v3.1.0) specification from your feature definitions. By default it's both written to `src/apps/__quickback/spec/openapi.json` and served as a runtime route. It lives under the assets directory rather than the project root so the multi-MB blob stays out of the Worker bundle — see [Output](/tooling/output#spec-blobs-are-assets-not-bundle).
4
4
 
5
5
  ## Endpoint
6
6
 
@@ -52,7 +52,7 @@ export default defineConfig({
52
52
  name: "my-app",
53
53
  // ...
54
54
  openapi: {
55
- generate: true, // write openapi.json to project root
55
+ generate: true, // write the spec into src/apps/__quickback/spec/
56
56
  publish: true, // serve GET /openapi.json at runtime
57
57
  },
58
58
  });
@@ -60,7 +60,7 @@ export default defineConfig({
60
60
 
61
61
  | Option | Default | Description |
62
62
  |--------|---------|-------------|
63
- | `generate` | `true` | Write `openapi.json` to the project root during compilation |
63
+ | `generate` | `true` | Write `openapi.json` into `src/apps/__quickback/spec/` during compilation |
64
64
  | `publish` | `true` | Serve the spec at `GET /openapi.json` (requires `generate: true`) |
65
65
  | `docs` | `false` | Mount an interactive API browser at `GET /docs` — `"scalar"`, `"swagger"`, or `false` |
66
66
 
@@ -54,7 +54,7 @@ The response header `X-Quickback-Compile-Backend` says which backend answered:
54
54
  | `container-fallback` | Edge is enabled but failed (5xx/unreachable); the container answered instead |
55
55
  | _(absent)_ | Edge routing is not enabled; the container answered, as before |
56
56
 
57
- Complete compiles (`?complete=true`, the default) always run in the container — they need the CLI toolchain (drizzle-kit, SPA builds). The edge Worker rejects them with a 400 pointing at the container endpoint.
57
+ Complete compiles (`?complete=true`, the default) always run in the container — they need the CLI toolchain (drizzle-kit, prebuilt SPA assets). The edge Worker rejects them with a 400 pointing at the container endpoint.
58
58
 
59
59
  ## Environment Variables
60
60
 
@@ -123,10 +123,8 @@ bash dev.sh 3001
123
123
  docker system prune -af
124
124
  ```
125
125
 
126
- ### SPA build warnings
126
+ ### SPA asset warnings
127
127
 
128
- If you see SPA build warnings during compilation, ensure the SPA dependency files are up to date:
129
- - `apps/compiler/deps-spa-cms-package.json`
130
- - `apps/compiler/deps-spa-account-package.json`
128
+ Compiles never build the SPAs — the Docker image carries generic prebuilt CMS/Account bundles (built once, at image build) that a compile copies into `src/apps/`. A "prebuilt … SPA assets not found" warning means the image was built without the `spa-prebuilt` stage completing; rebuild it with `bash dev.sh`.
131
129
 
132
- These must include all dependencies from `packages/cms/package.json` and `packages/account/package.json` respectively.
130
+ SPA dependency manifests (`apps/compiler/deps-spa-cms-package.json`, `deps-spa-account-package.json`) are only consumed by that image-build stage — if one is stale, the **image build** fails loudly, never a user compile.
@@ -74,48 +74,58 @@ Not every per-feature file is always emitted:
74
74
  - `schema.ts`, `{feature}.ts`, and `{feature}.resource.ts` are skipped for tableless features.
75
75
  - A multi-table feature gets one alias file per table (`{feature}.ts`, `{other_table}.ts`) alongside the single `schema.ts`.
76
76
 
77
- ## Spec Blobs Load As Text
77
+ ## Spec Blobs Are Assets, Not Bundle
78
78
 
79
- The generated `wrangler.toml` contains a rule you did not configure:
79
+ `openapi.json`, `asyncapi.json` and `schema-registry.json` are **not** written
80
+ to your project root. They are emitted under the assets directory:
80
81
 
81
- ```toml
82
- [[rules]]
83
- type = "Text"
84
- globs = ["**/openapi.json", "**/asyncapi.json", "**/schema-registry.json"]
82
+ ```
83
+ src/apps/__quickback/spec/
84
+ ├── openapi.json
85
+ ├── asyncapi.json # only when the project has an events surface
86
+ └── schema-registry.json
85
87
  ```
86
88
 
87
- This is deliberate, and it exists to protect cold-start time.
89
+ This exists to protect cold-start time.
88
90
 
89
91
  A Worker has a limited CPU budget for its **startup window** — the module
90
- evaluation that runs before the first request is served. A plain JSON import is
91
- inlined by the bundler as a JavaScript object literal, so the runtime parses it
92
- as source and builds the entire object graph during that window. For a large
93
- API the spec is the single biggest thing in the bundle, and the cost is paid on
94
- every cold start to serve discovery routes that most callers never request.
92
+ evaluation that runs before the first request is served — and everything in the
93
+ bundle counts against it, because the runtime has to parse the whole script. On
94
+ a large API the specs are the single biggest thing in that bundle, and the cost
95
+ is paid on every cold start to serve discovery routes most callers never
96
+ request.
95
97
 
96
- Loading the blobs as text means startup only allocates a string. The generated
97
- `src/index.ts` parses each one lazily, on first request, and memoizes it:
98
+ Serving them from the [ASSETS
99
+ binding](https://developers.cloudflare.com/workers/static-assets/) takes them
100
+ out of the bundle entirely. The generated `src/index.ts` fetches on demand:
98
101
 
99
102
  ```ts
100
- import openapiSpecText from '../openapi.json';
101
-
102
- let __openapiSpec: unknown;
103
- const openapiSpec = () => (__openapiSpec ??= JSON.parse(openapiSpecText as unknown as string));
103
+ const __serveSpec = async (c: any, name: string) => {
104
+ const res = await c.env.ASSETS.fetch(
105
+ new Request(new URL(`/__quickback/spec/${name}`, c.req.url)),
106
+ );
107
+ // ...
108
+ };
104
109
 
105
- app.get('/openapi.json', (c) => c.json(openapiSpec()));
110
+ app.get('/openapi.json', (c) => __serveSpec(c, 'openapi.json'));
106
111
  ```
107
112
 
108
- Behavior is unchanged — the same routes return the same payloads. Only *when*
109
- the parse happens moves.
113
+ The routes and payloads are unchanged — `GET /openapi.json` still returns the
114
+ same spec, under the same [`openapi.publish`](/api/openapi) gate.
110
115
 
111
- The saving scales with spec size. On a ~7 MB spec this cut measured startup CPU
112
- by roughly 40%; below ~0.5 MB it is within measurement noise. Projects that
113
- emit no spec are unaffected, because bundler rules only apply to files that are
114
- actually imported.
116
+ Because of this, projects get an `[assets]` block even with no CMS, Account, or
117
+ custom app configured. `run_worker_first = true` in that block is
118
+ **security-load-bearing**: it routes every request through your Worker first, so
119
+ an asset is served only when the Worker fetches it. That is what keeps
120
+ `__quickback/spec/` reachable exclusively through the gated spec routes — a
121
+ `publish: 'admin'` spec is not a public URL. Do not relax it.
122
+
123
+ > **Reading the spec from disk.** Tooling that expected `openapi.json` at the
124
+ > project root — `npx openapi-typescript openapi.json`, CI steps, lint rules —
125
+ > must point at `src/apps/__quickback/spec/openapi.json`. `api-types.gen.ts` is
126
+ > unaffected: the compiler still generates it at the project root for you, so
127
+ > most projects never need to run `openapi-typescript` by hand.
115
128
 
116
- **Warning:** Do not hand-edit this rule out. Without it the `…Text` imports
117
- resolve to parsed objects and `JSON.parse` receives an object instead of a
118
- string.
119
129
 
120
130
  ## Generated Package Dependency Security
121
131
 
@@ -373,7 +383,7 @@ Migration files follow the Drizzle Kit naming convention:
373
383
 
374
384
  ## CMS and Account UI Assets
375
385
 
376
- When `cms` and/or `account` are enabled, the compiler builds the SPAs from source at compile time and includes the assets in the output.
386
+ When `cms` and/or `account` are enabled, the compiler stages the generic prebuilt SPA bundles (built once per compiler release) into the output; per-project configuration reaches them at serve time via the worker-injected `window.__QUICKBACK_RUNTIME` blob.
377
387
 
378
388
  Each SPA is placed in its own subdirectory under `src/apps/`:
379
389
 
@@ -384,11 +394,16 @@ src/apps/ # Root assets directory
384
394
  │ └── assets/
385
395
  │ ├── app.abc123.js # Content-hashed filenames from Vite
386
396
  │ └── app.xyz456.css
387
- └── account/ # Account SPA (served at /account/ on unified domain)
388
- ├── index.html
389
- └── assets/
390
- ├── app.def789.js
391
- └── app.ghi012.css
397
+ ├── account/ # Account SPA (served at /account/ on unified domain)
398
+ │ ├── index.html
399
+ │ └── assets/
400
+ │ ├── app.def789.js
401
+ │ └── app.ghi012.css
402
+ └── __quickback/ # Compiler-owned — reserved, never yours to write
403
+ └── spec/ # Spec blobs, fetched via the ASSETS binding
404
+ ├── openapi.json
405
+ ├── asyncapi.json
406
+ └── schema-registry.json
392
407
  ```
393
408
 
394
409
  On custom domains, each SPA is served at root (`/`) via hostname-based routing. On the unified domain, CMS is at `/cms/` and Account is at `/account/`.
@@ -278,11 +278,11 @@ VITE_DISABLE_EMAIL_STATUS_CHECK=false
278
278
 
279
279
  ## Deployment
280
280
 
281
- The Account UI has no standalone deploy path — the compiler builds it from source and bundles it into your Worker. In a compiled project you normally set none of the variables on this page by hand:
281
+ The Account UI has no standalone deploy path — the compiler ships a generic prebuilt bundle (built once per compiler release) into your Worker. In a compiled project you normally set none of the variables on this page by hand:
282
282
 
283
283
  1. Declare the values in `quickback.config.ts` under `account` (name, branding, URLs, `auth` feature flags).
284
- 2. `quickback compile` writes the matching `.env` for the in-Docker Vite build **and** bakes the same values into the generated worker.
285
- 3. The worker injects them into every served Account shell as `window.__QUICKBACK_RUNTIME`, which the SPA prefers over the baked `VITE_*` values.
284
+ 2. `quickback compile` stages the prebuilt Account assets and bakes the values into the generated worker.
285
+ 3. The worker injects them into every served Account shell as `window.__QUICKBACK_RUNTIME`, which the SPA prefers over baked `VITE_*` values. This runtime blob is the only per-project configuration channel — no per-project Vite build runs.
286
286
 
287
287
  ```bash
288
288
  quickback compile
@@ -15,10 +15,10 @@ account: {
15
15
  ```
16
16
 
17
17
  This does two things:
18
- 1. Includes admin route files in the Account SPA build (compile-time gating)
18
+ 1. Sets `enableAdmin: true` on the SPA's runtime config, which unlocks the `/admin` routes (they guard themselves and redirect away when the flag is off)
19
19
  2. Ensures the Better Auth `admin` plugin is enabled on the backend
20
20
 
21
- When `auth.admin` is `false` (the default), admin routes are excluded from the SPA bundle entirely — they don't exist in production.
21
+ When `auth.admin` is `false` (the default), the admin surface does not exist for your project: `/admin` redirects away for every user — including operators — and the nav entry is hidden. The compiler always emits the flag explicitly, so an unset value is a hard `false`.
22
22
 
23
23
  ## What It Can Do
24
24
 
@@ -1,6 +1,6 @@
1
1
  # Passkeys
2
2
 
3
- When `VITE_ENABLE_PASSKEY=true` (default: `false`), Account UI provides passkey registration and management. When it is off, the compiler strips the passkey routes from the bundle before the Vite build.
3
+ When the passkey feature is enabled (`enablePasskey` on the runtime config, default: `false`), Account UI provides passkey registration and management. When it is off, the passkey routes guard themselves at runtime — direct navigation redirects away and the management pages never render.
4
4
 
5
5
  ## Passkey Registration
6
6
 
@@ -89,7 +89,7 @@ Auth feature flags control which pages are included in the bundle:
89
89
  | `auth.organizations` | Dashboard, org creation, member management, invitations |
90
90
  | `auth.admin` | Admin panel (user management) |
91
91
 
92
- When a flag is `false`, the corresponding route files are **removed before the Vite build** — they never appear in the JavaScript bundle. This keeps production bundles minimal.
92
+ When a flag is `false`, the corresponding routes **guard themselves at runtime** — each feature route checks its flag from the worker-injected `window.__QUICKBACK_RUNTIME` config in `beforeLoad` and redirects away, and navigation entries for it are hidden. The Account SPA ships as one generic prebuilt bundle; flags decide which surfaces exist for your project.
93
93
 
94
94
  ## Features
95
95
 
@@ -34,15 +34,11 @@ npx wrangler deploy
34
34
 
35
35
  ### What Happens During Compilation
36
36
 
37
- 1. The compiler reads your `account` config and generates a `.env` file with the correct Vite environment variables (`VITE_QUICKBACK_URL`, `VITE_QUICKBACK_API_URL`, `VITE_ENABLE_PASSWORD`, branding, etc.)
38
- 2. The Account SPA source is copied to a temp directory, with disabled feature routes excluded
39
- 3. Pre-installed dependencies are symlinked (no `npm install` during build)
40
- 4. Vite builds the SPA with your settings baked in
41
- 5. Built assets (content-hashed filenames) are placed in the output directory
37
+ 1. The compiler stages the **generic prebuilt** Account bundle (built once per compiler release — no per-project Vite build runs) into your output directory, rewriting only the `<title>` with your app name
38
+ 2. The generated worker carries your per-project values (URLs, branding, auth feature flags) and injects them into every served Account shell as `window.__QUICKBACK_RUNTIME`
39
+ 3. The SPA resolves each value runtime blob → baked `VITE_*` env → default, so the generic bundle behaves exactly as a per-project build would — the `VITE_*` env path remains for serving the assets outside a Quickback worker
42
40
 
43
- The generated worker **also** injects the same per-project values into every served Account shell as `window.__QUICKBACK_RUNTIME` (URLs, branding, auth feature flags). The SPA prefers that runtime blob over the baked `VITE_*` values, so a generic (no-`.env`) Account build served by the worker behaves identically to the baked build — the bake remains a fallback for serving the assets outside a Quickback worker.
44
-
45
- When CMS is also enabled, Account assets go to `src/apps/account/` and are served at `/account/`. When Account is the only SPA, assets go to `src/apps/` and are served at root.
41
+ Account assets go to `src/apps/account/` and are served at `/account/` (the root serves your API landing page, or the CMS when enabled).
46
42
 
47
43
  ### Custom Domains
48
44
 
@@ -77,7 +73,7 @@ auth: {
77
73
  }
78
74
  ```
79
75
 
80
- Disabled features are excluded at compile time — their route files are removed before the Vite build. See [Configuration](/configure) for all options.
76
+ Disabled features guard themselves at runtime — the routes exist in the generic bundle but redirect away and hide from navigation when their flag is off. See [Configuration](/configure) for all options.
81
77
 
82
78
  ## Next Steps
83
79