




SaaS Boilerplate
A multi-tenant SaaS you can sign into and take a payment through. NextAuth v5 with the Drizzle adapter and database sessions; Stripe and Polar webhooks that verify signatures and write to one subscriptions table idempotently; organizations with invites, three roles and per-plan seat limits; an admin area; an MDX blog and docs; three React Email templates; and a dashboard whose numbers are queried, not hardcoded. 13 Playwright tests pass on a fresh clone.
Secure checkout via Polar.sh. Lifetime access. Instant download.
- >NextAuth v5 with the Drizzle adapter: GitHub, Google, Discord, magic-link email
- >Stripe and Polar webhooks, signature-verified and idempotent on replay
- >Organizations, invites with expiry, three roles, per-plan seat limits
- >Admin area for platform users and subscriptions, behind a role check
- >MDX blog and docs, rendered on the server
- >Welcome, invite and payment-failed emails with a preview server
- >Dashboard metrics and MRR chart computed from the database
- >Idempotent seed script and 13 passing Playwright tests
Pros
- + One-time payment, own forever
- + Full source code included
- + Works with Next.js 16 + Tailwind v4
Cons
- – Requires basic React knowledge
- – No drag-and-drop builder
- └src/lib/db/schema.ts — 8 tables, incl. the NextAuth adapter tables
- └src/lib/rbac.ts — requireSession / requireOrgRole / requirePlatformAdmin
- └src/app/api/webhooks/stripe/ and /polar/ — verified, writing to the database
- └src/app/dashboard/ — overview, team, billing, settings
- └src/app/admin/ — platform users and subscriptions
- └src/app/blog/, src/app/docs/ and content/ — MDX, 6 pages written
- └src/emails/ — three React Email templates
- └scripts/seed.ts, drizzle/ migration, tests/e2e.spec.ts
- └AGENTS.md, .cursorrules, README.md
Learn more about building with starter kits.
Build a SaaS for $100/mo
Complete breakdown of hosting, database, auth, email, and analytics costs for bootstrapped SaaS.
ShipFast vs CheapStack
Head-to-head comparison of two popular Next.js boilerplates. Features, pricing, community.
Best Next.js boilerplate 2026
ShipFast, MakerKit, and CheapStack compared. Which one should you buy?