Opinionated TypeScript framework: a DI container, modules, decorators, and the controller/service/repository layering built in as convention rather than left to you.
- 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. Setwhitelist: trueso 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.
Related
Jump to a subject
Software engineering
Infrastructure & security
Computer science
Hardware & engineering