Stop rebuilding the same plumbing. Start from a SaaS backend that is already tested.
LaunchPad API is a Python/FastAPI backend starter for B2B SaaS: authentication, teams, API keys and subscription billing, done carefully.
What is inside
- Auth: 15-minute access JWTs, rotating refresh tokens with reuse detection, email verification, password reset with single-use hashed tokens, rate-limited endpoints, no account enumeration.
- Multi-tenant: organizations, owner / admin / member roles, strict tenant isolation.
- API keys: per-organization, shown once, stored hashed, revocable, last-used tracking.
- Stripe billing: Checkout, Customer Portal, signature-verified idempotent webhooks, plan sync, past-due handling. Local webhook test script included.
- Plan limits: edit one
PLANS table; the API enforces limits (HTTP 402) and exposes usage.
- Ops: Dockerfile, docker-compose with PostgreSQL 16, Alembic migrations, health/ready endpoints, request IDs, GitHub Actions CI.
- Docs: architecture, Stripe setup, deployment, customization recipes, security checklist.
Proof: 50 automated tests, 95% line coverage, end-to-end smoke test. Re-run everything with the commands in the README.
Stack: Python 3.11+, FastAPI, async SQLAlchemy 2, asyncpg, Alembic, Pydantic v2, PyJWT, bcrypt, pytest.
Honest scope: backend JSON API only (bring any frontend). Not included: social login, 2FA, job queue, file uploads. The Dockerfile was not built in the authoring environment (CI builds it).
License: one developer, unlimited personal, client and commercial projects. No resale or public redistribution of the starter itself.
You get a ZIP with the full source, tests and docs immediately after payment. Questions: reply to the receipt email.