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