Skip to main content

Build your SaaS subscription platform in minutes

A minimal, production-ready starter kit combining Next.js 15, Supabase authentication, and Dodo Payments for subscription management. Get from idea to launch faster.

npminstall</div><divclassName="textgray400dark:textgray400textgray600"> npm install</div> <div className="text-gray-400 dark:text-gray-400 text-gray-600"> npm run db:push
$ npm run dev

Quick start

Get your subscription platform running in four simple steps

1

Clone and install dependencies

Clone the repository and install all required packages:
git clone https://github.com/dodopayments/dodo-supabase-subscription-starter.git
cd dodo-supabase-subscription-starter
npm install
2

Set up your services

Create accounts and configure your environment:Copy your API keys to .env.local:
NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
DATABASE_URL=your-database-url
DODO_PAYMENTS_API_KEY=your-dodo-api-key
DODO_WEBHOOK_SECRET=your-webhook-secret
3

Initialize the database

Push the database schema to your Supabase project:
npm run db:push
This creates three tables: users, subscriptions, and payments.
4

Start developing

Launch the development server:
npm run dev
Open http://localhost:3000 and start building your SaaS application.

What’s included

Everything you need to launch a subscription-based SaaS

Authentication

Google OAuth integration via Supabase for secure user authentication and session management

Subscription management

Complete subscription lifecycle handling with plan upgrades, downgrades, and cancellations

Payment processing

Integrated payment processing with Dodo Payments, including invoice generation and payment history

Dashboard

Pre-built user dashboard with subscription details, billing information, and account management

Webhook integration

Real-time webhook handlers for subscription events deployed as Supabase Edge Functions

Database schema

PostgreSQL database with Drizzle ORM for type-safe database operations

Ready to build your SaaS?

Start with our comprehensive setup guide and have your subscription platform running in under an hour.

Get started now