Skip to content
By nestarc
Compatibility

NestJS 10/11 and @nestarc package releases current on August 21, 2026

Introducing nestarc

We're excited to introduce nestarc — a collection of maintained NestJS modules for SaaS backends. Each package has an explicit Supported or Preview status so teams can choose an adoption level that matches their risk tolerance.

Why nestarc?

Building a multi-tenant SaaS application with NestJS requires solving the same set of cross-cutting concerns every time:

  • Tenant isolation — ensuring data doesn't leak between tenants
  • Audit logging — tracking who changed what and when
  • Feature flags — rolling out features gradually
  • Access control — keeping tenant and resource permissions consistent
  • Soft deletes — safely removing data without losing it
  • Pagination — handling large datasets efficiently
  • Response standardization — consistent API contracts

Each of these is well-understood, but implementing them correctly takes significant effort. nestarc packages these solutions into composable, well-tested modules that work together.

The Stack

All nestarc packages share NestJS and TypeScript conventions. Data-oriented packages may additionally use Prisma and PostgreSQL:

  • NestJS 10/11 for the application framework
  • Prisma 5/6/7, depending on the data package, for type-safe database access
  • PostgreSQL where a package relies on database features such as RLS or an outbox
  • TypeScript end-to-end

The Prisma-based packages compose via Prisma Client Extensions, so you can combine @nestarc/tenancy, @nestarc/soft-delete, and @nestarc/audit-log in a single Prisma client chain. Packages such as @nestarc/safe-response do not require Prisma or PostgreSQL.

What's Available

PackageVersionDescription
@nestarc/tenancy0.14.0PostgreSQL RLS + Prisma multi-tenancy
@nestarc/safe-response0.15.0API response wrapper with Swagger
@nestarc/audit-log0.4.0Transaction-first CUD tracking, streaming export, and durable delivery
@nestarc/feature-flag0.5.0DB-based feature flags
@nestarc/soft-delete0.6.0Prisma soft-delete extension with relation filters and bulk restore
@nestarc/pagination0.3.0Cursor + offset pagination
@nestarc/idempotency0.4.0IETF draft-07 idempotency with response/header replay
@nestarc/outbox0.2.0Transactional outbox for reliable domain events
@nestarc/webhook0.13.0Outbound webhook delivery with signing and retry
@nestarc/api-keys0.3.0Tenant-scoped API keys with scoped guards
@nestarc/rbac0.2.0Tenant-aware roles, permissions, and guards
@nestarc/data-subject0.2.0GDPR/CCPA export and erase workflows
@nestarc/jobs0.3.0Tenant-aware jobs with in-memory fairness, durable BullMQ retry/dedupe, and outbox publishing

@nestarc/mcp-guard is also published under the @nestarc scope, but it lives under Labs tooling rather than the NestJS SaaS package lineup.

Get Started

Last updated:

Released under the MIT License.