Introducing TANSHIP Template

TanStack Start SaaS BoilerplateBuilt to Ship on Cloudflare

A TanStack Start SaaS boilerplate for indie developers and small teams — auth, payments, database, email, and AI workflows already wired in a TanStack Start SaaS template built for Cloudflare Workers. Configure your keys and skip weeks of repetitive integration work.

Avatar 1Avatar 2Avatar 3Avatar 4Avatar 5Avatar 6+99

The systems every SaaS needs Auth, Payments, Database, Email

Together, they can take weeks to wire up before you write a single product feature. And AI usage metering, rate limits, and credits? You build those from scratch too.

A complete TanStack Start SaaS boilerplate

A complete, deployable codebase — not a UI skin.

What is TANSHIP Template?

TANSHIP Template is a TanStack Start SaaS boilerplate and starter kit with five systems already implemented — authentication, payments, database, email, and AI.

Cloudflare-native by design: D1 and R2 bind directly to the Worker, Workers AI runs through the native AI binding, and Turnstile protects forms with widget keys plus server-side verification.

Payment webhooks are signature-verified and idempotent, and the billing and profile views are fully implemented — the demo walks through the core flows the delivered codebase implements.

Built for Indie developers and small teams

Four audiences, one foundation.

Who it is for

  • Indie HackersValidate an idea without spending weeks on plumbing — the core systems are already implemented.
  • Small TeamsStart your MVP on a clean, type-safe codebase with clear modules to extend.
  • China-Based Global BuildersPick the payment provider that fits your market, ship with EN/ZH routing, and run on Cloudflare's global edge.
  • AI-Assisted DevelopersAGENTS.md and CLAUDE.md give AI coding agents project-specific context and conventions.

Six capabilities Ready on day one

Auth, payments, database, email, AI, and theming — already wired in this TanStack Start SaaS boilerplate.

What is inside

  • AuthenticationBetter Auth with email/password, Google OAuth, and session management.
  • PaymentsCreem, Stripe, and PayPal adapters with webhook-verified billing.
  • DatabaseDrizzle ORM on Cloudflare D1 with 18 ready-made tables.
  • EmailResend transactional mail, a double opt-in newsletter, and a protected contact form.
  • AI WorkflowsCore AI workflows run on Workers AI with credit metering.
  • Theming & i18n34 theme presets, a visual customizer, and EN/ZH URL routing.

Instead of wiring them up From scratch every single time

Core AI workflows run on Workers AI and deduct in-app credits.

One payment, perpetual license

Complete source code delivered through a private repository invitation — with email support and future template updates included.

Get TANSHIP Template

Everything inside TANSHIP Template

TanStack Start
React
TypeScript
Tailwind CSS
shadcn/ui
Cloudflare
Drizzle ORM
Better Auth
Stripe
Resend
Lucide Icons
Google
Vite
TanStack Start
React
TypeScript
Tailwind CSS
shadcn/ui
Cloudflare
Drizzle ORM
Better Auth
Stripe
Resend
Lucide Icons
Google
Vite
Differentiation

Beyond the infrastructure

What turns a TanStack Start SaaS starter into a real product — AI workflows that really run, theming and localization that feel finished, and a built-in content system you keep.

Theming & i18n

34 theme presets, a visual customizer, and URL-driven EN/ZH routes.

AI Workflows

Core AI workflows run on Workers AI with credit metering; the tool interfaces are ready to extend.

Content System

A Changelog page and 36 bilingual guides delivered with the source code.

Each differentiator ships inside the delivered codebase — rebrand with the theme customizer, connect the AI interfaces, and keep the content pages.

Theming and i18n that feel finished

34 theme presets, a visual customizer, and URL-driven EN/ZH routing — the polish that separates a template from a product.

theme customizer preview - Light Mode

34 presets and a customizer, not one theme

Thirty-four light and dark presets ship out of the box, and the visual customizer drives colors, five border-radius steps, light/dark/system modes, and sidebar, floating, and inset sidebar variants with collapsible offcanvas and icon modes through CSS variables. Rebrand by changing values in the UI — theme files stay untouched.

