FlareStarter Pro is a revenue-ready, multi-tenant SaaS on Cloudflare — teams, seat billing, metered API credits and AI chat, wired end to end and ready to rebrand.
// 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.
Full source code under a commercial license — unlimited projects, lifetime updates, delivered as a private GitHub repo.
Organizations with email invitations and owner/admin/member roles, enforced end to end.
Per-org Stripe subscriptions — seat quantity syncs as members join and leave, with a daily reconciliation cron.
Hashed keys with per-plan KV rate limiting and daily usage metering.
Org balances on an append-only ledger — idempotent top-ups, overdraft-proof spends.
Streaming Workers AI chat metered by credits, with automatic refunds on upstream failure.
An append-only security audit trail, plus TOTP two-factor with backup codes.
Double-sided referral rewards, Stripe promotion codes and lifecycle drip emails.
Ship a team SaaS, or flip one switch for a single-player product — same codebase.
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
Buy once, clone the private repo, and ship your SaaS this week — no infra to manage.