Multi-tenant backend,
built for scalable SaaS
The single shared tenant API built with Node.js, TypeScript, Express, and Supabase. Request-scoped client provisioning, encrypted tenant credentials, and isolated database routing.
"status": 200 OK "timestamp": "2026-08-26T09:07:00.000Z" "payload": { "success": true, "message": "Service is healthy", "data": { "status": "healthy", "service": "saas-tenant-api", "engine": "tenant-core" } }
Engineered for bulletproof tenant isolation.
A unified API gateway built with Express and TypeScript, securely resolving tenant contexts, decrypting configurations on-the-fly, and provisioning isolated database connections.
Request-Scoped Clients
Dynamically instantiates isolated Supabase instances per incoming request without ever leaking mutable global tenant state.
Encrypted Credentials
Tenant-specific project URLs and service keys are securely stored with AES-256 encryption and decrypted only in memory during authorization.
OpenAPI 3.0 & Telemetry
Interactive Swagger UI documentation, robust CORS middleware, structured Pino logging, and real-time health telemetry.
Strict boundary separation by design.
Single API, infinite isolated tenant projects.
Deploys independently on Vercel or Node.js containers while securely routing authenticated tenant requests to their designated Supabase infrastructure.
Authenticate Tenant
Verify request origin, validate X-Tenant-Key, and check bearer token authenticity.
Resolve & Decrypt
Retrieve encrypted tenant credentials and instantiate the scoped Supabase instance.
Execute & Log
Run authorized business logic, enforce tenant boundaries, and log structured metrics.
A production-grade tenant backbone.
Built for enterprise SaaS platforms that demand complete data residency, zero cross-tenant contamination, and sub-millisecond route dispatch.
Zero Cross-Tenant Leaks
Request isolation ensures tenant clients are garbage collected immediately upon request completion.
Strict Schema Validation
Powered by Zod and TypeScript 5 for strict environment and payload integrity.
Bilingual Developer Docs
Comprehensive API documentation and developer guidance in both English and Arabic.
Exposed Services & Documentation
Interactive OpenAPI 3.0 specification routes and automated health endpoints.
Ready to connect your tenants?
Explore the interactive OpenAPI documentation or inspect health metrics to get started.
Explore API Docs