TanStack Start SaaS boilerplate

Everything a SaaS needs before it has a single customer: auth, billing, workspaces, a typed API and a dashboard shell, assembled on TanStack Start and ready to build on.

Buy now, $200Read the docs

Used by 1000+ developers

New

Next.js 16.4 and React 19.3

Used by indie founders and established startups

Polypane

What tech stack does it use?

These are the defaults. Every one of them is swappable.

LayerChoiceWhy
DatabasePostgreSQL + Drizzle ORMTyped schema, migrations and seeding. Run it locally, on Supabase, or on Neon.
AuthenticationBetter AuthEmail and password, social login, magic links, 2FA, passkeys, SSO and email verification.
BillingStripeSubscriptions, tiered, metered and usage-based pricing, entitlements and grandfathering.
APItRPCEnd-to-end type safety, React Query integration, permissions and roles.
UIChakra UI + Saas UIA themeable token system with pre-built components and Storybook stories.
EmailReact Email + ResendTransactional templates you can edit, or bring your own SMTP provider.
TestingPlaywright + VitestEnd-to-end and unit tests, running in GitHub Actions.

What's included?

The parts every SaaS needs before its first customer, built into the TanStack Start kit.

Multi-tenant workspaces

Users create workspaces, invite teammates and manage roles. Scope filters run in the data layer, so every query is tenant-scoped by default. You do not have to remember it in each new route.

Billing that matches your pricing

Subscriptions, tiered plans, metered and usage-based pricing, entitlements. Your pricing config syncs to Stripe, so you maintain it in one place.

An admin and dashboard shell

Navigation, data tables, filters, forms and empty states. The parts that take a week to build properly and drift out of sync when you do not.

Types strict enough for agents

Full type coverage and one set of patterns give an agent something to conform to. The tests catch it when it does not.

Why not just generate it?

An agent will scaffold sign-in this afternoon. The question is what your tenth feature looks like, and whether you would notice it getting something wrong.

AreaGenerated from a promptIn the kit
AuthA working email and password flow.Social login, magic links, 2FA, passkeys, SSO, email verification, session handling. Tenant scoping runs in the data layer.
BillingA Stripe checkout link.Subscriptions, tiered, metered and usage-based pricing, entitlements, grandfathering, webhooks. This is where billing bugs cost you money.
Multi-tenancyA workspaces table and a foreign key.Actor-based access control and scope filters on every query. Tenant isolation holds even when someone forgets.
ConventionsWhatever it picked this session.One set of patterns. Your tenth feature looks like your first.
Knowing it worksCode that looks right.Types and end-to-end tests in CI that fail when it is not.

Why TanStack Start for a SaaS with agents?

Search params are typed state

A dashboard is filters, sorting, pagination and date ranges. Router validates and types search params, so your filter state and your URL are the same object. Rename a filter and the build fails.

Isomorphic functions

createIsomorphicFn takes a .server() and a .client() branch, and each one is stripped from the other bundle. Analytics, logging and config live in shared code. createServerOnlyFn keeps secrets out of the client build entirely, so there is nothing to guard at runtime.

Nested routing that matches how a SaaS is shaped

Workspace, project, settings: that is a tree, not a list of pages. Each level loads its own data and the router knows what depends on what. Opening a settings tab does not refetch the workspace.

Deploy where the deal requires

Universal deployment across providers and runtimes. When an enterprise customer wants it self-hosted, that is a config change.

SSR on the pages that need it

Full-document SSR and streaming for marketing and onboarding. The authenticated app stays client-side, where it belongs.

Vite underneath

The same dev server and plugins you already use. No framework-specific bundler to learn.

Frequently asked questions

Is TanStack Start ready for production?

Yes. It has over 14 million weekly downloads, and every app built on Lovable runs on it. Compared to Next.js you get simpler, explicit APIs, end-to-end type safety and a faster development loop.

Is this a subscription?

No. One-time purchase, lifetime access to the repo and its updates. $200 for an individual licence, $400 for a team of up to 10 developers. Unlimited projects either way.

Can I use it for client work?

Yes. Both licences cover unlimited self-hosted projects, including work you deliver to clients.

Do you offer refunds?

No. It is a digital download, so we do not offer refunds. Read through the docs and try the open source packages first to check it is a good fit.

How do updates work?

Every release includes migration docs, so your agents can apply upstream improvements to your codebase. It is a starting point, not a dependency, so you choose what to take and when.

Start with the boring parts done

One-time purchase with lifetime access. Unlimited self-hosted projects.