A production-ready SaaS starter kit that handles authentication, billing, multi-tenancy, RBAC, and team collaboration — so you can focus on building your product, not boilerplate.
- Next.js 14 + App Router – Modern, scalable React framework.
- Auth.js – Flexible authentication strategy.
- Drizzle ORM – Type-safe, lightweight, and SQL-first.
- PostgreSQL – Reliable relational database.
- Stripe Integration – Subscription & metered billing.
- Multi-tenancy – Isolated tenant data with slug-based routing.
- RBAC (Role-Based Access Control) – Granular permissions.
- Team Management – Invite members, assign roles.
- Email Automation – Welcome emails, team invites.
- Admin Dashboard – Manage tenants, users, and subscriptions.
- API Routes – For auth, billing, and tenant management.
pnpm installCreate .env:
DATABASE_URL="postgresql://user:pass@host:port/db"
NEXTAUTH_SECRET="your-secret"
STRIPE_SECRET_KEY="your-stripe-secret"
STRIPE_WEBHOOK_SECRET="your-webhook-secret"
EMAIL_SERVER="smtp://..."
EMAIL_FROM="noreply@yourapp.com"pnpm drizzle-kit generate
pnpm drizzle-kit pushpnpm devIf you’re launching a SaaS:
- Clone this repo.
- Customize the marketing pages in
src/app/(marketing). - Modify DB schemas in
src/db/schemato fit your domain. - Implement your business logic inside
src/lib. - Deploy to Vercel, AWS Lambda, or Cloudflare Workers.
- Vercel: Push to GitHub and connect repo.
- AWS Lambda: Use
@vercel/nftfor bundling. - Cloudflare Workers: Use
next-on-pages.
MIT — free to use in personal and commercial projects.