Next.js + Supabase starter.

Auth, database, APIs, testing, and deploy — wired up and ready. Clone, build, ship.

$ git clone https://github.com/wannacry081/nextjs-supabase-template

$ pnpm install

$ cp .env.example .env

$ pnpm dev

What's included

Framework

  • Next.js 16 (App Router, RSC)
  • TypeScript 5.9 strict
  • React 19

Backend

  • Supabase Auth + OAuth
  • Drizzle ORM + Postgres
  • Structured API routes + auth guards
  • Rate limiting (Upstash Redis)
  • Email sending (Resend)

Frontend

  • Tailwind CSS v4
  • Shadcn/ui (Radix)
  • TanStack React Query
  • react-hook-form + Zod

Auth

  • Login, register, forgot & reset password
  • Protected routes with session refresh
  • Proxy-based middleware

Testing

  • Vitest + Testing Library
  • Playwright E2E (multi-browser)

Infra

  • Docker containerized
  • GitHub Actions CI/CD
  • ESLint + Prettier
  • VitePress docs site