A production-ready Next.js SaaS template with everything you need to build and ship a modern SaaS application.
| Category | Technology |
|---|---|
| Framework | Next.js 16 (App Router, Turbopack) |
| Language | TypeScript (strict mode) |
| API Layer | tRPC v11 + TanStack Query v5 |
| Database | PostgreSQL + Prisma ORM |
| Auth | Better Auth (email/password + Google + GitHub OAuth) |
| Payments | Polar.sh (subscriptions + customer portal) |
| Background Jobs | Inngest |
| AI | Vercel AI SDK + OpenRouter |
| Cache | Redis |
| Analytics | Plausible (self-hosted or cloud, optional) |
| UI | shadcn/ui + Tailwind CSS v4 |
| i18n | next-intl (en + de) |
| State | Zustand (client) + TanStack Query (server) |
| Input Validation | Zod |
| Forms | React Hook Form + Zod |
| Linting/Formatting | Biome (not ESLint/Prettier) |
| Package manager / runtime | Bun |
git clone <repo-url> my-app && cd my-app
bun install
cp .env.example .env # fill in DATABASE_URL, BETTER_AUTH_SECRET, etc.
docker compose up -d # Postgres, Redis, Inngest dev server
bun run prisma:migrate && bun run prisma:generate
bun run dev # http://localhost:3000See Getting Started for the full walkthrough, including OAuth and Polar setup.
Full docs live in docs/ - readable as plain Markdown, or as a searchable site via bun run docs:dev (see Getting Started):
- Getting Started - local setup
- Environment Variables - every env var explained
- Architecture - stack, request flow, project structure
- Features - existing demo features, adding a new one
- Database - Prisma schema and migrations
- Auth & Billing - Better Auth, OAuth, Polar, premium gating
- Background Jobs - Inngest
- Integrations - AI, Redis, analytics
- Frontend - UI components, design system, i18n, state management
- Deployment - Docker production setup, pre-deploy checklist
For AI coding agent instructions, see CLAUDE.md, AGENTS.md, and DESIGN.md.