# Indie SaaS Next.js boilerplate

> Sign-in, Stripe billing, an admin panel and a blog, with the agent layer already installed.

A SaaS starter that works on day one. People sign in with a password, a magic link, or Google, GitHub and Microsoft once their keys are set. Stripe sells monthly, yearly and lifetime plans from a public `/pricing` page. The signed-in app has a dashboard, settings and billing, and the admin panel lists real users with bans, impersonation and an audit log. Better Auth, Drizzle on Neon Postgres, Resend, PostHog, Sentry and an MDX blog sit underneath.

Every battery brings its own rules, skills and solution docs. An agent editing `src/lib/billing/**` already knows to verify webhook signatures and keep price ids out of code. Guard hooks block destructive commands, keep secrets out of logs and commits, and rewrite a bare `tsc` into the typecheck script. `verify:hooks` proves each guard still blocks what it claims.

Start with `docs/onboard.md`: every env var this selection needs, and where to get it. `verify` names the keys still missing. `agentic.config.json` records the selection, so the same config regenerates the same repo.

- Sign-in with email and password, magic links, and Google, GitHub and Microsoft, each on once its keys are set
- A public `/pricing` page, Stripe Checkout for monthly, yearly and lifetime prices, the customer portal, and a verified webhook that writes to Postgres
- A signed-in app: sidebar, account menu, dashboard, profile and security settings, and billing
- An admin panel with real users: search, bans with an expiry, impersonation and an audit log
- Neon Postgres, Drizzle migrations and a `/db-branch` skill for a database per branch
- MDX blog with RSS, plus PostHog and Sentry with rules that keep PII out

**Batteries:** better-auth, neon, drizzle, stripe, resend, posthog, sentry, admin-panel, blog-mdx

## Generate it

[Build the Indie SaaS repo](https://agenticboilerplate.com/build?preset=indie-saas)

---

Agentic Boilerplate: A Next.js repo your agent already knows. Free during launch, then $99 once.

- Site map for agents: https://agenticboilerplate.com/llms.txt
- Public API: https://agenticboilerplate.com/openapi.json
- Contact: agenticstudio@gmail.com
