Open Source SaaS template
A calm, complete base for subscription software.
A production-ready SaaS foundation with teams, billing, onboarding, settings, email, and clear agent guidance.
This is the real app, not a mockup. Whatever you enter in the demo stays in your browser and belongs to nobody.
What you get
One zip. Everything to own it.
SaaS Foundation is for builders who need a trusted subscription product starting point without spending weeks wiring common infrastructure. It includes workspaces, Stripe billing, onboarding, role-aware settings, transactional email, and project documentation made for AI-assisted customization.
- Team workspaces and invitations
- Stripe subscriptions and customer portal
- Email and OAuth authentication
- Settings and role boundaries
- Deployment and testing guide
saas-foundation/├── app/the running Next.js app├── agent/START_HERE, PROJECT_MAP, RULES, RECIPES, TESTS, DEPLOY├── CLAUDE.mdread automatically by Claude Code├── AGENTS.mdread automatically by Codex├── .cursor/rules/loaded automatically by Cursor└── README.mdrun it, then make it yours
Inside the app

Customize with AI
Your agent already knows this codebase.
Agent instructions document billing, teams, auth, schema boundaries, test expectations, and safe product module additions.
Prompts written against this app
Run it
5 min to your own copy.
- 01Create your editable app copy and unzip it.
- 02Run npm install.
- 03Run npm run dev and open http://localhost:3000.
- 04Read /agent/START_HERE.md before customizing.
- 05Swap the local-first storage boundary for your own backend when ready.
SaaS Foundation data stays in this browser by default.
No account, backend, or cloud sync is included in the current package.
An agent can add optional sync later while preserving the local-first default.
This package is standard-ready for Create My App and AI customization.
A full app-only PWA install route is not enabled yet for this app.
If this isn’t quite right
Take SaaS Foundation and make it yours.
Free, MIT, 5 min to running. The demo above is exactly what lands in your folder.