nest-best-practices
NestJS 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.
Skill based on NestJS documentation, updated 2026-03-28. Covers NestJS v11 with Express v5.
How to Use This Skill
When generating NestJS code, read the relevant reference files below for the specific topic. The references contain current API patterns, correct import paths, and production-ready examples.
Always apply the production best practices below — these are patterns that matter in production and are easy to miss without explicit guidance.
NestJS v11 Breaking Changes
Be aware of these when generating code for NestJS v11+:
Node.js v20+ Required
Node.js v16 and v18 are no longer supported. Always target Node.js v20+.
Express v5 Route Matching
NestJS v11 uses Express v5 by default. Route patterns have changed: