6 years of refinement since 2020Now on Next.js 16

The Next.js Multi-tenant SaaS Boilerplate You'll Enjoy Building With

50+ production-ready features—auth, billing, multi-tenancy, permissions, dashboard and more—so you can focus on what makes your product unique.

Battle-tested in production SaaS
One-time purchase, no subscriptions
Full source code, no lock-in
Built for Humans & AI Agents
Next.js
Better Auth
Shadcn UI
TypeScript
Drizzle ORM
Stripe

How It Works

From Clone to Production in Days

Get started immediately. No complex setup required.

01

Clone

Get access to a private GitHub repository. Clone it to your machine.

02

Run

App, database, email—all running locally. No internet required. Code from anywhere.

03

Build

Add features on a foundation that scales. As far as you want, as fast as you need.

04

Configure

Add your API keys. Type safety, linters, tests, and CI ensure nothing breaks.

05

Deploy

Push to production. Your B2B SaaS goes live. Collect your first payment.

What's Included

Everything Your Multi-Tenant SaaS Needs

50+ production features. Built completely. Tested thoroughly. Ready to ship.

Next.js Sign In Better Auth

Self-Hosted Authentication

Own your authentication stack and user data. Better Auth runs entirely on your infrastructure—user data lives in your PostgreSQL, not third-party servers. No external API calls. No per-user fees. No vendor lock-in. Complete control.

Better Auth
Next.js
TypeScript
PostgreSQL
  • Email & password authentication
  • Forgot password recovery
  • Social login (Google, Facebook, etc.)
  • Email verification (OTP)
  • Two-factor authentication (2FA)
  • 2FA backup & recovery codes
  • Email change with confirmation
  • Rate limiting & brute force Protection
Next.js Team Management Dashboard

Multi-Tenancy & Team Management

B2B SaaS needs multi-tenancy from day one. Your customers create organizations, invite their team by email, and control exactly what resources to share. Each organization's data stays completely isolated.

Better Auth
Drizzle ORM
PostgreSQL
React Email
  • Create & switch organizations
  • Invite team members via email
  • Role-based access control (RBAC)
  • Data isolation per organization
  • Organization settings & management
  • Member and role management
Next.js Stripe Subscription

Stripe Billing Integration

Start collecting payments on day one. The entire subscription lifecycle is already built and tested. You write zero webhook code. From checkout to renewal, your SaaS billing infrastructure is ready to go.

Stripe
Better Auth
  • Subscription checkout
  • Webhook event processing
  • Recurring billing
  • Stripe customer portal
  • Plan upgrades & downgrades
  • Cancellation handling
  • Pricing plans as code
Next.js Dashboard Shell

Complete UI Foundation

Marketing landing pages, dashboard shell, and settings are ready to customize. Responsive across mobile, tablet, and desktop. Switch between light and dark themes or customize your own.

Shadcn UI
Tailwind CSS
React
TypeScript
  • Ready-to-edit landing page
  • Dashboard with sidebar navigation
  • Fully responsive design
  • Light/dark mode support
  • Rebrand with custom themes
  • User and organization settings
  • UI components library
  • Toast notifications
  • Onboarding for new users

Internationalization (i18n)

Your next customer could be anywhere in the world. Reach global customers with localized UI.

Transactional Email

Powered by React Email. Send via Resend, SendGrid, Postmark, AWS SES, or any SMTP.

Real-World Code Example

A complete Todo app shows exactly how to build features with the boilerplate.

Developer Experience

The Codebase Built for Maintainability

Clean architecture, local-first development, and tooling that works out of the box.

Next.js App Router + React 19

Build full-stack applications in a single codebase with the latest React features.

TypeScript Everywhere

Write everything in one language from infrastructure to frontend. Less context switching, faster onboarding.

End-to-End Type Safety

Database, APIs, forms, queries, i18n, and components are fully typed.

Clean Architecture

Clear separation of concerns with dedicated layers to organize your code. Easy to navigate and customize.

Postgres + Drizzle ORM

A type-safe ORM that lets you query and migrate your database with confidence.

Drizzle Studio

Zero-config database browser. Explore and edit your data in a web interface.

Local-First Development

No Docker required. Local PostgreSQL & email testing. Works completely offline.

Bun

Lightning-fast package manager for quick dependency installation.

Forms & Validation

Shared validation schemas provide instant client feedback and enforce security on the server.

Type-Safe Env Vars

Fail fast on misconfigurations with typesafe environment variables.

Visual Studio Code

Pre-configured settings, tasks, debugging, and essential extensions.

Fully Customizable

Complete access to all source code. Adapt and extend everything to fit your needs and preferences.

Built for Humans & AI Agents

Generate more accurate code from Claude Code, Codex, Cursor, GitHub Copilot, and more with Agents.md

Documentation

Step-by-step guides for setup, configuration, and best practices.

UI Development

Build and test UI components in isolation with Storybook.

Continuously Evolving

