Production-ready full-stack starter kit built with Next.js 14, TypeScript, Tailwind CSS and Supabase (Auth + Postgres). Beginner-friendly, senior-approved clone it, fork it, ship your SaaS faster. Open to contributions ⭐
A production ready open source starter kit for building modern SaaS apps with Next.js TypeScript Tailwind CSS and Supabase. Built to be simple enough for your first pull request and solid enough to actually ship a real product on top of.
| Light Mode | Dark Mode |
|---|---|
![]() | ![]() |
| Login | Sign up |
|---|---|
![]() | ![]() |
Most starter kits fall into one of two camps. Either they are toy examples that fall apart the moment you try to build something real or they are bloated paid templates locked behind a paywall. This project sits in the middle. It ships with real authentication a real Postgres database and a working dashboard while staying small enough to read through in one sitting.
It is also built with open source contribution in mind. The codebase is intentionally kept clean and well organized so that a beginner writing their first pull request and a senior engineer looking for a weekend project can both work in it comfortably.
Clone the repository and install the dependencies.
git clone https://github.com/MuhammadNiazAli/nextjs-supabase-starter.git
cd nextjs-supabase-starter
npm install
Copy the example environment file and fill in your own Supabase credentials.
cp .env.example .env.local
Start the development server.
npm run dev
The app will be running at http://localhost:3000.
.env.localsupabase/schema.sql to create the required tables, the avatars storage bucket, and all row level security policiesThe pricing page, checkout, and webhook are opt-in — the app runs fine without Stripe configured.
STRIPE_SECRET_KEY and NEXT_PUBLIC_STRIPE_PRICE_ID to .env.localSUPABASE_SERVICE_ROLE_KEY (Project Settings → API in Supabase) — needed by the webhook to write subscription statusstripe listen --forward-to localhost:3000/api/webhooks/stripe, then copy the printed signing secret into STRIPE_WEBHOOK_SECREThttps://your-domain.com/api/webhooks/stripe, listening for checkout.session.completed, customer.subscription.updated, and customer.subscription.deleted| Command | What it does |
|---|---|
npm run dev | Starts the app in development mode |
npm run build | Builds the app for production |
npm run start | Runs the production build |
npm run lint | Lints the codebase |
npm run format | Formats the codebase with Prettier |
npm test | Runs the unit test suite |
npm run storybook | Starts Storybook for component development |
src/
app/ App Router pages including auth dashboard profile pricing and API routes
components/ Reusable UI components and their tests and stories
lib/ Supabase client, Supabase admin client, Stripe client, and internationalization logic
messages/ Translation files for each supported language
stories/ Storybook design system assets
supabase/
schema.sql Database schema, storage policies, and row level security policies
This project is built for the community and every contribution is welcome no matter how small. Please read CONTRIBUTING.md before opening a pull request.
If you are new to open source start with an issue labeled good first issue. If you are looking for something more involved check the issues labeled help wanted.
There are many ways to contribute beyond writing code.
Extend the new-user welcome checklist: dismiss, progress and an avatar step
https://github.com/MuhammadNiazAli/nextjs-supabase-starter/issues/236
Labels: None
[FEATURE] Optional documented pre-launch repository review
https://github.com/MuhammadNiazAli/nextjs-supabase-starter/issues/205
Labels: None
Add Welcome/Onboarding Empty State for First-Time Users
https://github.com/MuhammadNiazAli/nextjs-supabase-starter/issues/193
Labels: good first issue
Differentiate Dashboard vs Profile Page Purpose
https://github.com/MuhammadNiazAli/nextjs-supabase-starter/issues/191
Labels: good first issue
Add Language Persistence Across Sessions
https://github.com/MuhammadNiazAli/nextjs-supabase-starter/issues/187
Labels: good first issue
Add i18n Coverage for Toast and Error Messages
https://github.com/MuhammadNiazAli/nextjs-supabase-starter/issues/186
Labels: good first issue
Add Animated Currency/Region Switcher for Pricing
https://github.com/MuhammadNiazAli/nextjs-supabase-starter/issues/176
Labels: good first issue
Add Animated Chart/Graph for Usage Stats
https://github.com/MuhammadNiazAli/nextjs-supabase-starter/issues/174
Labels: good first issue
First off — thank you for considering contributing! This repo is intentionally built to be friendly for first-time open-source contributors as well as experienced engineers.
git clone https://github.com/<you>/fullstack-starter.gitnpm installgit checkout -b feat/my-featurenpm run lint before committingfix: navbar overflow on mobile)Totally fine! Here's the simplest path:
good first issueCloses #12)Use the Bug Report issue template. Include steps to reproduce, expected vs actual behavior, and screenshots if UI-related.
Use the Feature Request issue template. Explain the problem it solves, not just the solution.
Even if you don't code, you can help by testing open PRs locally and leaving feedback. Reviews from anyone are welcome and appreciated.
Every contribution — a typo fix, a bug report, a big feature — is valued. Thanks for being here. 🙏