nestjs/nest
Developer ToolsA TypeScript backend framework for Node.js with modules, dependency injection and built-in packages.
Project overview
Nest is a TypeScript framework for building Node.js server-side applications, ranging from a single-file API to large multi-team systems. Its core contributions are an application architecture with modules, dependency injection, and single, consistent places for validation, authentication and error handling, so a codebase keeps its structure as it grows Readme.md.
It runs on Express, Fastify or Node's own node:http, and first-party packages cover databases, authentication, queues, scheduling, GraphQL, WebSockets, microservices, OpenAPI, configuration, caching, rate limiting and health checks, among others Readme.md. The architecture is heavily inspired by Angular, according to the project's own philosophy section.
Nest is suitable for teams that want a structured, convention-driven Node.js backend, and for developers migrating incremental Express, Fastify or Next.js route handlers onto the framework migration guides.
Quick start
Create a new project with the official CLI, enter the directory, and start the development server:
npx @nestjs/cli new my-api
cd my-api
npm run start:dev
To start from a single file instead, add --minimal to the new command. The whole application can look like this, and can be run without a build step using npx tsx src/main.ts Readme.md:
import { Controller, Get, Module } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
@Controller()
class AppController {
@Get()
hello() {
return 'Hello, Nest!';
}
}
@Module({ controllers: [AppController] })
class AppModule {}
const app = await NestFactory.create(AppModule);
await app.listen(3000);
The resulting server listens on port 3000 and responds to GET / with Hello, Nest!.
Runtime and tooling constraints
tsx does not emit decorator metadata, which constructor injection by type and ValidationPipe rely on. Once the application uses those features, run it through the Nest CLI, or compile with tsc or SWC with emitDecoratorMetadata enabled Readme.md. Requires Node.js.
The repository's issue tracker is reserved for bug reports and feature requests; general questions go to the official Discord channel Readme.md. Nest is MIT licensed Readme.md. An official hosted observability service, NestJS Observe, is optional and free for up to 300,000 events per month; the framework itself does not depend on it Readme.md.
Working with coding agents
The full documentation is available as markdown with an index at docs.nestjs.com/llms.txt, and projects generated by nest new include an AGENTS.md listing the first-party packages Readme.md.
HotRepo's take
On the 2026-11-16 TypeScript daily list, Nest recorded 77,128 stars and 8,741 forks, with 29 stars added and a best position of 10 that day. The HN discussions supplied date back to 2018 and carry little engagement; a 2022 Show HN thread includes a commenter listing production projects built on Nest, including ToolJet, Vendure and Amplication, which illustrates the kind of application the framework is used for. The repository's age and the breadth of its first-party package table distinguish it from minimalist routing libraries: the value is the shared architecture, not a smaller dependency footprint.
Written by AI from the project's README, updated . The project's own docs are the source of truth.
Hacker News
You might also like
- nodejs/nodeA server-side JavaScript runtime that lets developers run JavaScript outside the browser and build networked applications.
- cordiverse/cordisA TypeScript meta-framework for building plugin systems with runtime dependency injection and hot-reloadable components.
- expressjs/expressMinimalist Node.js web framework for building HTTP servers, APIs, and web apps with routing and middleware.
- fastify/fastifyA high-performance Node.js web framework with plugin-based extensibility and schema-driven validation for backend developers.
- vuejs/coreA progressive JavaScript framework for building web user interfaces, suitable for frontend developers of all levels.