Complete project blueprint for launching a SaaS product with Next.js 15, Stripe billing, Auth.js, PostgreSQL, and Tailwind. Production-ready from day one.
Uploaded markdown content, not a verification of tool compatibility or results. Review the raw text, commands, and permissions before using it. Stars require an account.
name: saas-boilerplate
description: Production-ready SaaS starter with billing and auth
Launch your SaaS in days, not months.
| Layer | Technology |
|-------|------------|
| Framework | Next.js 15 App Router |
| Auth | Auth.js (Google, GitHub, Email) |
| Database | PostgreSQL + Prisma ORM |
| Payments | Stripe (subscriptions + one-time) |
| Styling | Tailwind CSS + shadcn/ui |
| Email | Resend + React Email |
| Deploy | Vercel / Docker |
| Analytics | PostHog |
app/
(marketing)/ # Landing, pricing, blog
(dashboard)/ # Protected app pages
api/
webhooks/stripe/ # Stripe webhook handler
auth/ # Auth.js routes
lib/
stripe.ts # Stripe helpers
db.ts # Prisma client
email.ts # Transactional emails
prisma/
schema.prisma # User, Subscription, Invoice models
npx create-next-app -e saas-boilerplate my-saas
cp .env.example .env.local
npx prisma db push
npm run dev
export const plans = [
{ name: "Free", price: 0, features: ["1 project", "100 API calls/day"] },
{ name: "Pro", price: 29, features: ["Unlimited projects", "10K API calls/day", "Priority support"] },
{ name: "Enterprise", price: 99, features: ["Everything in Pro", "SSO", "SLA", "Dedicated support"] },
];