The TanStack Start starter kit for developers and agents.

Production ready SaaS starter kit with strict types, consistent patterns, and test coverage that keep your agents on track.

Buy nowRead the docs

Used by 1000+ developers

New

Next.js 16.4 and React 19.3

export const contactsRouter = createTRPCRouter({
  byId: workspaceProcedure
    .input(z.object({ workspaceId: z.string(), id: z.string() }))
    .query(({ input }) => getContactById(input)),

  export: workspaceProcedure
    .input(z.object({ workspaceId: z.string() }))
    .mutation(async ({ ctx, input }) => {
      const enabled = await flags.getBooleanValue('export-contacts', false, {
        targetingKey: ctx.session.user.id,
        workspaceId: input.workspaceId,
      })

      if (!enabled) {
        throw new TRPCError({ code: 'FORBIDDEN' })
      }

      return exportContactsToCsv(input.workspaceId)
    }),
})

Used by indie founders and established startups

Polypane

Built on TanStack Start

The fastest full-stack React framework for building dashboard-heavy SaaS products. Type-safe routing, built-in caching, and SSR when you need it.

Auth

Sign in, every way your users expect.

Built on Better Auth, with the login, signup and security screens already designed. Bring your own provider if you prefer.

  • Email & password
  • Social login
  • Magic links
  • 2FA
  • Passkeys
  • Email verification
  • RBAC
  • SSO
Workspaces

Every customer gets a workspace.

Multi-tenancy from the first commit. Users create workspaces, invite their team and manage roles, all scoped per workspace.

  • Multi-tenancy
  • Invite users
  • Manage roles
  • RBAC
  • Block workspaces
Billing

Plans in code. Synced to Stripe.

Define plans, trials and per-seat prices in one config file. One command sets them up in Stripe, and the billing pages are ready.

  • Subscriptions
  • Automatic Stripe setup
  • Tiered pricing
  • Metered pricing
  • Usage-based pricing
  • Entitlements
  • Pricing tables
  • Grandfathering
Feature flags

Ship behind flags. Bring any provider.

Built on the OpenFeature standard. Reflag is wired up out of the box, and any other OpenFeature provider drops in without touching your feature code.

  • OpenFeature
  • Reflag
  • Server & client flags
  • Workspace targeting
  • Gradual rollouts
  • Any OpenFeature provider
Database

A typed schema on PostgreSQL.

Drizzle ORM with migrations and seed data. Every table is scoped to a workspace. Run it locally, on Supabase, or at the edge with Neon.

  • PostgreSQL
  • Migrations & seeding
  • Optimized queries
  • Edge-ready
API

End-to-end types, no codegen.

tRPC routers with workspace-scoped procedures and role checks. Change a field on the server and your editor knows on the client.

  • Type-safe
  • React Query integration
  • Permissions & roles
  • Subscriptions (Live data)
  • SSR & RSC support
UI components

Components that belong together.

A crafted theme for Chakra UI and Panda CSS, with the app shell, forms and settings pages built on the same tokens.

  • Customizable token system
  • Pre-built components
  • Storybooks
  • Accessible
Transactional emails

Emails that look the part.

React Email templates for invites, email confirmation and password resets. Send them with Resend or your own SMTP server.

  • Built-in templates
  • Template editor
  • Custom SMTP support
Testing & linting

Back pressure for your agents.

Playwright, Vitest and GitHub Actions come set up, so you and your agents find out about a regression before it merges.

  • Playwright
  • Vitest
  • GitHub Actions
  • Playwright
  • Vitest
  • GitHub Actions

Architecture matters more than ever.

AI agents can scaffold an entire app in minutes. Without a solid architecture, that code turns into an unmaintainable mess just as fast. Typing speed was never the bottleneck. The foundation is.

I started Saas.js to help developers and designers ship quality apps on solid foundations. Now that agents write more of the code, that matters more than it ever did.

Saas.js is that foundation: a production-ready starter kit with the patterns and guardrails agents need to ship features in one shot. Auth, billing, UI and the rest, built once and built right.

The teams shipping fastest don't generate the most code. They have the strongest foundations. Spend your time on what makes your product unique, not on debugging another prompt.

EW
Eelco WiersmaFounder Saas.js

Start shipping features today.