Catalogues and templates
Embedded project catalogues, the must-have and default schema contracts, and the web-react starter stack.
Embedded project catalogues live under factory/catalogue/ (catalogue.Files). project.Embedded(type) loads and validates each <type>.json file against internal/project/catalogue.go.
Buildable (`web-blog`, `web-app`)
- Starter template: Scaffolds from
templates/web-react(React 19 + Hono + D1). - Caged checks: Builds and tests inside
t12-web-blog:2(http://127.0.0.1:8787). - Delivery target:
cloudflare-workers(dry-run promotion).
Planning-only (`desktop`)
- No starter template:
templateis""andcommands.buildis empty. - Context only:
t12 ask --type desktopplans specs;t12 confirmrefuses until buildable. - Shared defaults: Still supplies
10conservative planning defaults.
Catalogue registry
| Type | File | Version | Title | Template | Buildable | cage_image | serve_url | Defaults |
|---|---|---|---|---|---|---|---|---|
web-blog | catalogue/web-blog.json | 3 | Web blog | templates/web-react | Yes | t12-web-blog:2 | http://127.0.0.1:8787 | 18 |
web-app | catalogue/web-app.json | 2 | Web app | templates/web-react | Yes | t12-web-blog:2 | http://127.0.0.1:8787 | 20 |
desktop | catalogue/desktop.json | 2 | Desktop app | "" | No | None | None | 10 |
Must-have and default contracts
Catalogue.problems requires all six IDs in exact order (project.MustHaveIDs), each with id, question, and why_ask. pages and look also require a recommended fallback.
| Order | id | recommended required | Topic |
|---|---|---|---|
| 1 | goal | No | Project purpose |
| 2 | users | No | Readers, writers, or user kinds |
| 3 | pages | Yes | Named pages, screens, or windows |
| 4 | core-journey | No | End-to-end user journey |
| 5 | look | Yes | Visual style, typography, colors, and theme |
| 6 | out-of-scope | No | Explicit exclusions |
templates/web-react/ stack
Both web-blog and web-app scaffold React 19 + Hono + Cloudflare D1 with shared Zod v4 schemas (src/shared/posts.ts), central Worker handleError, async ESLint rules, Vitest, StrykerJS, and Playwright BDD. Unreferenced Optics primitives are pruned so new repos stay lean.
| Layer | Packages and versions | Details |
|---|---|---|
| UI runtime | react ^19.3.1, react-dom ^19.3.1, react-router ^7.18.6 | Client SPA under src/client/. |
| Build and types | vite ^8.3.8, @vitejs/plugin-react ^6.3.0, typescript ^6.0.3 | Strict TypeScript 6 (tsconfig.client.json, tsconfig.worker.json, tsconfig.node.json). |
| Styling & UI | tailwindcss ^4.3.5, @tailwindcss/vite ^4.3.5, @base-ui/react ^1.9.0, cmdk ^1.1.1, sonner ^2.0.8, vaul-base ^1.0.0, @number-flow/react ^0.6.2, motion ^14.14.0, lucide-react ^1.78.0, @tanstack/react-table ^8.21.3, recharts ^2.15.4 | Minimal retained Optics starter primitives (Base UI) and self-hosted @fontsource/* / @fontsource-variable/* fonts. |
| Validation & lint | zod ^4.6.7, eslint ^10.15.0, typescript-eslint ^8.73.0, eslint-plugin-react-hooks ^7.1.1 | Runtime Zod schemas (src/shared/posts.ts) plus no-floating-promises and no-misused-promises in eslint.config.js. |
| Worker & DB | hono ^4.13.21, wrangler ^4.166.0, @cloudflare/workers-types ^5.20261123.1 | /healthz, /api/*, central handleError, ASSETS, Cloudflare D1 (DB, migrations/). |
| Unit & mutation | vitest ^4.1.12, @testing-library/react ^16.3.3, @testing-library/user-event ^14.6.13, jsdom ^31.0.1, @stryker-mutator/core 10.1.1, @stryker-mutator/vitest-runner 10.1.1 | vitest run and Stryker changed-line mutation checks. |
| Browser E2E | @playwright/test 1.65.1, playwright-bdd 9.2.1 | Chromium BDD (http://127.0.0.1:8787, npm run e2e:serve). |
| Deterministic clock | T12_NOW Worker binding | src/worker/lib/clock.ts (2026-01-01T09:00:00Z in e2e:serve). |
Next steps
State home layout
Directory trees and lock files inside the v2 request state home, host paths outside --home, the one-time layout migration, and legacy v1 state layout.
UI HTTP API and SPA routes
Complete t12-ui HTTP, SSE flow graph, factory mode, command approval, and Observer endpoint reference plus React SPA routes.