# Next\.js SaaS Starter

MIT\-licensed learning starter combining Next\.js, PostgreSQL, Drizzle, Stripe and shadcn/ui for a subscription application\.

ID: Q400 · Revision: 386

Type: software · License: MIT template; hosting, database and payment services remain separate\.[^license][^readme] · Status: active

Website: https://github.com/nextjs/saas-starter



Next\.js SaaS Starter is an open\-source template that combines authentication, subscription billing and a logged\-in dashboard with Next\.js, PostgreSQL, Drizzle and shadcn/ui\. The repository describes it as intentionally minimal and a learning resource\. It can give a vibecoder a concrete application skeleton to extend, but its example defaults and dependency choices need review before becoming production requirements\.[^readme][^package]

## Capabilities and substitutions

### Subscription app skeleton — supported

Provides sign\-in, a dashboard and Stripe integration as an intentionally minimal template\.[^readme]

Use case: Bootstrapping a code\-owned subscription application · Platforms: Next\.js development environment, Web applications · Region: Version, build and integration requirements apply

### Team data model — supported

Drizzle schema includes users, memberships, invitations, activity records and team\-level Stripe identifiers\.[^schema]

Use case: Bootstrapping a code\-owned subscription application · Platforms: Next\.js development environment, Web applications · Region: Version, build and integration requirements apply

### Complete billing lifecycle coverage — unknown

Inspected webhook route handles selected subscription events; complete application\-specific billing behavior is not established\.[^stripe][^webhook]

Use case: Bootstrapping a code\-owned subscription application · Platforms: Next\.js development environment, Web applications · Region: Version, build and integration requirements apply

### Stable\-only dependency baseline — unsupported

The inspected main\-branch manifest pins a Next\.js canary release rather than a stable\-only framework baseline\.[^package]

Use case: Bootstrapping a code\-owned subscription application · Platforms: Next\.js development environment, Web applications · Region: Version, build and integration requirements apply

### [Substitute for Open SaaS](/opensaas) — limited

Alternative starter for accounts, subscription checkout and dashboards when a Next\.js/Drizzle application is preferred to Wasp/Prisma\. Template source and schemas require adaptation\.[^readme][^schema][^open]

Use case: Bootstrapping a code\-owned subscription application · Platforms: Next\.js development environment, Web applications · Region: Version, build and integration requirements apply

## References

[^readme]: [Next\.js SaaS Starter README](<https://github.com/nextjs/saas-starter>) — Features, setup, production configuration and minimal learning\-resource scope (vendor; retrieved 2026-10-07T22:42:07Z)

[^license]: [Next\.js SaaS Starter license](<https://github.com/nextjs/saas-starter/blob/main/LICENSE>) — MIT terms (vendor; retrieved 2026-10-07T22:42:23Z)

[^package]: [Next\.js SaaS Starter package manifest](<https://github.com/nextjs/saas-starter/blob/main/package.json>) — Next 15\.6\.0\-canary\.59, React 19\.1 and scripts/dependencies (vendor; retrieved 2026-10-07T22:42:23Z)

[^session]: [Starter authentication session implementation](<https://github.com/nextjs/saas-starter/blob/main/lib/auth/session.ts>) — bcrypt password helpers; HS256 signed JWT and secure HttpOnly cookie (vendor; retrieved 2026-10-07T22:42:37Z)

[^actions]: [Starter action wrappers](<https://github.com/nextjs/saas-starter/blob/main/lib/auth/middleware.ts>) — Input\-schema validation, authenticated\-user and team wrappers (vendor; retrieved 2026-10-07T22:42:37Z)

[^schema]: [Starter database schema](<https://github.com/nextjs/saas-starter/blob/main/lib/db/schema.ts>) — Users, teams, membership, invitations, activity and Stripe identifiers (vendor; retrieved 2026-10-07T22:42:37Z)

[^stripe]: [Starter Stripe integration](<https://github.com/nextjs/saas-starter/blob/main/lib/payments/stripe.ts>) — Subscription checkout, trial defaults, customer portal and selected status handling (vendor; retrieved 2026-10-07T22:42:37Z)

[^webhook]: [Starter Stripe webhook route](<https://github.com/nextjs/saas-starter/blob/main/app/api/stripe/webhook/route.ts>) — Signature verification and subscription updated/deleted event cases (vendor; retrieved 2026-10-07T22:42:50Z)

[^open]: [Open SaaS introduction](<https://docs.opensaas.sh/>) — Wasp/React/Node/Prisma starter scope (vendor; retrieved 2026-10-07T22:40:29Z)

Source revision: https://substitutefor.net/entities/Q400?revision=386
