# nestjs/nest

> nest is a TypeScript framework for building backends on Node.js, from a small API in one file to large enterprise-grade systems. Its core idea is to give an application a fixed structure of modules, dependency injection, and set places for validation, authentication and error handling, so the project keeps its shape as it grows. It is written in TypeScript and runs on Express, Fastify or node:http.

Source: https://github.com/nestjs/nest
Indexed: commit e0600bb on 2026-11-21 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Library
- Language: TypeScript
- Stars: 77,112 at index time
- License: MIT
- Code health: 8.7/10, Excellent
- Last commit: 2026-11-20
- Contributors: 45

## Install

From the README: https://github.com/nestjs/nest#quick-start

Clone the nest repository.
    git clone https://github.com/nestjs/nest.git

Move into the nest folder.
    cd nest

Create a new project named my-api.
    npx @nestjs/cli new my-api

Change into the project folder.
    cd my-api

Start the application in watch mode.
    npm run start:dev

## How it works

The source is split into packages, with the core framework code under packages/core and shared code under packages/common. packages/core/injector/injector.ts handles dependency injection, which resolves the providers that modules declare. packages/core/router/router-response-controller.ts handles how the result of a route handler is sent back as a response. Platform adapters such as packages/platform-fastify/adapters/fastify-adapter.ts and packages/platform-node/adapters/node-adapter.ts connect this core to Fastify and node:http. The integration directory holds example applications, each started from an entry point such as integration/graphql-code-first/src/main.ts.

- integration/graphql-code-first/src/main.ts: entry point
- integration/graphql-schema-first/src/main.ts: entry point
- integration/lazy-modules/src/main.ts: entry point
- integration/microservices/src/main.ts: entry point
- integration/mongoose/src/main.ts: entry point
Modules: packages, integration, sample, tools, scripts, root. 2,718 files, 216,374 lines, 8,285 symbols.

## Code health

- Score: 8.7/10 (Excellent)
- Rank: not ranked (not on a leaderboard yet)
- Hotspots: packages/platform-fastify/adapters/fastify-adapter.ts, packages/platform-ws/adapters/ws-adapter.ts, packages/core/injector/injector.ts, packages/platform-node/adapters/node-adapter.ts, packages/core/router/router-response-controller.ts
- Lowest file: packages/platform-node/router/route-table.ts
- Dead code: none found

## Maintenance

- Last commit 2026-11-20, 501 commits
- 45 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/nestjs/nest/security

## More

- Page: https://repowise.dev/repo/nestjs/nest
- Ask this codebase: https://repowise.dev/repo/nestjs/nest/chat
- Docs: https://repowise.dev/repo/nestjs/nest/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/nestjs/nest
