// the find
juicycleff/ultimate-backend
Multi tenant SaaS starter kit with cqrs graphql microservice architecture, apollo federation, event source and authentication
A NestJS monorepo boilerplate for multi-tenant SaaS backends, wiring together CQRS, event sourcing, Apollo Federation, GRPC, Stripe billing, RBAC, and Consul service discovery into one starting point. It's aimed at teams who want the scaffolding for a production-grade microservice architecture without building each piece from scratch. The target audience is TypeScript/NestJS developers who know what they're getting into with this level of complexity.
The CQRS implementation is properly separated — commands, queries, and sagas each have their own folders with concrete handler classes, not a dumbed-down version where everything ends up in a service. Multi-tenancy is a first-class concern: the `MongoMultiTenantConfigService` and `TenantDatabaseStrategy.DataIsolation` pattern means per-tenant DB isolation is wired in at the ORM level, not bolted on. The access token scope system (`update_billing:card` style) is a real authorization model, not just JWT roles. Apollo Federation is used correctly as the gateway layer rather than having services share a monolithic schema.
It's marked WIP and the README says the Docker/Azure CI is broken — that's not a minor footnote for something billed as production-ready scaffolding. The README says the 'current boilerplate repo is here' and points to a separate repo, meaning this repo is actually more of a packages repo; the actual getting-started path is unclear and you'll lose time figuring out which repo is authoritative. MongoDB is the required database with no SQL option, which is a hard constraint many teams won't want in 2026. Last meaningful commit activity and the abandoned 'coming to Rust' note suggest the maintainer has moved on, so you're adopting a large, complex codebase that may not get fixes.