product image

SaaS Starter — Multi-Tenant API Boilerplate (Express + TypeScript + raw SQL)

$186.25$149Save 20%

Production multi-tenant backend boilerplate for Express, TypeScript, and raw PostgreSQL.

Skip 6 weeks of plumbing. Auth, tenant isolation, and plan quotas extracted from a live SaaS with paying customers.

CORE CAPABILITIES:

  • Hard tenant isolation: Every table scoped by org_id; cross-tenant access blocked by automated tests
  • Quota monetization: Built-in free trial caps that trigger 403 QUOTA_EXCEEDED to drive plan upgrades
  • Platform admin API: Timing-safe endpoints to view platform metrics, override plans, and deactivate orgs
  • Complete auth core: Single-transaction registration, rotating single-use refresh tokens, and password reset
  • Self-contained verification: Email verification via SMTP with a local console fallback (zero external vendor lock-in)

STACK:
Node.js 20, Express, TypeScript, PostgreSQL (Raw SQL), Docker Compose

INCLUDES:
Full TypeScript source, transactional migrations (001-002), 8-part integration test suite, seed script, docker-compose.yml, and Render blueprint.

TERMS:
Single commercial license. Full refund within 7 days if the test suite fails to pass (npm test) as documented.