1---
2name: nest
3description: NestJS framework for building efficient, scalable Node.js server-side applications. Use when working with NestJS apps, controllers, modules, providers, dependency injection, pipes, guards, interceptors, or building REST/GraphQL APIs.
4metadata:
5 author: Hairyf
6 version: "2026.2.1"
7 source: Generated from https://github.com/nestjs/docs.nestjs.com, scripts located at https://github.com/antfu/skills
8---
9
10NestJS is a progressive Node.js framework for building efficient and scalable server-side applications. It uses TypeScript by default, supports both Express and Fastify, and provides an out-of-the-box application architecture inspired by Angular. NestJS combines elements of OOP, FP, and FRP, making it ideal for building enterprise-grade applications.
11
12> The skill is based on NestJS documentation, generated at 2026-02-01.
13
14## CLI
15
16| Topic | Description | Reference |
17|-------|-------------|-----------|
18| CLI Overview | Scaffolding, building, and running applications | [cli-overview](references/cli-overview.md) |
19| Monorepo & Libraries | Workspaces, apps, shared libraries | [cli-monorepo](references/cli-monorepo.md) |
20
21## Core References
22
23| Topic | Description | Reference |
24|-------|-------------|-----------|
25| Controllers | Route handlers, HTTP methods, request/response handling | [core-controllers](references/core-controllers.md) |
26| Modules | Application structure, feature modules, shared modules, dynamic modules | [core-modules](references/core-modules.md) |
27| Providers | Services, dependency injection, custom providers | [core-providers](references/core-providers.md) |
28| Dependency Injection | DI fundamentals, custom providers, scopes | [core-dependency-injection](references/core-dependency-injection.md) |
29| Middleware | Request/response middleware, functional middleware | [core-middleware](references/core-middleware.md) |
30
31## Fundamentals
32
33| Topic | Description | Reference |
34|-------|-------------|-----------|
35| Pipes | Data transformation and validation pipes | [fundamentals-pipes](references/fundamentals-pipes.md) |
36| Guards | Authorization guards, role-based access control | [fundamentals-guards](references/fundamentals-guards.md) |
37| Interceptors | Aspect-oriented programming, response transformation | [fundamentals-interceptors](references/fundamentals-interceptors.md) |
38| Exception Filters | Error handling, custom exception filters | [fundamentals-exception-filters](references/fundamentals-exception-filters.md) |
39| Custom Decorators | Creating custom parameter decorators | [fundamentals-custom-decorators](references/fundamentals-custom-decorators.md) |
40| Dynamic Modules | Configurable modules, module configuration | [fundamentals-dynamic-modules](references/fundamentals-dynamic-modules.md) |
41| Execution Context | Accessing request context, metadata reflection | [fundamentals-execution-context](references/fundamentals-execution-context.md) |
42| Provider Scopes | Singleton, request-scoped, transient providers | [fundamentals-provider-scopes](references/fundamentals-provider-scopes.md) |
43| Lifecycle Events | Application and provider lifecycle hooks | [fundamentals-lifecycle-events](references/fundamentals-lifecycle-events.md) |
44| Lazy Loading | Loading modules on-demand for serverless | [fundamentals-lazy-loading](references/fundamentals-lazy-loading.md) |
45| Circular Dependency | Resolving circular dependencies with forwardRef | [fundamentals-circular-dependency](references/fundamentals-circular-dependency.md) |
46| Module Reference | Accessing providers dynamically with ModuleRef | [fundamentals-module-reference](references/fundamentals-module-reference.md) |
47| Testing | Unit testing and e2e testing with @nestjs/testing | [fundamentals-testing](references/fundamentals-testing.md) |
48
49## Techniques
50
51| Topic | Description | Reference |
52|-------|-------------|-----------|
53| Validation | ValidationPipe, class-validator, DTO validation | [techniques-validation](references/techniques-validation.md) |
54| Configuration | Environment variables, ConfigModule, configuration management | [techniques-configuration](references/techniques-configuration.md) |
55| Database | TypeORM, Prisma, MongoDB integration | [techniques-database](references/techniques-database.md) |
56| Caching | Cache manager, Redis integration, auto-caching | [techniques-caching](references/techniques-caching.md) |
57| Logging | Built-in logger, custom loggers, JSON logging | [techniques-logging](references/techniques-logging.md) |
58| File Upload | File upload handling with multer, validation | [techniques-file-upload](references/techniques-file-upload.md) |
59| Versioning | URI, header, and media type API versioning | [techniques-versioning](references/techniques-versioning.md) |
60| Serialization | Response serialization with class-transformer | [techniques-serialization](references/techniques-serialization.md) |
61| Queues | Background job processing with BullMQ | [techniques-queues](references/techniques-queues.md) |
62| Task Scheduling | Cron jobs, intervals, and timeouts | [techniques-task-scheduling](references/techniques-task-scheduling.md) |
63| Events | Event-driven architecture with EventEmitter | [techniques-events](references/techniques-events.md) |
64| HTTP Module | Making HTTP requests with Axios | [techniques-http-module](references/techniques-http-module.md) |
65| Fastify | Using Fastify for better performance | [techniques-fastify](references/techniques-fastify.md) |
66| Sessions & Cookies | HTTP sessions and cookies for stateful apps | [techniques-sessions-cookies](references/techniques-sessions-cookies.md) |
67| Streaming & SSE | Compression, file streaming, Server-Sent Events | [techniques-compression-streaming-sse](references/techniques-compression-streaming-sse.md) |
68| MVC & Serve Static | Template rendering (Handlebars) and SPA static serving | [techniques-mvc-serve-static](references/techniques-mvc-serve-static.md) |
69
70## Security
71
72| Topic | Description | Reference |
73|-------|-------------|-----------|
74| Authentication | Passport integration, JWT authentication | [recipes-authentication](references/recipes-authentication.md) |
75| Authorization | RBAC, claims-based, CASL integration | [security-authorization](references/security-authorization.md) |
76| CORS & Rate Limiting | CORS, Helmet, ThrottlerModule | [security-cors-helmet-rate-limiting](references/security-cors-helmet-rate-limiting.md) |
77| Encryption & Hashing | bcrypt, argon2, password hashing | [security-encryption-hashing](references/security-encryption-hashing.md) |
78
79## OpenAPI
80
81| Topic | Description | Reference |
82|-------|-------------|-----------|
83| Swagger | OpenAPI documentation generation | [openapi-swagger](references/openapi-swagger.md) |
84
85## WebSockets
86
87| Topic | Description | Reference |
88|-------|-------------|-----------|
89| Gateways | Real-time communication with Socket.IO/ws | [websockets-gateways](references/websockets-gateways.md) |
90| Guards & Exception Filters | WsException, BaseWsExceptionFilter, interceptors, pipes | [websockets-advanced](references/websockets-advanced.md) |
91
92## Microservices
93
94| Topic | Description | Reference |
95|-------|-------------|-----------|
96| Overview | Transport layers, message patterns, events | [microservices-overview](references/microservices-overview.md) |
97| gRPC | Protocol Buffers, streaming, metadata, reflection | [microservices-grpc](references/microservices-grpc.md) |
98| Transports | Redis, Kafka, NATS, RabbitMQ configuration | [microservices-transports](references/microservices-transports.md) |
99
100## GraphQL
101
102| Topic | Description | Reference |
103|-------|-------------|-----------|
104| Overview | Code-first and schema-first approaches | [graphql-overview](references/graphql-overview.md) |
105| Resolvers & Mutations | Queries, mutations, field resolvers | [graphql-resolvers-mutations](references/graphql-resolvers-mutations.md) |
106| Subscriptions | Real-time subscriptions with PubSub | [graphql-subscriptions](references/graphql-subscriptions.md) |
107| Scalars, Unions & Enums | Interfaces, scalars, union types, enums | [graphql-scalars-unions-enums](references/graphql-scalars-unions-enums.md) |
108
109## Recipes
110
111| Topic | Description | Reference |
112|-------|-------------|-----------|
113| CRUD Generator | Nest CLI resource generator | [recipes-crud-generator](references/recipes-crud-generator.md) |
114| Documentation | OpenAPI/Swagger integration | [recipes-documentation](references/recipes-documentation.md) |
115| TypeORM | TypeORM integration and usage | [recipes-typeorm](references/recipes-typeorm.md) |
116| Prisma | Prisma ORM integration | [recipes-prisma](references/recipes-prisma.md) |
117| Mongoose | MongoDB with Mongoose ODM | [recipes-mongoose](references/recipes-mongoose.md) |
118| CQRS | Command Query Responsibility Segregation | [recipes-cqrs](references/recipes-cqrs.md) |
119| Terminus | Health checks and readiness/liveness probes | [recipes-terminus](references/recipes-terminus.md) |
120
121## FAQ
122
123| Topic | Description | Reference |
124|-------|-------------|-----------|
125| Raw Body & Hybrid | Webhook signature verification, HTTP + microservices | [faq-raw-body-hybrid](references/faq-raw-body-hybrid.md) |
126
127## Best Practices
128
129| Topic | Description | Reference |
130|-------|-------------|-----------|
131| Request Lifecycle | Understanding execution order and flow | [best-practices-request-lifecycle](references/best-practices-request-lifecycle.md) |