The Unsexy Stack — Pro | FastAPI + Next.js 15 SaaS Boilerplate + Docker
by Alex Mayhew
$249
The Unsexy Stack — Professional
Boring tech that ships.
Current version: v1.2.1. Docker is now included in Professional, alongside the existing systemd/nginx deploy path.
Lifetime updates included. Free security, dependency, compatibility, bug-fix, documentation, and minor feature updates to the stack you buy. No subscription and no expiration.
The parts that make money and stay up: authentication, billing, deploy configs, real tests, security mapped to OWASP ASVS L1, and documentation to back it all up.
199 tests. 144 backend, 55 frontend. 98% backend coverage, 98% frontend statement coverage, 100% frontend line coverage. 16 PDFs. 5 D2 architecture diagrams.
What you get
Stripe billing
Subscription Checkout sessions and customer portal
Server-side Price ID resolution, so the frontend cannot post a cheaper-tier price_id
Idempotent webhook handling with event deduplication
Two-phase webhook processing with client_reference_id mapping
UserTier enum with database CHECK constraint
Per-tier extension pattern documented in docs/STRIPE_SETUP.md
Authentication with Clerk
JWT validation with JWKS caching, RSA key caching, and key-rotation fallback
Named backend JWT template pattern wired across docs and frontend calls
email_verified gate and required-email-claim validation server-side
Production deployment
systemd service files and nginx reverse proxy configs for low-magic VPS deploys
Docker Compose local and production configs, multi-stage backend and frontend Dockerfiles, and docs/DOCKER_GUIDE.md
SSL/TLS and security-header guidance, including CSP, HSTS, X-Frame-Options, X-Content-Type-Options, and Permissions-Policy
Environment-specific configuration patterns
Security checklist
20 built-in protections mapped to OWASP ASVS Level 1, with 13 pre-launch configuration checks
Clear separation between what is built into the boilerplate and what you must configure before launch
Security checklist PDF included. Read it before production deploy.
Observability
Structured JSON logging with python-json-logger
Request-ID middleware with context propagation into logs and error responses
Unified error-response schema across endpoints
Optional Sentry integration for backend and frontend when a DSN is set
Tests
144 backend tests with pytest and async coverage
55 frontend tests with Vitest and React Testing Library
199 total passing tests in the shipped package
Backend and frontend coverage thresholds enforce 95% minimum coverage
Postgres-backed integration test lane under backend/tests/integration/
Documentation: 16 PDFs
START_HERE, QUICKSTART, ARCHITECTURE, CONFIGURATION, DEPLOYMENT
DOCKER_GUIDE, STRIPE_SETUP, SECURITY, SECURITY_CHECKLIST
ANALYTICS_MONITORING, SCALING, TROUBLESHOOTING, FAQ
CUSTOMIZATION_GUIDES, WHY_UNSEXY, CHANGELOG
Architecture diagrams
System overview
Authentication flow
Payment and billing flow
Database entity-relationship diagram with Stripe models
Deployment architecture
Tech stack
Python 3.12+ / FastAPI 0.109+
Node.js 20+ / Next.js 15.5+ / React 19
PostgreSQL 15+ with SQLite for local development
Clerk authentication and Stripe billing
SQLAlchemy 2.0 async and Alembic migrations
TanStack Query and Tailwind CSS
systemd/nginx and Docker Compose deploy paths
Who this is for
Developers launching a real SaaS product that charges money
Freelancers building paid products for clients under the Professional license limits
Anyone who wants production infrastructure without spending weeks wiring up auth, billing, deploys, tests, and docs
What this is not for
Agencies running many client projects or needing white-label source-code transfer rights. That is Agency, with CI/CD, client handoff docs, agency onboarding docs, unlimited client projects, 19 PDFs, and a 10-developer internal team license.
Teams using Django or Rails. This is FastAPI + Next.js.
People expecting managed hosting. You deploy and own this stack yourself.
License
Professional includes up to 3 commercial projects for 1 developer.
Support
Priority email support for 12 months from purchase, with a 48-hour business-day response time.
Requirements
Python 3.12+, Node.js 20+, PostgreSQL 15+ or SQLite for local development, Stripe account, Clerk account, and Docker if you choose the Docker deploy path.
Questions? alex@alexmayhew.dev
Refund policy
30-day refund policy. If the stack does not work as described, email alex@alexmayhew.dev with what went wrong and I will fix it or refund you.