6 years of refinement since 2020•Now 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
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.
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.
- 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
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.
- Create & switch organizations
- Invite team members via email
- Role-based access control (RBAC)
- Data isolation per organization
- Organization settings & management
- Member and role management
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.
- Subscription checkout
- Webhook event processing
- Recurring billing
- Stripe customer portal
- Plan upgrades & downgrades
- Cancellation handling
- Pricing plans as code
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.
- 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
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.
Before Commit
ESLint & FormatterStrict linting rules
TypeScriptStrict type checking
CommitlintConventional commits
LefthookGit hooks manager
CI Pipeline
Vitest (+ browser mode)Unit & component tests
PlaywrightIntegration, E2E & visual regression
KnipUnused code detection
GitHub ActionsContinuous integration
Production
LoggingProduction debugging made easy
SentryCatch errors in real-time
Uptime MonitoringGet alerted on downtime
DependabotAutomated security updates
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
PostgreSQL
Relational Database
Stripe
Payments & Subscriptions
next-intl
Internationalization
React Email
Email Templates
Commitlint
Conventional Commits
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
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
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.
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