NewCloudflare Workers + AI jobs

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
dashboard.tansaas.app
TanSaaS dashboard preview

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.

12+

Integrated modules

Edge

Cloudflare Workers deploy

100%

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.

AC
Alex ChenFounder, VisualAI

Finally a SaaS starter that treats Cloudflare Workers as first-class, not an afterthought.

JL
Jordan LeeStaff engineer

Auth, admin panel, and credit lots — all there on day one.

SR
Sam RiveraIndie hacker

Provider interfaces made swapping Replicate for fal trivial.

MK
Morgan 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.

Plus
$29/ mo
Monthly credits for solo builders getting started.
Credits2,000 / month
Unit price$14.50 / 1k credits

  • Dashboard + auth
  • Stripe subscription billing
  • AI job webhooks
  • Email support
Pro
Popular
$59/ mo
Best for products with steady usage and a growing user base.
Credits5,000 / month
Unit price$11.80 / 1k credits

  • Everything in Plus
  • Admin credit console
  • Webhook integrations
  • Priority email support
Max
$99/ mo
Maximum capacity for power users and high-volume workloads.
Credits10,000 / month
Unit price$9.90 / 1k credits

  • Everything in Pro
  • Role-based admin access
  • Custom webhook endpoints
  • Priority support

Need one-time credits? View credit packs

100%

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.

Likeur
M. Irung
B. Ng

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.”

Early TanSaaS adopter · AI startup founder

Supabase + Drizzle

Postgres schema, migrations, and typed queries ready for your domain models.

Stripe

Subscriptions, credit top-ups, webhooks, and customer portal hooks.

Replicate

Replicate & fal

Swap AI providers through a shared job ledger, webhooks, and credit gate.

Cloudflare

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.