💳

Next.js Subscription Payments

Open Source
Auth & Payments

Vercel 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.

Catalogued August 4, 2026 · Curated by Boilerplates Directory team
Open Source
Free
nextjs
Verified Live
Stack & tags
nextjsstripesupabasesubscriptionswebhooksopen-sourcebilling

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