NestJS

A progressive Node.js framework for building efficient, scalable, and maintainable server-side applications in TypeScript.

Framework
npm
v11.2.1
76,397stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
92/100Excellent
Development Activity96
Maintenance96
Community76
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
92/100Excellent
Architecture95
Code Quality92
Innovation90
Learning Curve60

NestJS is a progressive Node.js framework for building server-side applications, and @nestjs/core is the runtime engine at its heart. It combines a powerful dependency-injection container, a modular application architecture, and a decorator-driven programming model inspired by Angular, giving teams an opinionated structure out of the box instead of an empty pile of libraries.

Built with TypeScript (while preserving full JavaScript compatibility), Nest layers on top of proven HTTP platforms like Express and Fastify and blends OOP, functional, and reactive paradigms. The @nestjs/core package resolves the module graph, instantiates providers, wires up controllers, guards, interceptors, and pipes, and bootstraps the application through the NestFactory, making large codebases testable, loosely coupled, and easy to maintain.

What You Get

  • A hierarchical dependency-injection container that resolves providers across a module graph
  • The NestFactory bootstrapper for HTTP apps, microservices, and standalone application contexts
  • A modular architecture with encapsulated, reusable feature modules
  • A composable request pipeline of guards, interceptors, pipes, and exception filters
  • Platform-agnostic adapters so the same app runs on Express or Fastify
  • First-class TypeScript support with a decorator-driven, testable programming model

Common Use Cases

  • Building REST and GraphQL APIs with a clear, layered architecture
  • Developing microservices and event-driven services with shared conventions
  • Structuring large enterprise backends that need testability and loose coupling
  • Standardizing cross-cutting concerns like auth, validation, and logging across a team

Under The Hood

Architecture At bootstrap, NestFactory.create (packages/core/nest-factory.ts) builds a NestContainer and runs the DependencyScanner (scanner.ts) to walk the root module’s imports/exports/providers metadata via the MetadataScanner, producing a graph in modules-container.ts. The InstanceLoader then drives the Injector (injector/injector.ts) to topologically resolve and instantiate every provider, honoring scopes (singleton, request, transient) and circular dependencies through instance wrappers. A platform adapter (platform-express/platform-fastify) supplies the HTTP server, while the RouterModule maps decorated controller methods to routes and assembles the per-request execution chain of guards, interceptors, pipes, and exception filters.

Tech Stack Written in TypeScript (99.8% of the repo) targeting Node.js >= 20, the package leans on reflect-metadata for decorator metadata, rxjs for the reactive interceptor stream, and small focused runtime deps (iterare, path-to-regexp, tslib, uid, fast-safe-stringify). It is published from a Lerna-managed monorepo alongside @nestjs/common, @nestjs/microservices, and the platform packages, all built with the TypeScript project-references compiler.

Code Quality The codebase is mature and disciplined: 81 .spec.ts files sit alongside roughly 179 source files in the core package, with Mocha-based unit specs plus an extensive integration/ suite. ESLint, Prettier, commitlint, and Husky hooks enforce style and conventions, and the injector, scanner, and router subsystems are cleanly separated into focused directories with descriptive naming and strong typing.

API Design The public surface is deliberately small and ergonomic: applications are bootstrapped with a one-line NestFactory.create(AppModule), and behavior is expressed declaratively through decorators (@Module, @Injectable, @Controller) re-exported largely from @nestjs/common. Extensive official documentation, a consistent Angular-inspired vocabulary, and sensible defaults keep boilerplate low, though the dependency-injection and module concepts carry a real learning curve for newcomers.

Used by 25 apps in this directory

TypeScript
88%
Other

AFFiNE

Productivity · Project Management · Note Taking

71,668

Write, draw, and plan in one infinite canvas — the open-source alternative to Notion and Miro that keeps your data yours.

View details
91
Repo Health
87
Technical
68
Dependency
Built with
TypeScript88%
Updated today
TypeScript
72%
AGPL 3.0

APITable

Low Code Platforms · Databases

15,526

API-first collaborative spreadsheet-database platform that auto-generates REST APIs and lets teams build internal tools, CRMs, and dashboards without code.

View details
53
Repo Health
77
Technical
60
Dependency
Built with
TypeScript72%
Java22%
Updated 9 months ago
TypeScript
96%
Other

Amplication

Developer Tools · AI Code Assistants · Automation

16,010

Create production-ready backend services with your organization's standards baked in — generating NestJS, Prisma, and GraphQL code that you own and control.

View details
61
Repo Health
84
Technical
60
Dependency
Built with
TypeScript96%
Updated 1 months ago
TypeScript
97%
AGPL 3.0

Bigcapital

Invoicing Finance

3,846

Self-hostable double-entry accounting platform with invoicing, inventory, multi-currency, and real-time financial reporting for small and medium businesses.

View details
91
Repo Health
77
Technical
64
Dependency
Built with
TypeScript97%
Updated yesterday
Rust
67%
MIT

Bun

Developer Tools

95,452

An all-in-one JavaScript and TypeScript toolkit — one Rust-and-JavaScriptCore binary that replaces Node.js, npm, a bundler, and a test runner with faster equivalents.

View details
92
Repo Health
91
Technical
66
Dependency
Built with
Rust67%
C++19%
Updated today
TypeScript
96%
Other

Cal.diy

Scheduling

47,796

The 100% MIT-licensed, community-driven scheduling platform — self-host your own booking infrastructure with no enterprise strings attached.

View details
93
Repo Health
86
Technical
66
Dependency
Built with
TypeScript96%
Updated 1 weeks ago
TypeScript
95%
AGPL 3.0

Docmost

Productivity · Note Taking · Collaboration

21,411

Self-hosted collaborative wiki and knowledge base with real-time editing, diagrams, AI assistance, and enterprise access controls — a modern alternative to Confluence and Notion.

View details
89
Repo Health
70
Technical
71
Dependency
Built with
TypeScript95%
Updated yesterday
TypeScript
74%
AGPL 3.0

Ghostfolio

Invoicing Finance

9,153

Track your stocks, ETFs, and crypto with a privacy-first, self-hostable wealth management platform built for data-driven investors.

View details
93
Repo Health
79
Technical
71
Dependency
Built with
TypeScript74%
HTML23%
Updated yesterday
TypeScript
98%
Other

Hexabot

AI Development · Automation

1,186

Build and run agentic workflows across channels with YAML, tools, and RAG

View details
79
Repo Health
76
Technical
70
Dependency
Built with
TypeScript98%
Updated yesterday

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search