nestjs/nest

โ–ฒ 171 stars todayโ˜… 77,130โ‘‚ 8,737

A progressive TypeScript framework for Node.js backends: from a small API in one file to efficient, scalable, enterprise-grade systems ๐Ÿš€

About nestjs/nest

nestjs/nest is an open-source project on GitHub, mainly written in TypeScript. A progressive TypeScript framework for Node.js backends: from a small API in one file to efficient, scalable, enterprise-grade systems ๐Ÿš€ It currently holds 77,130 stars and 8,737 forks with 38 open issues, and was last pushed on 2026-11-18 (repository created 2017-02-04).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #67 with 171 new stars today.

GitHub Repository Details

Repository nestjs/nest ยท default branch master ยท size 495582 KB ยท watchers 790 ยท source: GitHub REST API and repository README

README

https://github.com/nestjs/nest/blob/HEAD/Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456 [circleci-url]: https://circleci.com/gh/nestjs/nest

A progressive Node.js framework for building efficient and scalable server-side applications, from a small API in one file to enterprise-grade systems.

https://github.com/nestjs/nest/blob/HEAD/NPM Version https://github.com/nestjs/nest/blob/HEAD/Package License https://github.com/nestjs/nest/blob/HEAD/NPM Downloads https://github.com/nestjs/nest/blob/HEAD/CircleCI https://github.com/nestjs/nest/blob/HEAD/Discord https://github.com/nestjs/nest/blob/HEAD/Backers on Open Collective https://github.com/nestjs/nest/blob/HEAD/Sponsors on Open Collective https://github.com/nestjs/nest/blob/HEAD/Support us

Description

Nest is a TypeScript framework for building backends on Node.js, from a small API in one file to an enterprise-grade system with many teams. It gives an application modules, dependency injection, and one place each for validation, authentication and error handling, so a project keeps its shape as it grows.

It runs on Express, Fastify or Node's own node:http, and its first-party packages cover most of what a backend needs, so you can start small and add them as you go.

Quick start

npx @nestjs/cli new my-api
cd my-api
npm run start:dev

Add --minimal to start from a single file. An application can be this small:

import { Controller, Get } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';

@Controller() class AppController { @Get() hello() { return 'Hello, Nest!'; } }

const app = await NestFactory.create({ controllers: [AppController] }); await app.listen(3000);

The object passed to NestFactory.create() is the root module's metadata, so imports and providers work there too. Move it into a @Module() class when the root module needs middleware, or for nest generate to register what it creates.

Run it with npm run start:dev, like any other Nest project. The Nest CLI compiles it with the decorator metadata that constructor injection by type and ValidationPipe rely on. Tools that don't emit that metadata, such as tsx, leave injected dependencies undefined.

First-party packages

| What you need | Package | | --- | --- | | Language models, tools as provider methods, agents, streaming to the browser | @nestjs/ai | | MCP servers | @nestjs/mcp | | Sign-in, sessions, tokens, two-factor, API keys | @nestjs/authentication | | Permissions | @nestjs/authorization | | Email | @nestjs/mail | | Files, S3 included | @nestjs/storage | | Translations | @nestjs/i18n | | Databases | @nestjs/typeorm, @nestjs/drizzle, @nestjs/mongoose, @nestjs/sequelize | | Retries, timeouts, circuit breakers | @nestjs/resilience | | Idempotency keys | @nestjs/idempotency | | Transactional outbox | @nestjs/outbox | | Webhooks, sending and receiving | @nestjs/webhooks | | Running a job on one instance, locks | @nestjs/locks | | Processes that take days | @nestjs/workflows | | Queues and scheduled jobs | @nestjs/bullmq, @nestjs/schedule | | GraphQL, WebSockets, microservices | GraphQL, gateways, microservices | | OpenAPI | @nestjs/swagger | | Configuration, caching, rate limiting, health checks | @nestjs/config, @nestjs/cache-manager, @nestjs/throttler, @nestjs/terminus |

Moving to Nest

Using a coding agent

The whole documentation is available as markdown, with an index at docs.nestjs.com/llms.txt. Projects from nest new come with an AGENTS.md that lists the packages above, since most models were trained before they existed.

Philosophy

In recent years, thanks to Node.js, JavaScript has become the โ€œlingua francaโ€ of the web for both front-end and back-end applications, giving rise to awesome projects like Angular, React, and Vue, which improve developer productivity and enable the construction of fast, testable, and extensible frontend applications. However, on the server-side, while there are a lot of superb libraries, helpers, and tools for Node, none of them effectively solve the main problem - the architecture.

Nest aims to provide an application architecture out of the box which allows for effortless creation of highly testable, scalable, and loosely coupled and easily maintainable applications. The architecture is heavily inspired by Angular.

Getting started

Questions

For questions and support please use the official Discord channel. The issue list of this repo is exclusively for bug reports and feature requests.

Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

Observability

NestJS Observe is the official observability platform for Nest applications. Install the @nestjs/observe SDK, pass an API key, and requests, background jobs, errors, logs, and distributed traces start streaming to a dashboard - no manual span wiring and no collector to run. Because the SDK hooks into Nest's own request lifecycle, a trace reads like a call graph of your controllers and providers instead of a bare HTTP route. Free for up to 300,000 events a month, and there is a live demo with no signup.

Consulting

With official support, you can get expert help straight from the Nest core team. We provide dedicated technical support, migration strategies, advice on best practices (and design decisions), PR reviews, and team augmentation. Read more about support here.

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers. If you'd like to join them, please read more here.

Principal Sponsors

Gold Sponsors

Silver Sponsors

Sponsors

Backers

Stay in touch

License

Nest is MIT licensed.

GitHub Stars & Activity

77,130Stars
8,737Forks
38Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars77,130
Forks8,737
Open issues38
Primary languageTypeScript
LicenseMIT
Stars gained today171
Created2017-02-04
Last pushed2026-11-18

Trending History

Daily boardrank #67 ยท โ–ฒ 171 stars

Related GitHub Projects

1

n8n-io / n8n

TypeScriptโ˜… 210,811โ‘‚ 61,544โ–ฒ 315 stars
โ†’
2

angular / angular

TypeScriptโ˜… 101,464โ‘‚ 28,209โ–ฒ 212 stars
โ†’
3

colbymchenry / codegraph

TypeScriptโ˜… 77,931โ‘‚ 5,203โ–ฒ 129 stars
โ†’
4

pingdotgg / t3code

TypeScriptโ˜… 64,672โ‘‚ 11,360โ–ฒ 1,264 stars
โ†’
5

appwrite / appwrite

TypeScriptโ˜… 58,111โ‘‚ 5,874โ–ฒ 239 stars
โ†’
6

JCodesMore / ai-website-cloner-template

TypeScriptโ˜… 39,424โ‘‚ 5,877โ–ฒ 95 stars
โ†’
7

dream-num / univer

TypeScriptโ˜… 29,757โ‘‚ 2,655โ–ฒ 1,774 stars
โ†’
8

ag-ui-protocol / ag-ui

TypeScriptโ˜… 20,255โ‘‚ 2,083โ–ฒ 1,445 stars
โ†’

More Trending Repositories