AGENTS.md · the contract, verbatim
Do not disable CSRF, rate limits, signature checks, requireEmailVerification, or strict types.
Do not grant billing access from anything but a verified webhook.
Read before every change, by people and agents alike.
TanStack Start renders every page at the edge, server functions replace the API, and D1 holds the data. One Worker, one deploy command.
guardrails your AI agents followso their code fits the repository boundaries
the app your customers log intoit runs the minute you clone it
sign-up, teams, payments, emailworking on day one, not stubbed
your productthe only part left to build
one repo with the boring parts already finishedso you start on what makes your product different
What actually goes wrong.
They break it gradually: reading context nobody maintained, inventing a route through the code, and passing every check on the way to a regression you find two weeks later.
Not an AI sticker on an old template.
You tuned the model, the prompts, the tools, and then dropped the agent into a repo it can't verify. Superslate is the other half: a map to read, boundaries to respect, and checks that prove every change.
AGENTS.md · the contract, verbatim
Do not disable CSRF, rate limits, signature checks, requireEmailVerification, or strict types.
Do not grant billing access from anything but a verified webhook.
Read before every change, by people and agents alike.
docs/architecture.md · rules the code keeps
Six rules, written where every agent reads them first.
bun run check · one command, every gate
Format, typecheck, tests inside workerd, the production build, and unused-code checks, in that order.
The same command runs in CI before every deploy.
tests/ · workerd, real migrations
Tenancy, permissions, and webhook replay are tested inside workerd against the migrations a deploy applies.
Drop an organization_id predicate and the suite fails.
What you're not building.
Auth, teams, billing, and email are already wired into one Worker and tested against a real D1. Your first commit is a feature, not a login form.
personal + team
on by default
Workers bindings
Cron Triggers
Zag.js + CSS Modules
Vitest in workerd
Why this stack.
One app instead of a client, an API, and a database server. Pages, server functions, webhooks, and the cron share one Worker and one database, so there is one thing to deploy and one place to look.
framework
TanStack Start + React 19over a separate API
Pages render on the server and hydrate. Server functions are typed calls, so there is no REST layer to keep in step with the UI.
contracts
TypeScript + Zodover types by convention
Every server function validates its input with the schema the form imports. Change a field and both sides fail at compile time.
runtime
Cloudflare Workersover a server to babysit
One Worker serves pages, server functions, webhooks, and the nightly cron. Nothing to patch, scale, or keep warm.
database
SQLite next to the Worker, queried with typed SQL. Triggers and atomic batches hold the tenancy rules, not application code alone.
toolchain
Bunover a five-tool Node pipeline
Installs, scripts, and the one check command run on Bun. Tests run inside workerd against a real D1 with the real migrations.
One Worker, one command.
bun run deploy builds the app, applies pending D1 migrations, then ships the Worker. The same command runs in the included GitHub Actions workflow.
wrangler.jsonc · one fileWrangler
| piece | runs on | configured in |
|---|---|---|
| pages | Workers, server-rendered | src/routes |
| server functions | Workers, same request | src/functions |
| auth + webhooks | Workers server routes | src/routes/api |
| cron | Cron Triggers | wrangler.jsonc |
| database | D1 | db/migrations |
| rate limits | Workers bindings | wrangler.jsonc |
The license.
Buy the TanStack Start edition, or every edition at once. Use it on every product you own.
One TanStack Start app on one Cloudflare Worker and one D1 database.
Lifetime access:
$149Standard price $249
Founding updates includedUpdates to the editions you own are included while they remain maintained and distributed.
every edition
React + Hono, TanStack Start, and Expo: every edition, one licence.
Lifetime access:
$249Standard price $399
Founding updates includedUpdates to the editions you own are included while they remain maintained and distributed.
The first 50 licenses are this price, then $329.
Get All-accessEvery licence covers you or the company you buy for, every developer in it, and unlimited products you own, with no runtime DRM. Client delivery and source redistribution are not included. Already own an edition? Its licence email carries a code that takes what you paid off All-access, so you pay only the difference. Read the license.
Common questions.
The React + Hono edition is an SPA with a Bun API and Postgres, built for a dashboard behind a login. This edition is one TanStack Start app on Cloudflare Workers and D1: pages render on the server, so it fits products where the public site and the app are one thing.
D1 runs next to the Worker with no connection pool, no server to run, and nothing to pay for while idle. The trade-off is SQLite semantics and no interactive transactions, so multi-row rules are enforced with triggers and atomic batches instead.
Bun installs dependencies and runs every script and the check command. Production code runs on workerd, which is why one deploy command is enough and why the tests run inside workerd too.
It ships the AGENTS.md contract, the architecture rules, and one check command. The eval harness, golden paths, and local context server are React + Hono edition only for now.
Yes, in every edition. apps/site is a static Astro site that sends no JavaScript, uses the same design tokens as the app, and deploys as its own Cloudflare Worker. It ships sample copy, outline privacy and terms pages, a sitemap, llms.txt, and a markdown copy of every page for agents.
Any of them. The contract is plain artifacts (markdown, JSON, runnable checks) read equally well by Claude Code, Cursor, Codex, or whatever ships next.
Yes. All-access includes React + Hono, TanStack Start, and Expo for $249, less than two editions bought separately, and adds the private GitHub repository. If you already own an edition, its license email carries a code that takes what you paid off All-access.
By Monday, people can sign in and pay. You spend the weekend on the product.
Get lifetime accessRead the docs
Your license key lands the moment checkout completes.