SaaS Starter Documentation
Guides for the SaaS Starter TypeScript SaaS boilerplate — install, configure, auth, billing, AI, database, security, and deployment.
SaaS Starter documentation
SaaS Starter is a production-oriented TypeScript monorepo you clone and operate: Next.js (web), Hono (API), workers (BullMQ), PostgreSQL, Redis, Better Auth, billing adapters, AI factory, admin UI, and Docker/Caddy patterns. It is not a hosted SaaS product by default — you own the deployment and data plane.
First time here? Follow Quick Start to go from clone to running stack. The repository also contains a comprehensive docs/ folder with deployment runbooks, migration guides, and platform-specific setup steps you can open alongside this site.
Private boilerplate: SaaS Starter is distributed as a purchasable codebase, not a public GitHub template. If your build has no “Edit on GitHub” or repo icon in this docs UI, that is intentional.
Pick a path
I want it running locally
I need install commands
I need env setup guidance
I need every env variable
I ship with Docker
I configure auth & SSO
I wire billing & webhooks
I go to production
All guides
| Topic | Description |
| --- | --- |
| Quick Start | Clone, wizard, setup, health checks, seed admin, troubleshooting. |
| Installation | Exact dependency, Docker, .env, and first-boot commands. |
| Help & support | Email, what to send us, doc feedback. |
| Project structure | Monorepo layout and where features live. |
| Configuration | Practical .env setup for local and production. |
| Environment matrix | Variables by runtime surface. |
| Provider adapters | Stripe / Paddle / email / AI / storage factories. |
| Authentication | Better Auth, OAuth, orgs, sessions. |
| Billing | Subscriptions, providers, webhooks. |
| AI & RAG | Multi-provider AI, RAG, quotas. |
| Database | Drizzle, migrations, PostgreSQL. |
| Deployment | Production deployment checklist (platforms, PM2, monitoring). |
| Docker & scaling | Compose, Redis split, horizontal API. |
| Security & webhooks | Webhook signing, operational security. |
| Security controls map | Controls-oriented reference. |
| Positioning & proof | How SaaS Starter compares to other stacks. |
Capability snapshot
| Capability | SaaS Starter | Typical “starter” | | --- | --- | --- | | Dual billing (e.g. Stripe + Paddle patterns) | Shipped as adapters | Often single provider | | Multi-provider AI | Factory (several providers) | Often one SDK only | | Workers / queues | BullMQ patterns in repo | Often omitted | | Admin + analytics surfaces | Included | Varies widely | | TypeScript (strict) monorepo | Yes | Varies |
Tech stack
next 16 · react 19 · hono 4 · drizzle-orm · postgresql 16 · pgvector
better-auth · bullmq · redis · stripe / paddle / lemonsqueezy
openai · anthropic · gemini · groq · nextjs · docker · caddy