// cloudflare-native saas starter

Clone it. Ship on Cloudflare by tonight.

A Cloudflare-native SaaS starter. Auth, billing and an admin console — all wired up and production-ready out of the box.

zsh — my-app
$ git clone https://github.com/flarestarter/flarestarter my-app
$ cd my-app && pnpm install
✓ auth · billing · admin · i18n
✓ D1 + KV wired
$ pnpm dev
http://localhost:3004
$

// built on Cloudflare Workers · TanStack Start · Stripe · better-auth · Drizzle · Tailwind

// why edge-native

Runs on Workers

edge

Every route executes on Cloudflare Workers — deployed to the edge with near-zero cold starts.

Data layer included

D1 · KV

D1 for your database and KV for sessions and cache — provisioned and bound out of the box.

Yours to own

1 command

Apache 2.0 licensed. One command scaffolds the whole stack onto your own Cloudflare account.

// batteries included

Authentication

Email + social login, email verification, and sessions on D1 — via better-auth.

Billing

Stripe subscriptions and a one-time lifetime purchase, with idempotent webhooks.

Admin console

Roles, ban, impersonation, and a dashboard built on real data.

Storage

Cloudflare R2 with validated uploads and a private serving route.

Email

Resend with string templates; degrades to the console locally.

i18n

Path-based English/Chinese routing with per-locale SEO.

SEO

Sitemap, hreflang, canonical, OpenGraph and robots — per locale.

Security

Turnstile, security headers, CSP, rate limiting and fail-fast env validation.

// ai-agent friendly

Clone it, then build with your agent.

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

Ready to ship on Cloudflare?

Clone the repo and deploy to Workers in minutes — no infra to manage.

$git clone https://github.com/flarestarter/flarestarterGet started