Skip to content

Documentation

Full documentation for this Next.js SaaS starter template. Start with Getting Started if you're setting the project up locally for the first time.

PageWhat's in it
Getting StartedLocal setup: clone, install, environment variables, Docker services, database migration, first run.
Quick ReferenceAt-a-glance lookup table of the utilities, hooks, and helpers already in the codebase - check here before writing a new one.
Environment VariablesCanonical reference for every env var - what it does, whether it's required, and where it's read.
ArchitectureTech stack, request flow, full project structure, key files, tRPC procedure types.
FeaturesThe feature-module pattern, a tour of every existing demo feature, and how to add a new one.
Data FetchingStep-by-step: client-side useQuery/useMutation, server-side prefetch() + hydration, and the direct caller.
DatabasePrisma schema, models, and the migration workflow.
Auth & BillingBetter Auth configuration, OAuth setup, Polar billing, premium feature gating.
Background JobsInngest concepts, existing jobs, adding new jobs, Realtime subscriptions.
IntegrationsAI (OpenRouter), Redis, and Plausible analytics usage.
FrontendUI components, the design system, required UI states, confirm dialogs, state management, i18n.
DeploymentDocker production setup, making Inngest durable, reverse proxy, pre-deploy checklist.

Demos

Each demo under /demo/* exists to show off one specific technique - not just "an example CRUD app." Full walkthrough per demo:

PageWhat it shows off
AI ChatResumable streaming - a refresh mid-response doesn't lose the reply.
Booking WizardMulti-step client state (Zustand + sessionStorage) decoupled from the server, plus real error/retry handling.
Customers TableFully server-driven pagination/filter/sort, with table state synced to the URL via nuqs.
Background JobsDurable multi-step jobs with live status via Inngest Realtime - no polling.
Posts CRUDThe canonical reference implementation to copy for a real feature, plus premium-gated procedures.

Make It Yours

Once the demos above have shown you what's here, Make It Yours is the separate, one-time checklist for turning the starter into your own product - rebranding, removing demo features, and configuring or removing every optional integration - before you move on to Deployment.

For AI coding agent instructions (not user-facing docs, and not part of this site), see CLAUDE.md, AGENTS.md, and the design token spec in DESIGN.md at the repo root.