Opinionated TypeScript framework: a DI container, modules, decorators, and the controller/service/repository layering built in as convention rather than left to you.

  1. NestJS Reference — the comprehensive lookup (6.6k words)

What to know

  • It’s Angular’s architecture for the backend — modules, providers, decorator-based DI.
  • The request pipeline is explicit: middleware → guards → interceptors → pipes → handler → interceptors → exception filters. That maps almost exactly onto the request lifecycle.
  • Validation decorators are inert without a ValidationPipe — the classic “my validation isn’t running” bug. Set whitelist: true so clients can’t smuggle extra fields.
  • forwardRef() is a smell, not a fix — a circular dependency is a design problem. → DI
  • It still runs on Express (or Fastify) underneath, so the runtime rules all still apply.
↑ Back to JavaScript / TypeScript Backends