Every few months someone asks it on r/node: Java has Spring, Ruby has Rails, Python has Django, PHP has Laravel. Is there a batteries-included framework for Node.js, or do I have to pick a router, a validation library, an auth library, a queue, a mailer and an ORM, and then glue them together myself?
For a long time the honest answer was "mostly glue". Nest gave a Node.js backend its structure (modules, dependency injection, guards, pipes, interceptors), and the batteries around that structure were a mix: some first-party, like configuration, OpenAPI, GraphQL and microservices, and many left to community packages, each with its own conventions and its own idea of how it should plug in.
That changed over 2026. The Nest core team shipped first-party packages for most of what was missing: authentication and authorization, Drizzle, mail, file storage, i18n, an HTTP client, and a set of reliability packages (retries and circuit breakers, idempotency keys, a transactional outbox, durable workflows, distributed locks, webhooks), plus AI and MCP. Together with the packages that were already there, Nest is now a batteries-included Node.js framework.
This post lists the batteries by need, shows what an application that uses a dozen of them looks like, and what it works with.
The short version
| You need | Nest gives you |
|---|---|
| Validation | Built-in pipes, with class-validator classes or any Standard Schema library (Zod, Valibot, ArkType) |
| Security headers, CSRF, CORS, cookies | Built into the core, on Express, Fastify and the Node adapter |
| Sign-in: passwords, sessions, tokens, 2FA, magic links, OpenID Connect, API keys | @nestjs/authentication |
| Permissions | @nestjs/authorization |
| Rate limiting | @nestjs/throttler |
| SQL and MongoDB |
@nestjs/drizzle, @nestjs/typeorm, @nestjs/sequelize, @nestjs/mongoose
|
| Caching | @nestjs/cache-manager |
| Configuration | @nestjs/config |
| Background jobs and cron |
@nestjs/bullmq, @nestjs/schedule
|
@nestjs/mail |
|
| File storage (local, S3, R2) | @nestjs/storage |
| Translations | @nestjs/i18n |
| Calling other APIs | @nestjs/http-client |
| Retries, timeouts, circuit breakers | @nestjs/resilience |
| Idempotency keys | @nestjs/idempotency |
| Transactional outbox | @nestjs/outbox |
| Durable workflows | @nestjs/workflows |
| Distributed locks | @nestjs/locks |
| Sending and receiving webhooks | @nestjs/webhooks |
| Health checks | @nestjs/terminus |
| OpenAPI | @nestjs/swagger |
| GraphQL |
@nestjs/graphql with Apollo or Mercurius |
| WebSockets |
@nestjs/websockets with Socket.IO or ws
|
| Kafka, RabbitMQ, NATS, MQTT, Redis, gRPC | @nestjs/microservices |
| LLMs, agents, embeddings | @nestjs/ai |
| MCP servers | @nestjs/mcp |
| Tracing, errors and logs | @nestjs/observe |
| Tests that swap providers | @nestjs/testing |
| Generators | @nestjs/cli |
The full list, with a link to the docs chapter for each package, is on the docs page Batteries included.
Batteries, but separate packages
Django is one package. Rails is a gem that pulls in its components. Nest's batteries are separate npm packages, and that's deliberate: a project installs what it uses, so an API that never sends email doesn't carry a mailer, and an application that doesn't use GraphQL doesn't carry Apollo.
What makes them batteries rather than a list of libraries is that they all plug in the same way. Each one is a module you import in AppModule, configured with forRoot() or, when it needs configuration from elsewhere, forRootAsync() with an injected ConfigService. Each one gives you providers you inject through constructors, and decorators for your classes. Once you've wired one, you know how to wire the next.
Here's the first-party part of the AppModule of a notes API that signs users in, sends email from background jobs, and runs scheduled work on one instance at a time. It's from nestjs/example-background-jobs, the companion repository of the emails and background jobs tutorial, where it's built and tested step by step:
import { Module, StandardSchemaValidationPipe } from '@nestjs/common';
import { APP_GUARD, APP_PIPE } from '@nestjs/core';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { AuthenticationModule } from '@nestjs/authentication';
import { BullModule } from '@nestjs/bullmq';
import { DrizzleModule, getDrizzleToken } from '@nestjs/drizzle';
import { LocksModule } from '@nestjs/locks';
import { MailModule } from '@nestjs/mail';
import { createObserveModule } from '@nestjs/observe';
import { OutboxModule, OutboxStorage } from '@nestjs/outbox';
import { fromDrizzle, PostgresOutboxStore } from '@nestjs/outbox/postgres';
import { ScheduleModule } from '@nestjs/schedule';
import { ThrottlerGuard, ThrottlerModule, minutes, normalizeIp } from '@nestjs/throttler';
That's twelve first-party packages: the core with its validation pipe, configuration, Drizzle, authentication, rate limiting, mail, BullMQ, an outbox that hands the welcome email to the queue from the sign-up transaction, cron jobs, locks that keep them on one instance, and Observe for tracing. Each one is configured in the same imports array, with the same patterns.
What the core already does
Some batteries don't need a package at all. Since Nest 12.1, the core sets security headers (app.useSecurityHeaders(), with Helmet's defaults), protects against CSRF, and reads and writes cookies, the same way on Express, Fastify and Nest's own Node adapter. Validation pipes accept class-validator classes or any Standard Schema library, so a Zod schema is both the runtime check and the handler's type. Handlers can return a web Response, a stream or an async generator, and Nest streams it with backpressure. File uploads come with type and size validators.
And nest new sets up more than a skeleton: a TypeScript project with Vitest (or Jest for CommonJS), NestJS Observe already wired for tracing and error monitoring, and the official agent skills for Codex, Cursor and Claude Code, so a coding agent working in the project uses the current APIs.
Works with what you already use
The batteries plug into the services and libraries your team already runs:
- Your database. First-party packages integrate the ORMs TypeScript developers already use: Drizzle, TypeORM, Sequelize and Mongoose, with Prisma and MikroORM through integrations of their own. If you're starting fresh, Drizzle is what 14 of the 15 tutorials use.
- Your infrastructure. BullMQ runs on Redis. Mail goes out over SMTP or a provider's API. Files go to a local folder or an S3-compatible bucket.
-
Any model provider for
@nestjs/ai, which builds on the AI SDK. - Your frontend. Nest builds the backend. It renders server-side pages too, and most teams pair it with React, Next.js or a mobile app.
How it compares
If you're weighing Nest against a minimal framework, see Nest vs Fastify, Express and Hono. And if you're coming from Spring Boot, ASP.NET Core, Django or FastAPI, there's a guide that maps each concept you know to its Nest counterpart: Spring Boot, ASP.NET Core, Django, FastAPI.
Try it
npx @nestjs/cli new my-api
Then pick a tutorial close to what you're building: a REST API with JWT authentication, a multi-tenant SaaS backend, an e-commerce backend, payments with webhooks or an AI chat backend. Each one starts from an empty project and adds the batteries it needs, one chapter at a time.
Top comments (0)