A Cloudflare-native SaaS starter. Auth, billing and an admin console — all wired up and production-ready out of the box.
// built on Cloudflare Workers · TanStack Start · Stripe · better-auth · Drizzle · Tailwind
Every route executes on Cloudflare Workers — deployed to the edge with near-zero cold starts.
D1 for your database and KV for sessions and cache — provisioned and bound out of the box.
Apache 2.0 licensed. One command scaffolds the whole stack onto your own Cloudflare account.
Email + social login, email verification, and sessions on D1 — via better-auth.
Stripe subscriptions and a one-time lifetime purchase, with idempotent webhooks.
Roles, ban, impersonation, and a dashboard built on real data.
Cloudflare R2 with validated uploads and a private serving route.
Resend with string templates; degrades to the console locally.
Path-based English/Chinese routing with per-locale SEO.
Sitemap, hreflang, canonical, OpenGraph and robots — per locale.
Turnstile, security headers, CSP, rate limiting and fail-fast env validation.
End-to-end TypeScript, vertical feature slices, real tests and in-app docs give your coding agent the context to extend the app safely. Ships with an AGENTS.md so it knows the conventions from the first prompt.
$ Claude · Codex · your agent
Clone the repo and deploy to Workers in minutes — no infra to manage.