#4646th of 64 in Backend and cloud templates
ack-nestjs-boilerplate
NestJS API boilerplate with JWT, OAuth, 2FA, RBAC and workspaces
- Stars
- 705
- License
- MIT
- Last commit
- Sep 2026
- Last release
- Sep 2026
- Language
- TypeScript
643 on 25 Apr 2026705 on 14 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
NestJS 12 and TypeScript API starter using Prisma on MongoDB (replica set required), Redis and BullMQ. It ships stateful JWT sessions, Google and Apple sign-in, TOTP 2FA, RBAC with CASL policies, multi-workspace tenancy, feature flags, and email, push and in-app notifications. The README targets enterprise apps, auth services, mobile backends and SaaS MVPs.
Who it is for: Node developers building multi-tenant SaaS or mobile API backends on NestJS
Strengths
- Auth included: ES256/ES512 JWT, Redis sessions, Google/Apple login, TOTP 2FA with backup codes
- Workspace-scoped projects, invites, feature flags and CASL policies already wired
- Notifications via AWS SES, Firebase FCM and BullMQ workers, plus S3 presigned uploads
- Zod-validated OpenAPI 3.1 docs, Vitest suite, Sentry and 30+ guides
Weaknesses
- MongoDB only; PostgreSQL support is still a TODO item
- Requires a MongoDB replica set for Prisma transactions
- Schema sync uses prisma db push, with no migration history
- Protection decorators must be applied in a fixed order or guards misbehave
What it needs
- TypeScript
- Needs MongoDB 8+ (replica set), Redis 8+, Node.js >= 24.15.0, pnpm, AWS S3, AWS SES, Firebase FCM, Sentry (optional), HashiCorp Vault (optional)
- GitHub template
- env example file
- sign-in: Passport
What changed
- v9.0.0 ↗ (opens in a new tab)Breaking
“Schema: embedded Role.abilities removed; Policies collection added. db push does not rewrite ability rows into policies. New models: Workspace, WorkspaceMember, WorkspaceInvite, WorkspaceJoinRequest,…”
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Backend and cloud templates
See all 64| Rank | Project | Score |
|---|---|---|
| 1 | trpcTypeScript library for typesafe APIs without schemas or code generation | 91 out of 100 |
| 2 | generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends | 91 out of 100 |
| 3 | fastapiPython web framework for typed REST APIs with automatic OpenAPI docs | 90 out of 100 |
| #4 | fiberExpress-style HTTP web framework for Go, built on fasthttp | 90 out of 100 |
| #5 | serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml | 88 out of 100 |