The Next.js SaaS starter kit with auth, payments, and a database already connected
Better Auth, Stripe billing, Prisma and Postgres, transactional email, and file uploads to Cloudflare R2. All of it wired together already. Clone the repo, fill in your keys, and start on the part that's actually your product.
The stack you'd have picked yourself
“I cloned it on a Monday, had a working login and checkout by Tuesday afternoon. The auth and Stripe setup alone would have taken me two weeks to figure out solo.”

Derek Thornton
Indie Maker
You'll sink 35+ hours into plumbing before your product does anything
Every SaaS needs this, and none of it makes your product different from the last one. Next Starter comes with it already written.
What's included
The infrastructure layer, already done
Auth, billing, database, email, file storage. Every piece is wired up and working, down to the webhook handlers and the email templates. Pick a tab to see what ships.
- Email and password sign-in
- Google OAuth, already wired
- Six-digit email verification codes
- Password reset flow
- Disposable email domains blocked on email sign-up
- User and admin roles
- Ban, unban, and impersonate users
- Per-user API keys
- Multi-step onboarding wizard
- React Email templates with live preview
- OTP verification on sign-up
- Password reset and change emails
- Email change and account deletion confirmations
- Contact form notifications
- Account setup emails with a temporary password
- Subscription start and renewal emails
- Payment failure alerts
- Direct browser-to-R2 uploads
- S3-compatible storage
- Avatar resizing with Sharp
- Avatar type and size validation
- Folder create and delete
- Presigned upload URLs, five-minute expiry
- CDN delivery
- Admin file browser with multi-upload
- Stripe wired into Better Auth
- Plus and Pro subscription tiers
- Monthly and annual billing
- Stripe customer portal
- Upgrade, downgrade, cancel
- Undo a pending cancellation before the period ends
- Stripe customer created on sign-up
- Promo codes, tax IDs, and billing address at checkout
- PostgreSQL via Prisma 7
- Schema for users, accounts, sessions, and subscriptions
- Migrations included, applied on build
- Local Postgres 18 via Docker Compose
- Cascade deletes from user to sessions and accounts
- node-postgres driver adapter
- Singleton client survives dev hot-reload
- generateMeta() helper for per-page metadata
- Open Graph and Twitter cards
- Dynamic sitemap with priorities
- Dynamic robots.txt
- JSON-LD (Org, WebApp, FAQ, Breadcrumb)
- Canonical and alternate-language URLs
- PWA manifest with theme colors
- Private-route robots headers
- 30 shadcn/ui components
- Dark mode and responsive layouts
- Ten landing page sections, hero through final CTA
- Pricing, about, contact, and legal pages
- Radix primitives for dialogs, menus, and selects
- Tailwind CSS v4 with CSS-variable theming
- Scroll animations that respect prefers-reduced-motion
- Reusable Field form primitives
- TypeScript 7 throughout
- Biome for lint and format, one tool
- Docker config with multi-stage build
- Husky hooks: lint-staged on commit, build on push
- Security headers (CSP, HSTS, CORP)
- Rate limiting, plus Turnstile on the contact form
- Playwright E2E test suite
- Pino logging with PII redaction
“The webhooks were already handled. Subscription upgrades, downgrades, failed payments, all of it. That was the part I kept dreading and it was just... done.”

Megan Calloway
Founder, StartupKit
One price for the whole codebase. No subscription.
Buy it once, get the private repo, and ship as many projects as you want on it.
Pay once. The license doesn’t expire.
- Every line of source, yours to read and change
- Better Auth: email/password, Google, OTP email verification
- Stripe subscriptions and webhooks
- Dashboard, onboarding wizard, and admin panel with roles
- File uploads to Cloudflare R2 (S3-compatible)
- Transactional email with React Email
- PostgreSQL with Prisma 7
- Playwright end-to-end tests
- Deploy to Vercel or self-host with Docker
- Free updates for the life of the product
Pay through Stripe, then check your inbox for the GitHub invite.
“I actually read through the whole codebase before buying anything. Straightforward structure, no magic, no bloat. It's the kind of code I'd write myself if I had the time.”

Tyler Prescott
Senior Developer
Frequently asked questions
Start your next SaaS on week three, not week zero.
Sign-in, subscriptions, the database layer, email, file uploads. The parts that eat your first two weeks are already built, so you clone the repo, add your product, and ship. One payment licenses you for unlimited projects, with no recurring fees and nothing to lock you in.
$249 $129 (Save $120, 12 spots left)
Or let us build it for you. See our MVP Service →