Boilerplate-Stack

The Production-Ready Next.js SaaS Boilerplate to Ship Faster.

Auth, Stripe billing, multi-tenant teams, multi-LLM AI and i18n — wired end-to-end, typed and secured. And it ships with the rules and skills your AI coding agent needs to build features that actually fit.

  • One-time payment
  • Full source code
  • No subscription
  • Yours forever
~/your-saaslive

git clone https://github.com/boilerplate-stack/boilerplate-stack-prod

Cloning into 'boilerplate-stack-prod'... done.

cd boilerplate-stack-prod && npm install

added 982 packages in 24s

npm run init

Branding, business model & admin email configured

Supabase, Stripe & Mailjet env vars wired

Database initialized · .env.local + config/app.ts generated

npm run dev

▲ Next.js 16.2.6 ready on http://localhost:3777

claude "add a chat agent that answers from our docs"

Matched skill: /create-ai-agent · loaded config/ai.ts

Read rules: api.md · database.md · CLAUDE.md

Created agent · RAG pipeline · credit deduction wired

Types pass · ESLint clean · 0 questions asked

Shipped in 18s · agent live in chat selector

Built on the stack you already trust

Next.js 16
React 19
TypeScript
Supabase
Stripe
Multi-LLM AI
LangChain
LangGraph
Tailwind v4
shadcn/ui
i18n
OWASP
Context is everything

Your AI agent is only as good as the codebase you point it at

Drop a generic starter into Claude Code and it guesses. Drop in Boilerplate-Stack and it already knows the architecture, the conventions and the patterns.

generic-boilerplate.diff

// agent without context

  • asks 10+ questions before the first line
  • ignores your folder structure
  • reinvents auth, billing and RLS
  • breaks conventions you fix by hand
  • hours lost re-explaining the project
boilerplate-stack.diff

@@ agent with full context

  • ships on the first prompt
  • follows CLAUDE.md and modular rules
  • reuses your exact patterns
  • skills, subagents and hooks built in
  • production code, far fewer iterations
// net result
  • ~10x faster scaffolding
  • Fewer iterations
  • Conventions respected
  • Production-ready output

Everything a SaaS needs. Already built.

Months of foundational engineering — done, typed, documented and ready to extend.

Multi-LLM AI + RAG

OpenAI, Claude and Gemini behind one interface. LangChain orchestration, SSE streaming, prompt caching, a multi-agent registry and a built-in knowledge base (PDF/TXT/MD) on pgvector + HNSW.

Enterprise security

OWASP-aligned: CSP headers, rate limiting, RLS policies, CSRF, input sanitization and Turnstile bot protection.

Auth & users

Supabase Auth, OAuth providers, magic links, onboarding flow and GDPR-compliant account deletion.

Stripe billing

Subscriptions, one-time payments, credit packs, multi-currency, customer portal, webhook automation and a built-in affiliate program.

Multi-tenant

B2C personal accounts or B2B workspaces with dynamic roles, permissions, invitations and account switching.

CMS & jobs

Multi-locale CMS with a WYSIWYG editor, media library, scheduled pg_cron jobs and a webhook handler dashboard.

i18n & email

URL-based locales (FR/EN), auto-detection, localized components and a pluggable email layer (Brevo, Mailjet).

Modern stack, production-ready

Next.js 16, React 19, strict TypeScript, Tailwind v4, shadcn/ui, Docker + Coolify, SEO and an installable PWA out of the box.

And 80+ more — all wired up81

Every item below is implemented in the codebase, not a roadmap.

Stripe subscriptionsMagic Link AuthB2B multi-tenantClaude Code + Cursor + CodexSuper Admin DashboardOAuth (Google, GitHub)OpenAI GPT-4Anthropic ClaudeRoles & permissionsAffiliate program (cash commissions)Knowledge Base RAGOWASP compliantGoogle GeminiLangChain orchestrationMulti-agentsSSE streamingDocument chat (PDF/TXT/MD)pgvector + HNSW searchPrompt cachingToken & cost tracking1 credit = 1 LLM tokenOne-time paymentsCredit packsStripe Customer PortalAutomated webhooksMulti-currencyReferral systemAffiliate tiers (recurring or one-time)
AI Blueprint

Built for how you code now — with an agent in the loop

A first-class .claude/ workspace ships in the box. Your agent reads it and immediately works like a senior dev who has been on the team for months.

