Next.js Subscription Payments
Open SourceVercel and Stripe's open-source reference starter for SaaS billing — Next.js with Supabase auth and database, Stripe Checkout and customer portal, webhook-synced products, prices and subscription state.
Why we recommend Next.js Subscription Payments
This repo is the canonical implementation of the trickiest plumbing in SaaS: keeping Stripe subscription state truthfully mirrored in your own database. Built with input from Vercel and Stripe developer relations, it wires Supabase auth to Stripe customers, syncs products/prices/subscriptions through verified webhooks into Postgres tables guarded by RLS, and hands users Stripe Checkout and the Customer Portal so you never build card forms or cancellation flows. Thousands of production SaaS products started as this repo; even teams on other stacks read it as the spec for webhook-driven billing sync. It's free, open-source, and small enough to audit in one sitting.
Best use cases
Best for: developers adding subscriptions to a Supabase/Next.js app who want the webhook choreography done right, founders who need pricing tiers live this week using Stripe-hosted surfaces, and engineers learning the customer-subscription-webhook data model before designing their own.
Honest limitations
Not for: usage-based or seat-based billing — the model is simple plan subscriptions; metering is on you. It's a reference, not a product: no dunning strategy, tax config (enable Stripe Tax yourself), or team billing. Maintenance is periodic rather than continuous, so expect to bump dependencies on adoption.
Are you the maker of Next.js Subscription Payments? Claim this listing →
More in Auth & Payments
Laravel's official billing scaffolding — a complete subscription-billing portal (plans, coupons, invoices, payment methods) for Stripe or Paddle that mounts into any Laravel app in minutes. Paid, from $99/year per project.
Open-source Supabase starter core for SaaS — personal and team accounts, invitations, permissions enforced in Postgres with RLS, and Stripe subscription billing, delivered as SQL migrations and an API you build any frontend against.
The official Auth.js (NextAuth) example application for Next.js — working OAuth, email, and credentials sign-in flows with session handling across App Router pages, middleware, and API routes. The reference most auth setups start from. Open-source.
Lemon Squeezy's official Next.js billing template — subscription checkout, customer portal, webhook syncing of subscription state to your database, and plan management, showing the intended integration pattern for their API. Open-source.