AI SaaS that ships at first sight
TanSaaS is a production-minded starter for subscriptions, expiring credits, auth, storage, webhooks, and pluggable AI — deploy on Cloudflare Workers and focus on your product.
- Stripe billing
- better-auth roles
- Replicate & fal
Built with the stack teams trust
The full stack for modern AI SaaS
From auth to billing to background jobs — every integration is typed, replaceable, and ready for production.
Ship faster
TanStack Start on Cloudflare Workers with Drizzle, Redis cache, R2 storage, and webhooks wired in.
Auth & roles
better-auth with admin guards, session handling, and role-aware dashboard routes out of the box.
AI-ready
Pluggable Replicate and fal providers with credit-gated jobs and webhook-friendly billing hooks.
Monetize day one
Stripe subscriptions, credit top-ups, expiring credit lots, and webhook handlers you can extend safely.
Edge-native
Deploy globally on Workers with Upstash Redis, presigned R2 uploads, and observability-friendly boundaries.
Fully customizable
Provider interfaces keep vendor logic swappable — swap AI, billing, or storage without rewriting your app.
TanSaaS in numbers
A starter template designed to get you to production — not just a pretty landing page.
Integrated modules
Cloudflare Workers deploy
Source in your repo
Built for makers shipping real products
Teams use TanSaaS to skip boilerplate and focus on the features that differentiate their AI product.
“The credit system and Stripe webhooks were already wired. We added our fal models in an afternoon instead of two weeks of plumbing.”
ACAlex ChenFounder, VisualAI
“Finally a SaaS starter that treats Cloudflare Workers as first-class, not an afterthought.”
JLJordan LeeStaff engineer
“Auth, admin panel, and credit lots — all there on day one.”
SRSam RiveraIndie hacker
“Provider interfaces made swapping Replicate for fal trivial.”
MKMorgan KimML engineer
Simple pricing for AI SaaS
Subscribe monthly for the best value, try a credit pack first, or add Volume+ when you need more.
- Dashboard + auth
- Stripe subscription billing
- AI job webhooks
- Email support
- Everything in Plus
- Admin credit console
- Webhook integrations
- Priority email support
- Everything in Pro
- Role-based admin access
- Custom webhook endpoints
- Priority support
Need one-time credits? View credit packs
Replaceable providers
Auth & admin guards
better-auth sessions with role-aware routes and an admin credit console.
Edge-fast delivery
Deploy on Cloudflare Workers with R2 storage, webhooks, and Redis caching at the edge.
Credit-gated AI jobs
Run Replicate and fal workloads with expiring credit lots and webhook-safe billing.
Built for product teams
Dashboard, pricing, and admin flows included so you can validate monetization early.
Integrate with your favorite stack
Every module is optional and replaceable. Keep what fits, swap what doesn't — without breaking your app shell.
Explore the dashboard“We went from blank repo to auth, billing, and AI jobs in a weekend. The provider boundaries made it easy to plug in our own models.”
Supabase + Drizzle
Postgres schema, migrations, and typed queries ready for your domain models.
Stripe
Subscriptions, credit top-ups, webhooks, and customer portal hooks.
Replicate & fal
Swap AI providers through a shared job ledger, webhooks, and credit gate.
Cloudflare Workers
Edge deployment with R2, Email, and a Wrangler-ready build pipeline.
Frequently asked questions
Answers about billing, credits, deployment, and customizing the TanSaaS template.
Still have questions? Browse the blog or open the dashboard to explore the admin tools.
Start building your AI SaaS today
Clone the template, configure your providers, and ship subscriptions, credits, and AI workflows on Cloudflare Workers.