Next.js SaaS Starter MIT-licensed learning starter combining Next.js, PostgreSQL, Drizzle, Stripe and shadcn/ui for a subscription application.
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.[1] [3]
Contents An intentionally small application foundation 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.[1]
Teams, membership and application records 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.[6]
What the authentication example actually does 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.[4] [5]
Subscription defaults and webhook scope 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.[7] [8]
Version and maintenance decisions 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.[3]
Deployment and external services 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.[1] [2]
Substitution considerations This starter can substitute for Open SaaS 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.[1] [6] [9]
References Next.js SaaS Starter README Features, setup, production configuration and minimal learning-resource scope
vendor · retrieved 2026-10-07 Next.js SaaS Starter license MIT terms
vendor · retrieved 2026-10-07 Next.js SaaS Starter package manifest Next 15.6.0-canary.59, React 19.1 and scripts/dependencies
vendor · retrieved 2026-10-07 Starter authentication session implementation bcrypt password helpers; HS256 signed JWT and secure HttpOnly cookie
vendor · retrieved 2026-10-07 Starter action wrappers Input-schema validation, authenticated-user and team wrappers
vendor · retrieved 2026-10-07 Starter database schema Users, teams, membership, invitations, activity and Stripe identifiers
vendor · retrieved 2026-10-07 Starter Stripe integration Subscription checkout, trial defaults, customer portal and selected status handling
vendor · retrieved 2026-10-07 Starter Stripe webhook route Signature verification and subscription updated/deleted event cases
vendor · retrieved 2026-10-07 Open SaaS introduction Wasp/React/Node/Prisma starter scope
vendor · retrieved 2026-10-07 Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.