6 years of refinement since 2020Next.js 16

The Next.js SaaS Starter Kit You'll Enjoy Building With

Start your SaaS with auth, database, subscriptions, and dashboard already wired. A typed Next.js codebase with Better Auth, Stripe, PostgreSQL, transactional email, tests, and CI are ready from day one.

Self-hosted authentication
Lifetime license, no subscription
Full source code, no lock-in
Built for Humans & AI Agents
Next.js
Better Auth
Shadcn UI
TypeScript
Drizzle ORM
Stripe

How It Works

A Direct Path From Clone to Deploy

The essential SaaS infrastructure is already wired together, so you can focus on what makes your product unique.

  1. 01

    Clone

    Get the complete source code and documentation.

  2. 02

    Run

    Your full development stack, running locally.

  3. 03

    Build

    Ship new features on an architecture built to evolve.

  4. 04

    Configure

    Add API keys for the external services your application uses.

  5. 05

    Deploy

    Go live, onboard customers, and start generating revenue.

What's Included

The Building Blocks for Your SaaS

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

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 AuthNext.jsTypeScriptPostgreSQL
  • 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

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.

StripeTypeScript
  • Subscription checkout
  • Webhook event processing
  • Recurring billing
  • Stripe customer portal
  • Plan upgrades & downgrades
  • Cancellation handling
  • Pricing plans as code

Complete UI Foundation

Start with a responsive marketing site, dashboard shell, account settings, theme system, and accessible UI primitives. Apply your branding and build product-specific screens without reworking the foundation.

Shadcn UItailwindreactTypeScript
  • 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)

Reach global customers with typed localization powered by next-intl, including localized routes, messages, and user interfaces.

Transactional Email

Build typed React Email templates and deliver them through your preferred provider or SMTP service.

Real-World Code Example

A complete reference SaaS demonstrates typed forms, validation, API calls, database access, and tests.

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
Routine checks automated
Real-time production alerts

Infrastructure

Deploy Anywhere. Scale as You Grow.

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

Launch on Vercel, Netlify, Cloudflare, AWS Amplify, Railway, or your own infrastructure. Simply push your code and bring your SaaS application online.

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.

Validate every change before deployment

$git push origin main

✓ Running linter...

✓ Running type check...

✓ Running tests...

✓ Building application...

✓ Deployed to production!

VercelNetlifyCloudflareAWSSelf-hosted

Tech Stack

Built with a Modern Stack

Build with familiar tools and confidence at every layer.

Next.js

Full-stack framework

Better Auth

Self-hosted authentication

Shadcn UI

React components

TypeScript

Typed codebase

Drizzle ORM

Type-safe SQL

PostgreSQL

Relational database

oRPC

Type-safe API

Stripe

Payments and billing

React 19UI library
Tailwind CSSUtility CSS
next-intlInternationalization
React EmailEmail templates
ZodValidation
React Hook FormForms
Vitest Streamline Icon: https://streamlinehq.comVitestUnit tests
PlaywrightEnd-to-end tests
StorybookComponent development
ESLintLinting
CommitlintCommit conventions
LefthookGit hooks
KnipCode cleanup
BunPackage manager
T3 EnvTyped environment
GitHub ActionsCI/CD
LogTapeLogging
Agents.mdAI coding context

Pricing

Pay Once. Build Forever.

Lifetime license. Lifetime updates. Unlimited projects. No renewal fees.

Next.js Boilerplate Plus

The complete SaaS starter kit, licensed for life.

$149once
  • Complete source code in a private GitHub repository
  • All 50+ features included
  • Lifetime license with no renewal fee
  • Unlimited projects for one company / entity
  • Lifetime updates
  • Documentation and real-world example code
  • Email support for questions and guidance
Get license
Lifetime licenseUnlimited projectsLifetime updates
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
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
Total10 weeks Day 1
Estimated example: Building this from scratch at $80/hour × 10 weeks × 40 hours/week = $32,000+ in development cost (replace with your own equation).
Next.js Boilerplate Plus is $149.

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 account settings—and it ends up costing more than expected.

400 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 Next.js Boilerplate Plus

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].

Skip the Setup. Build the Product.

Auth, billing, database, and dashboard are already wired. Get lifetime access, unlimited projects, and every future update.

lifetime license · unlimited projects · unlimited updates