{"schemaVersion":"1.0","record":{"label":"Next.js SaaS Starter","description":"MIT-licensed learning starter combining Next.js, PostgreSQL, Drizzle, Stripe and shadcn/ui for a subscription application.","aliases":["nextjs/saas-starter"],"kind":"software","website":"https://github.com/nextjs/saas-starter","overview":"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.","license":"MIT template; hosting, database and payment services remain separate.","lifecycle":"active","example":false,"features":[{"name":"Subscription app skeleton","status":"supported","detail":"Provides sign-in, a dashboard and Stripe integration as an intentionally minimal template.","useCase":"Bootstrapping a code-owned subscription application","platforms":["Next.js development environment","Web applications"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/nextjs/saas-starter","locator":"Features, setup, production configuration and minimal learning-resource scope","retrievedAt":"2026-10-07T22:42:07Z","kind":"vendor"}]},{"name":"Team data model","status":"supported","detail":"Drizzle schema includes users, memberships, invitations, activity records and team-level Stripe identifiers.","useCase":"Bootstrapping a code-owned subscription application","platforms":["Next.js development environment","Web applications"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/nextjs/saas-starter/blob/main/lib/db/schema.ts","locator":"Users, teams, membership, invitations, activity and Stripe identifiers","retrievedAt":"2026-10-07T22:42:37Z","kind":"vendor"}]},{"name":"Complete billing lifecycle coverage","status":"unknown","detail":"Inspected webhook route handles selected subscription events; complete application-specific billing behavior is not established.","useCase":"Bootstrapping a code-owned subscription application","platforms":["Next.js development environment","Web applications"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/nextjs/saas-starter/blob/main/app/api/stripe/webhook/route.ts","locator":"Signature verification and subscription updated/deleted event cases","retrievedAt":"2026-10-07T22:42:50Z","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/lib/payments/stripe.ts","locator":"Subscription checkout, trial defaults, customer portal and selected status handling","retrievedAt":"2026-10-07T22:42:37Z","kind":"vendor"}]},{"name":"Stable-only dependency baseline","status":"unsupported","detail":"The inspected main-branch manifest pins a Next.js canary release rather than a stable-only framework baseline.","useCase":"Bootstrapping a code-owned subscription application","platforms":["Next.js development environment","Web applications"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/nextjs/saas-starter/blob/main/package.json","locator":"Next 15.6.0-canary.59, React 19.1 and scripts/dependencies","retrievedAt":"2026-10-07T22:42:23Z","kind":"vendor"}]}],"alternatives":[],"slug":"nextjs-saas-starter","draftAlternatives":[{"targetSlug":"open-saas","status":"limited","detail":"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.","useCase":"Bootstrapping a code-owned subscription application","platforms":["Next.js development environment","Web applications"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/nextjs/saas-starter","locator":"Features, setup, production configuration and minimal learning-resource scope","retrievedAt":"2026-10-07T22:42:07Z","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/lib/db/schema.ts","locator":"Users, teams, membership, invitations, activity and Stripe identifiers","retrievedAt":"2026-10-07T22:42:37Z","kind":"vendor"},{"url":"https://docs.opensaas.sh/","locator":"Wasp/React/Node/Prisma starter scope","retrievedAt":"2026-10-07T22:40:29Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/nextjs/saas-starter","locator":"Features, setup, production configuration and minimal learning-resource scope","retrievedAt":"2026-10-07T22:42:07Z","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/LICENSE","locator":"MIT terms","retrievedAt":"2026-10-07T22:42:23Z","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/package.json","locator":"Next 15.6.0-canary.59, React 19.1 and scripts/dependencies","retrievedAt":"2026-10-07T22:42:23Z","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/lib/auth/session.ts","locator":"bcrypt password helpers; HS256 signed JWT and secure HttpOnly cookie","retrievedAt":"2026-10-07T22:42:37Z","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/lib/auth/middleware.ts","locator":"Input-schema validation, authenticated-user and team wrappers","retrievedAt":"2026-10-07T22:42:37Z","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/lib/db/schema.ts","locator":"Users, teams, membership, invitations, activity and Stripe identifiers","retrievedAt":"2026-10-07T22:42:37Z","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/lib/payments/stripe.ts","locator":"Subscription checkout, trial defaults, customer portal and selected status handling","retrievedAt":"2026-10-07T22:42:37Z","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/app/api/stripe/webhook/route.ts","locator":"Signature verification and subscription updated/deleted event cases","retrievedAt":"2026-10-07T22:42:50Z","kind":"vendor"},{"url":"https://docs.opensaas.sh/","locator":"Wasp/React/Node/Prisma starter scope","retrievedAt":"2026-10-07T22:40:29Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/nextjs/saas-starter","locator":"Features, setup, production configuration and minimal learning-resource scope","retrievedAt":"2026-10-07T22:42:07Z","id":"readme","title":"Next.js SaaS Starter README","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/LICENSE","locator":"MIT terms","retrievedAt":"2026-10-07T22:42:23Z","id":"license","title":"Next.js SaaS Starter license","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/package.json","locator":"Next 15.6.0-canary.59, React 19.1 and scripts/dependencies","retrievedAt":"2026-10-07T22:42:23Z","id":"package","title":"Next.js SaaS Starter package manifest","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/lib/auth/session.ts","locator":"bcrypt password helpers; HS256 signed JWT and secure HttpOnly cookie","retrievedAt":"2026-10-07T22:42:37Z","id":"session","title":"Starter authentication session implementation","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/lib/auth/middleware.ts","locator":"Input-schema validation, authenticated-user and team wrappers","retrievedAt":"2026-10-07T22:42:37Z","id":"actions","title":"Starter action wrappers","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/lib/db/schema.ts","locator":"Users, teams, membership, invitations, activity and Stripe identifiers","retrievedAt":"2026-10-07T22:42:37Z","id":"schema","title":"Starter database schema","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/lib/payments/stripe.ts","locator":"Subscription checkout, trial defaults, customer portal and selected status handling","retrievedAt":"2026-10-07T22:42:37Z","id":"stripe","title":"Starter Stripe integration","kind":"vendor"},{"url":"https://github.com/nextjs/saas-starter/blob/main/app/api/stripe/webhook/route.ts","locator":"Signature verification and subscription updated/deleted event cases","retrievedAt":"2026-10-07T22:42:50Z","id":"webhook","title":"Starter Stripe webhook route","kind":"vendor"},{"url":"https://docs.opensaas.sh/","locator":"Wasp/React/Node/Prisma starter scope","retrievedAt":"2026-10-07T22:40:29Z","id":"open","title":"Open SaaS introduction","kind":"vendor"}],"overviewCitations":["readme","package"],"licenseCitations":["license","readme"],"sections":[{"id":"shape","heading":"An intentionally small application foundation","paragraphs":[{"id":"shape-detail","content":[{"text":"The repository gives developers an example subscription application to clone and modify rather than a hosted app-building service. Its documented setup includes database preparation and a seeded demonstration account and team. Those seed values are development examples, not a production account plan. The README's description as a learning resource is important: available pages and successful local startup do not establish that every operational feature needed by a real service has been built."}],"citations":["readme"]}]},{"id":"data","heading":"Teams, membership and application records","paragraphs":[{"id":"data-detail","content":[{"text":"The inspected Drizzle schema separates users, teams, team membership, invitations and activity logs. Stripe customer and subscription identifiers are attached to teams. That is a concrete starting data model for a team-based subscription product, but it is not a universal tenant model: an application's intended ownership, membership and deletion behavior must be fitted to these records. A different starter's user table cannot be assumed to import unchanged merely because both use PostgreSQL."}],"citations":["schema"]}]},{"id":"auth","heading":"What the authentication example actually does","paragraphs":[{"id":"auth-detail","content":[{"text":"The session implementation uses bcrypt helpers for passwords and signs a JWT with HS256. It stores the result in a Secure, HttpOnly, SameSite=Lax cookie with a one-day expiry. Although a local variable calls it an encrypted session, the inspected operation is JWT signing; the source does not establish payload encryption. Separate action wrappers perform input-schema validation and authenticated-user or team lookup. These are implementation patterns, not a comprehensive security audit or proof of authorization for every future action."}],"citations":["session","actions"]}]},{"id":"payments","heading":"Subscription defaults and webhook scope","paragraphs":[{"id":"payments-detail","content":[{"text":"The Stripe helper creates subscription-mode checkout with card payment and an example fourteen-day trial. Its customer-portal setup includes subscription changes and cancellation at the period end when creating a new portal configuration. These are starter behaviors to review, not requirements for the product built on top. The inspected webhook verifies Stripe's signature and handles subscription-updated and subscription-deleted events; other events fall through to logging. An application's complete payment lifecycle must be evaluated against that actual handler instead of assuming a generic Stripe-integration label covers every event."}],"citations":["stripe","webhook"]}]},{"id":"dependency","heading":"Version and maintenance decisions","paragraphs":[{"id":"dependency-detail","content":[{"text":"The inspected main-branch manifest pins Next.js 15.6.0-canary.59 and React 19.1.0. That is a specific dependency snapshot, not evidence that the starter follows the current stable framework release. Its listed scripts cover development, builds and database tasks; no automated test command appears in that manifest. This observation does not prove that every possible external test is absent, but it means a ready regression suite should not be inferred from the package scripts. Dependency and test strategy remain adoption work."}],"citations":["package"]}]},{"id":"production","heading":"Deployment and external services","paragraphs":[{"id":"production-detail","content":[{"text":"The README's production path requires a production database connection, application URL, authentication secret and Stripe configuration including a production webhook. It presents Vercel as the deployment route. The MIT repository license grants code permissions subject to its notices, but does not supply infrastructure or payment-service entitlements. No deployment, account creation or transaction was performed for this article."}],"citations":["readme","license"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"This starter can substitute for "},{"text":"Open SaaS","targetSlug":"open-saas"},{"text":" as the initial codebase for a subscription application when Next.js and Drizzle are the desired stack. Open SaaS instead uses Wasp with React, Node.js and Prisma. The overlap concerns starting with account, billing and dashboard patterns; it does not establish parity in all bundled features or a lossless migration between codebases. An existing product would need deliberate adaptation of routes, data models, authentication and billing behavior."}],"citations":["readme","schema","open"]}]}]},"id":"Q400","revision":386,"updatedAt":"2026-10-11T20:40:40Z","sourceUrl":"https://substitutefor.net/entities/Q400?revision=386"}}