Custom themes persist per user and re-apply on reload, so buyers preview the exact experience your customers will get.

i18n preview - Light Mode

EN/ZH from the URL, not the browser

English is unprefixed and Chinese lives under /zh — the URL is the only locale source. No locale cookies, no browser sniffing, no flash of the wrong language.

Every visible string ships in both languages from translation files, including accessibility labels and SEO metadata, so the bilingual experience is complete, not cosmetic. A command palette and dynamic OG images round out the product surface.

AI that actually executes

Eight AI modules — the core workflows run on Workers AI with in-app credit metering, and the tool interfaces follow a pattern you can connect to your own model provider.

AI modules preview - Light Mode

Eight modules, with live workflows

The template includes eight AI modules — summarization, translation, tagline generation, text-to-speech, image description, two image-generation views, and image editing. The core workflows call Cloudflare Workers AI directly and deduct in-app credits, so the live workflows show real execution and real credit deductions, while the remaining tool interfaces are intentionally designed as extensible demos.

A complete credit system handles metering, rate limits, and deductions across plans, with demo quotas configured per plan. Swap in your own quotas when you ship.

For a buyer, that means the connected AI workflow pages demonstrate real behavior on day one — generate a tagline, translate a paragraph, and watch the credit counter move. The metering, rate limits, and per-plan quotas all work before you connect your own model provider.

AI extension preview - Light Mode

Connect your own model provider

The live workflows share one calling pattern — a service boundary, a provider call, and a credit deduction. The remaining tool interfaces follow the same shape as extension points, ready for the model provider you already use.

Each module keeps its logic in one place, so wiring a new provider is a localized change: find the module’s service boundary, replace the provider call with your own, and the page, the metering, and the UI keep working. The interface, the credit deduction, and the result rendering are already in place — copy the same pattern to turn any demo tool into a live one.

The scope stays honest: core workflows run on Workers AI today, and the remaining tool UIs are ready-to-extend interfaces — your provider, your credentials, your call.

A content system, delivered with the code

This TanStack Start SaaS boilerplate ships with a Changelog and 36 bilingual guides — pages your own product will need anyway.

changelog preview - Light Mode

Changelog with visible progress

The template includes a versioned Changelog page so buyers can see how the codebase evolved. The same page becomes part of your product, ready to announce your own releases.

guides preview - Light Mode

36 guides in two languages

The TanStack Start SaaS template ships with 36 bilingual guides covering authentication, payments, database, email, AI, and deployment — the project-specific configuration and deployment steps you need to get running. Guides are part of the delivery, not links to the sales site.

Because they ship inside the codebase, they become the documentation hub of your product, not a dead folder.

Core Systems

Every SaaS starts with these four systems

Auth, payments, database, and email — the plumbing every product needs. Build them from scratch and they cost you weeks; start with this TanStack Start SaaS boilerplate and they are already wired.

Authentication

Better Auth with email/password, Google OAuth, email verification, and session management.

Payments

Creem, Stripe, and PayPal adapters with subscriptions, one-time purchases, and webhook-verified status.

Database

Drizzle ORM on Cloudflare D1 with migrations and a local development workflow.

Email

Resend-powered bilingual transactional emails and opt-in flows.

Each of the four systems ships fully implemented — configure your own keys and providers, not the architecture.

Authentication and security, out of the box

Better Auth is fully wired — the flow every SaaS needs before anything else works, without rolling your own session handling.

authentication flow preview - Light Mode

The full sign-up to session flow

Once your OAuth and email keys are configured, email/password and Google OAuth work from the first deploy. Registration triggers email verification, sign-in creates a managed session through Better Auth’s cookie handling, and every authenticated request validates that session — all pre-configured for TanStack Start.

The flow covers what a real product needs end to end: sign-up, verification, sign-in, session management, and account recovery when users forget their password. Because the auth routes ship inside the delivered codebase, you adjust fields, providers, and redirects in one place instead of building the flow from scratch — and the whole loop runs locally against the same D1 database you deploy to.

