🚀 SaaS Starter Kit — Launch Your Next SaaS in Minutes (Free & Open Source)
🧱 A modern, production-ready SaaS boilerplate that helps you go from idea → launch in days, not weeks.
Features
- Full‑stack TypeScript with Next.js 15 App Router
- Postgres + Prisma ORM
- Auth (magic links, OAuth) via NextAuth.js
- Stripe subscriptions (monthly + usage-based ready)
- tRPC API layer, type-safe end to end
- RBAC: users, teams, roles
- Tailwind + minimal ShadCN‑style UI
- Resend + React Email templates
- Sentry integration
- Docker + GitHub Actions + Fly.io/Render
Tech Stack
- Frontend: Next.js 15, Tailwind
- Backend: tRPC, Next.js Route Handlers
- Database: Postgres + Prisma
- Auth: NextAuth.js, Prisma Adapter
- Billing: Stripe
- Email: Resend + React Email
- CI/CD: GitHub Actions, Docker
Local Development
- Copy env:
cp .env.example .env - Start Postgres locally or
docker compose up -d db - Install deps:
npm i - Generate Prisma:
npx prisma generate - Push schema:
npx prisma db push(ornpx prisma migrate dev) - Dev server:
npm run dev
You’ll have the app at http://localhost:3000.
Deployment
- Vercel:
vercel --prod(configure env vars) - Docker:
docker compose up --build - Fly.io / Render: config provided (
fly.toml,render.yaml)
Notes
- Configure
DATABASE_URL,NEXTAUTH_SECRET, Stripe keys, and Resend keys in.env. - GitHub Actions workflow builds, typechecks, lints.
License MIT — free for personal and commercial use.