#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
Stars, last 29 weeks+62
25 Apr 2026: 643 stars2 May 2026: 644 stars9 May 2026: 647 stars16 May 2026: 649 stars23 May 2026: 650 stars30 May 2026: 652 stars6 Jun 2026: 658 stars13 Jun 2026: 662 stars20 Jun 2026: 663 stars27 Jun 2026: 669 stars4 Jul 2026: 672 stars11 Jul 2026: 673 stars18 Jul 2026: 674 stars25 Jul 2026: 679 stars1 Aug 2026: 681 stars8 Aug 2026: 685 stars15 Aug 2026: 688 stars22 Aug 2026: 692 stars29 Aug 2026: 693 stars5 Sept 2026: 697 stars12 Sept 2026: 698 stars19 Sept 2026: 698 stars26 Sept 2026: 700 stars3 Oct 2026: 700 stars10 Oct 2026: 700 stars17 Oct 2026: 701 stars24 Oct 2026: 701 stars31 Oct 2026: 703 stars7 Nov 2026: 704 stars14 Nov 2026: 705 stars

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

  1. “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
Also in Backend and cloud templates
RankProjectScore
1trpcTypeScript library for typesafe APIs without schemas or code generation40.8k starsMIT91 out of 100
2generator-jhipsterCode generator for Java apps with Angular, React or Vue frontends22.5k starsApache-2.091 out of 100
3fastapiPython web framework for typed REST APIs with automatic OpenAPI docs105k starsMIT90 out of 100
#4fiberExpress-style HTTP web framework for Go, built on fasthttp40.3k starsMIT90 out of 100
#5serverlessCLI that deploys AWS Lambda code and infrastructure from serverless.yml46.9k starscustom license88 out of 100