Featured answer
Give me an overview of nest
nest is a TypeScript framework for building backends on Node.js, from a small API in one file up to large systems. It gives an application a fixed structure of modules, dependency injection, and defined places for validation, authentication and error handling, and it runs on Express, Fastify or node:http. The core framework code lives under packages/core and shared code under packages/common, with packages/core/injector/injector.ts resolving the providers that modules declare. packages/core/router/router-response-controller.ts sends route results back as responses, and platform adapters such as packages/platform-fastify/adapters/fastify-adapter.ts and packages/platform-node/adapters/node-adapter.ts connect the core to Fastify and node:http. To start reading, open packages/core/injector/injector.ts, then the integration directory, where example applications such as integration/graphql-code-first/src/main.ts show how an app is launched; in the chart, the Application layer is the largest with 707 files, while Docs & Tooling has 638.
| Layer | Files |
|---|---|
| Application | 707 |
| Middleware | 60 |
| Service | 161 |
| Config | 12 |
| API | 3 |
| Data | 9 |
| Types | 163 |
| Utility | 188 |
| Docs & Tooling | 638 |
Basis: Inferred · knowledge graph· as of e0600bb