Next.js SaaS Boilerplate — Open Source
A production-ready SaaS foundation you can fork, modify, and deploy in under an hour. Auth, Stripe billing, Prisma ORM, and Tailwind CSS included.
What's Included
Auth
NextAuth.js with email/password, Google, GitHub OAuth
Billing
Stripe checkout, webhooks, customer portal
Database
Prisma ORM with PostgreSQL schema
UI
Tailwind CSS, responsive components, dark mode
Resend transactional email templates
API Keys
Generate, rotate, and revoke with usage tracking
Quick Start
# Clone the repository
git clone https://github.com/breafio/nextjs-saas-starter.git
# Install dependencies
cd nextjs-saas-starter && npm install
# Set up environment
cp .env.example .env.local
# Run database migrations
npx prisma db push
# Start dev server
npm run dev
Why Fork Instead of Buying?
- Zero cost — forever. MIT licensed.
- Full code ownership. No vendor lock-in.
- Community-driven improvements and bug fixes.
- Learn from a production codebase — not just use it.
Need More Than a Starter?
When you outgrow the open-source version, BreafIO Pro has team management, usage-based billing, and 100+ premium components.
View Pro Plans