MerchantryTidbits

frontend-tooling / pattern

Next.js SaaS Starter

Capability: Next.js SaaS Starter

Use it when

  • You are starting a SaaS product and do not want to hand-wire auth, Stripe subscriptions, and a protected dashboard from scratch
  • You need a working reference for how Next.js, Drizzle, Postgres, and Stripe Checkout plus Customer Portal fit together, including webhook handling and RBAC

What it solves

Not the fit when

  • production use without hardening (it is intentionally minimal and positioned as a learning resource)
  • projects on a stack other than Next.js/Postgres/Drizzle/Stripe
  • apps that must avoid Stripe
  • choosing a payments provider other than Stripe
  • social or OAuth login out of the box
  • multi-tenant data isolation guarantees

Install

git clone https://github.com/nextjs/saas-starter && cd saas-starter && pnpm install

Invoke

stripe login, then pnpm db:setup to create .env, pnpm db:migrate && pnpm db:seed, then pnpm dev and open http://localhost:3000; forward webhooks with: stripe listen --forward-to localhost:3000/api/stripe/webhook

Alternatives

No reviewed alternatives recorded yet.