security controls preview - Light Mode

Security defaults, done right

Passwords are hashed, failed sign-in attempts are throttled at the database layer, and email verification is enforced for new accounts — hardening most teams postpone until after launch. Password reset uses time-limited, single-use tokens, so a leaked link expires on its own.

Sessions and account changes follow Better Auth’s verified patterns, account changes that touch credentials re-verify the user before they take effect, and protected routes are already marked in the codebase — you can see exactly where authentication gates apply and remove the guardrails only when you know why. Security is a starting point, not a checklist you bolt on later.

Collect payments with one adapter

Three adapters — Creem, Stripe, and PayPal — behind a single provider switch, so you pick the market, not the plumbing.

payment adapters preview - Light Mode

Pick a provider, flip a switch

Set PAYMENT_PROVIDER in your environment and the checkout, webhook, and portal routes bind to that provider. Creem suits fast digital-goods checkout, Stripe brings subscriptions plus Alipay for one-time payments, and PayPal covers subscription billing in its own ecosystem.

Every adapter owns its external calls — checkout sessions, customer portals — while shared orchestration keeps order handling and access rules identical across providers. Adding another provider later is adapter work, not flow rework: the checkout page, dashboard billing views, and webhook handlers are already provider-agnostic.

Test keys and sandbox modes let you exercise the full checkout lifecycle before you activate live credentials, so integration testing does not require real payments.

subscription billing preview - Light Mode

Verified billing, never simulated

Payment truth comes from signature-verified, idempotent webhooks. Subscriptions move through active, trialing, past-due, and paused states in sync with the provider — the UI never grants access by itself, and a replayed webhook cannot grant it twice.

PayPal has no customer portal, so a built-in billing page manages subscriptions — turning off automatic renewal and handling recovery — behind an explicit confirmation. Users self-manage; you do not hand-roll invoice chasing.

The same verified state drives the dashboard’s billing views, so what customers see always matches what the provider reports — and your access rules stay consistent across every provider.

A type-safe data layer on Cloudflare D1

Drizzle ORM over D1 with migrations, a local workflow, and 18 tables that cover the systems above — no schema anxiety on day one.

Drizzle D1 schema preview - Light Mode

Drizzle, D1, and migrations that run

The schema ships with 18 ready-made tables: users, sessions, subscriptions, orders, newsletter subscriptions, contact messages, and more. Typed queries catch mistakes at compile time, not in production.

Migrations generate and apply through the same D1 binding locally (Miniflare) and remotely — you are never guessing whether the production database matches your code.

R2 storage preview - Light Mode

R2 storage for user uploads

User-uploaded assets live in Cloudflare R2 as native Worker bindings — no API keys in your app. The included avatar upload and asset-serving routes show the full pattern, from upload to read.

Local development simulates R2 with disk storage, so the storage path works before you ever touch the dashboard.

Email flows that respect your users

Bilingual transactional mail, a consent-aware double opt-in newsletter, and a spam-hardened contact form — the email stack nobody enjoys building.

email templates preview - Light Mode

Resend, wired for both languages

Authentication and notification emails ship as bilingual Resend templates — welcome, verification, password reset, and receipts read naturally in English and Chinese.

Swapping in your own Resend keys and sender is a configuration change, not a refactor.

newsletter and contact form preview - Light Mode

Double opt-in newsletter, spam-hardened contact form

The newsletter uses double opt-in with D1 as the source of truth: single-use confirmation tokens expire in 24 hours and are stored as hashes, and unsubscribe has its own independent token flow.

The contact form adds Cloudflare Turnstile verification and rate limiting on both IP and email — real protection, not placeholder validation.

What You Get

Everything you receive with your purchase

Everything covered above is exactly what this TanStack Start SaaS boilerplate delivers — the delivery, the license, and what is intentionally left out.

Source & delivery