6 years of active development since 2020. Battle-tested on real SaaS apps and updated constantly.

Quality & Automation

Ship With Confidence Every Time

Automated checks catch bugs whether written by developers or generated by AI.

Stage 1

Before Commit

ESLint & FormatterStrict linting rules
TypeScriptStrict type checking
CommitlintConventional commits
LefthookGit hooks manager
Stage 2

CI Pipeline

Vitest (+ browser mode)Unit & component tests
PlaywrightIntegration, E2E & visual regression
KnipUnused code detection
GitHub ActionsContinuous integration
Stage 3

Production

LoggingProduction debugging made easy
SentryCatch errors in real-time
Uptime MonitoringGet alerted on downtime
DependabotAutomated security updates
Every push is validated
Zero manual checks required
Real-time production alerts

Infrastructure

Deploy Anywhere. Scale Automatically.

Platform-agnostic architecture. Serverless infrastructure. No vendor lock-in.

Platform Agnostic

No vendor lock-in. Swap your database, email provider, or payment processor without rewriting application code. Your architecture stays portable.

Deploy Anywhere

Deploy to Vercel, Netlify, Cloudflare, AWS Amplify, Railway, or self-host anywhere. Push your code and your SaaS is live.

Unlimited Environments

Create as many environments as you need—local, staging, production, or PR previews. Validate changes in production-like conditions before you merge.

Auto-Scaling

Scale effortlessly from zero to millions of requests. Infrastructure adapts automatically so you can focus on building, not managing servers.

Cost-Efficient

Pay only when requests hit your app. No traffic, no charges. Scale to zero and keep your costs exactly where they should be.

Infrastructure as Code

Define and provision services programmatically with version-controlled configuration.

Deploy with a single command

$git push origin main

✓ Running linter...

✓ Running type check...

✓ Running tests...

✓ Building application...

✓ Deployed to production!

Vercel
Netlify
Cloudflare
AWS
Self-Hosted

Tech Stack

Built with Modern Stack

The latest tools to ship faster and scale confidently.

Next.js

Full-stack Framework

Better Auth

Authentication & Multi-Tenancy

Shadcn UI

React Components

TypeScript

Unified Codebase

Drizzle ORM

Type-Safe SQL

PostgreSQL

Relational Database

oRPC

Type-Safe API

Stripe

Payments & Subscriptions

React 19

UI Library

Tailwind CSS

Utility CSS

next-intl

Internationalization

React Email

Email Templates

Zod

Validation

React Hook Form

Forms

Vitest Streamline Icon: https://streamlinehq.com

Vitest

Unit Tests

Playwright

E2E Tests

Storybook

Component Dev

ESLint

Linting

Commitlint

Conventional Commits

Lefthook

Git Hooks

Knip

Code Cleanup

Bun

Package Manager

T3 Env

Typesafe Env Vars

GH Actions

CI/CD

LogTape

Logging

Agents.md

AI Coding tools

Pricing

Pay Once. Build Forever.

One-time purchase. No subscription. Full source code access.

Local pricing for 150+ countries — pay in your own currency

Starter

For one project / product

$599one-time
  • Private GitHub repository access
  • Complete source code access
  • All 50+ features included
  • License for 1 project
  • 1 year of updates & email support
Get Starter License

Unlimited

Unlimited projects for one company / entity

$1799one-time
  • Private GitHub repository access
  • Complete source code access
  • All 50+ features included
  • License for unlimited projects
  • 1 year of updates & email support
Get Unlimited License
Development Timeline
Cost Analysis
CapabilityBuild From ScratchWith Boilerplate
Project setup & tooling1 week Day 1
Database & typed API (oRPC)1 week Day 1
UI components & Storybook1 week Day 1
Auth (email, social, MFA)2 weeks Day 1
Organizations & RBAC2 weeks Day 1
Stripe billing lifecycle1 week Day 1
Dashboard shell & settings1 week Day 1
Marketing homepage & i18n1 week Day 1
Emails, logging & monitoring1 week Day 1
Testing, CI/CD & docs1 week Day 1
Total12 weeks Day 1
Estimated example: Building this from scratch at $80/hour × 12 weeks × 40 hours/week = $38,400+ in development cost (Replace with your own equation).
The boilerplate is $599.

You've Built This Before.
It Wasn't Fun.

Every SaaS project starts the same way. You spend weeks setting up authentication, wrestling with Stripe webhooks, and building organization settings—and it ends up costing more than expected.

480 hours building code that doesn't differentiate your product.

By the time you've built the foundation, your competitors have already shipped. What if you could ship your first feature this week instead?

With the Boilerplate

Day 1: Build what matters

All that foundation work? Already done. Skip straight to building your product.

FAQ

You have Questions?

Still have questions? Send me an email at [email protected].

Ready to Ship Your SaaS?

Join hundreds of developers who've saved months of development.
Trusted since 2020—6 years of continuous updates.

Build, customize, and launch your product faster than ever