boilerplate-stack
  • .claude/
  • CLAUDE.md
  • settings.local.json
  • rules/20 files
  • architecture.md
  • database.md
  • anti-patterns.md
  • skills/42 skills
  • create-api-endpoint/
  • stripe-webhook/
  • agents/11 subagents
  • security-reviewer.md
  • db-architect.md
  • hooks/6 hooks
  • pre-write-guard.js
  • lint-on-edit.js
  • AGENTS.mdCodex
  • .cursor/rules/Cursor · 17
  • .gemini/GEMINI.mdGemini
claudelive

/create-api-endpoint secure, rate-limited route + Zod

/stripe-webhook verified Stripe webhook handler

/add-translation sync FR + EN locale files

@db-architect audit queries for N+1

Works with Claude Code, OpenAI Codex and Cursor.

Skills

Slash commands that generate code in your exact conventions.

/create-api-endpoint

Subagents

Expert reviewers that audit security, queries and payments.

@security-reviewer

Hooks

Lint, type-check and protect sensitive files on every edit.

lint + typecheck on edit

Rules

Modular domain rules loaded on demand, per area of the codebase.

database.md · billing.md
Your toolchain

Drop it into the AI tool you already use

This isn't a boilerplate you read — it's one your agent operates. The .claude/, AGENTS.md and .cursor/rules/ configs ship in the box, so any AI coding tool understands the codebase from the very first prompt.

Compatible with
  • Claude Code
  • Cursor
  • OpenAI Codex
  • Gemini CLI
  • GitHub Copilot
  • + any AGENTS.md agent
01

Clone & install

Grab the repo and install. The full agent workspace — rules, skills, subagents and hooks — comes with the code.

git clone … && npm install
02

Open in your AI tool

Open the folder in Claude Code, Cursor or Codex. The agent loads your conventions automatically — zero setup, zero priming.

claude
03

Ship by prompting

Describe the feature. The agent writes code that already respects your auth, billing, RLS and i18n patterns — on-pattern, not guessed.

add a team invites page
Same conventions, every tool — your AI writes code that fits the codebase.
Inside the box

A real product, not a landing-page demo

Fully built, responsive screens — admin, billing, AI and CMS — you can ship today.

A complete admin platform

Users, organizations, subscriptions, CMS, media, scheduled jobs and analytics — all built, styled and responsive.

  • User & workspace management
  • Subscription & payment views
  • CMS + media library
  • Scheduled jobs dashboard

Run the numbers

What it costs to build this foundation yourself — versus owning it this afternoon.

Build it yourself
3–6months
  • Auth, OAuth & sessions
  • Stripe billing & webhooks
  • Multi-tenant + roles + RLS
  • Multi-LLM AI, streaming & RAG
  • Security, i18n, CMS, jobs
  • Debugging it all into one app
With Boilerplate-Stack
Dayone
  • All of it, already wired
  • Typed, documented, tested
  • AI-agent workspace included
  • Docker + Coolify deploy ready
  • Configurable via clean config files
  • Point your agent at it and build
Your delta
3–6 months
Time saved
$50,000+
Engineering cost avoided
Walkthrough

See the whole thing in action

A quick tour of what ships in the box — admin, billing, AI and the agent workspace.

One payment. The whole codebase.

No seats. No subscription. No usage metering. Buy it, clone the private repo, ship forever.

Pay in 4 installments with PayPal

Solo

For indie hackers & solo developers

$290$174
Use code SOLO40 — save 40%
  • Full source code access
  • Projects allowed: 1 project
  • Updates included: 12 months
  • Private GitHub repo access
  • Discord community support
Most Popular

Team

For small teams & startups

$750
  • Full source code access
  • Projects allowed: 3 projects
  • Updates included: 12 months
  • Private GitHub repo access
  • Discord community support

Agency

For agencies & multiple projects

$1,740
  • Full source code access
  • Projects allowed: Unlimited projects
  • Updates included: 2 years
  • Private GitHub repo access
  • Discord community support
  • Private GitHub access
  • Use it on real client work
  • Discord community support
  • Free updates included

Questions, answered

Everything worth knowing before you buy.

Stop rebuilding the boring 80%

Get the foundation, point your agent at it, and spend your time on the part only you can build.

  • One-time payment
  • Full source code
  • AI-agent native
  • Ships today