After payment, link a GitHub account and receive a read-only invitation to the private repository of this TanStack Start SaaS template — source code, migrations, deployment scripts, environment sync, bilingual docs, plus the built-in Changelog and Guides pages and a 12-view dashboard.

Perpetual license

One payment. A perpetual license to the version you purchase — build unlimited products, deploy to unlimited environments, and remove TANSHIP branding.

Client projects welcome

Develop and host products for clients while keeping the source. Clients who need the complete source purchase their own license.

Updates & support

Covered by the applicable sales terms. Cloudflare, Resend, and payment-provider fees are not included.

Focused by design: no multi-tenancy, RBAC, or admin panel — just the core systems indie developers and small teams need to ship.

TANSHIP Template at a glance

Weeks of setup, already done

Auth, payments, database, email, and AI usage metering are built into this TanStack Start SaaS boilerplate, backed by 36 bilingual guides and 750+ automated checks. Skip the repetitive integration work and focus on your product.

Cloudflare-native, no Vercel dependency

Built natively for Cloudflare Workers with direct D1 and R2 bindings, the native Workers AI binding, and Turnstile-protected forms — deploy at the edge without an adapter layer.

0
Payment
0
Theme Presets
0
Bilingual Guides
0+
Automated Checks
Latest Insights

From the blog

Articles about this TanStack Start SaaS template, Cloudflare deployment, and SaaS development.

Best TanStack Start Starter Kits & SaaS Boilerplates in 2026

TanStack Start

Best TanStack Start Starter Kits & SaaS Boilerplates in 2026

Best TanStack Start starter kits and SaaS boilerplates compared: features, pricing, and Cloudflare fit and native bindings — with TANSHIP Template included.

Learn More
How to Build a SaaS MVP with TanStack Start in 7 Days

TanStack Start

How to Build a SaaS MVP with TanStack Start in 7 Days

A 7-day plan to build a SaaS MVP with TanStack Start — typed routing, Better Auth, Drizzle on D1, Stripe payments, and Cloudflare Workers deployment.

Learn More
TanStack Start vs Next.js for SaaS in 2026

TanStack Start

TanStack Start vs Next.js for SaaS in 2026

A practical TanStack Start vs Next.js comparison for SaaS — typed routing, data loading, rendering, Cloudflare deployment paths, and ecosystem trade-offs.

Learn More
One-Time Purchase

One payment, perpetual license

One payment. The complete TanStack Start SaaS template source code — delivered through a private repository invitation, with email support and future template updates included.

Build it yourself
Start from scratch and spend weeks wiring up the basics
$0/month
  • Start from scratch and spend weeks on the basics
  • Build your own auth, OAuth, and password reset
  • Integrate and secure payments yourself
  • Design your schema and set up email yourself
  • Build AI, theming, and i18n from zero
  • Maintain and debug everything long-term
Most Popular
TANSHIP Template
Complete source code with a one-time payment
$199/one-time purchase
  • Start customizing this TanStack Start SaaS template after you receive access
  • Auth out of the box — email, OAuth, password reset
  • Payments pre-integrated — Stripe, PayPal, Creem
  • Drizzle + D1 database, R2 storage, Resend email
  • 8 AI modules, 34 themes, EN/ZH i18n
  • Private repo invitation, email support, future updates

Launch week: 20% off with code 5P8HWKIYEE

Custom development
Hire a team to build it to your spec, at a premium
$5,000+/month
  • Weeks of discovery and back-and-forth first
  • Auth and security work billed per request
  • Payment integrations quoted separately
  • Database and email work billed per milestone
  • AI, theming, and i18n built to spec, at a premium
  • Ongoing maintenance billed per project
Frequently Asked Questions

Everything you need to know

Straight answers about what's included, the license, deployment, and more.

Start Building Your SaaS

Launch your SaaS without weeks of setup

One payment gets you the full source code of this TanStack Start SaaS template, a perpetual license, and the core systems already wired — configure your services and deploy to Cloudflare.

750+ Checks
3 Payment Providers
34 Theme Presets