Free scaffolding system and swap guides for building production SaaS applications.
A 15-phase autonomous scaffolding system that creates enterprise-grade infrastructure for SaaS applications. Works with AI agents (Claude, GPT-4, etc.) to generate production-ready code.
What it creates:
- Turborepo monorepo with pnpm
- Type-safe environment validation
- Shared types and exception taxonomy
- Database schema with RLS policies
- Auth infrastructure with JWT
- Resilience patterns (circuit breakers, retries, locks)
- Job processing system
- API foundation with rate limiting
- Structured logging and metrics
- Stripe integration stubs
- Design tokens and base components
- Security hardening (CSP, audit logging)
- File storage with validation
- Redis caching patterns
- Docker Compose deployment
Time to complete: ~3 hours
Get started: Read scaffolding/00-MANIFEST.md
Guides for swapping default stack components with alternatives:
| Guide | From | To |
|---|---|---|
| SUPABASE_TO_CLERK_PRISMA | Supabase Auth + DB | Clerk + Prisma |
| SUPABASE_TO_FIREBASE | Supabase | Firebase |
| STRIPE_TO_PADDLE | Stripe | Paddle |
| SENDGRID_TO_RESEND | SendGrid | Resend |
| REDIS_TO_UPSTASH | Redis | Upstash |
The scaffolding assumes:
- Auth/DB: Supabase
- Payments: Stripe
- Email: SendGrid
- Cache: Redis
- Frontend: Next.js 16+ (App Router)
- Backend: Python/FastAPI
Use the swap guides if you prefer different providers.
Read scaffolding/00-MANIFEST.md and execute phases 01-15 in order.
- Create a new project directory
- Clone this repo into it (or copy the folders)
- Tell your AI agent to read the manifest and start scaffolding
- Optionally customize with swap guides after scaffolding completes
This is the free companion to the Masterguide pattern library (49 production patterns, private).
MIT - Use freely in your projects.