# NestJS: 8.2 out of 10

A strong pick. 3rd of 10 in [Server frameworks](https://elestia.ai/opensource/server-frameworks/index.md).

NestJS is a TypeScript framework for Node.js backends with dependency injection and modules, built on Express or Fastify. It is the standard choice for large, structured APIs. Version 12 (October 2026) ships ESM packages and Standard Schema validation, and work on it is very active. It is heavier and more verbose than Fastify or Hono, and it runs only on Node.js.

**Best for:** Teams building long-lived Node.js backends that want enforced structure, dependency injection and official modules for GraphQL, microservices, queues and auth.

## Scores

- **Overall: 8.2** (likely 7.4 to 8.8)
  - Claude Opus 5.5 (8.0): For structured, team-sized Node.js APIs it is the strongest choice available: very actively maintained, with the deepest first-party ecosystem and broad production trust. It falls short of a category-wide default because Fastify is leaner for simple services, Hono covers edge and multi-runtime work and is growing faster, and NestJS's boilerplate and decorator-based types are real costs. Rank it near Fastify and Hono, ahead of Express, Koa, hapi and Restify for new work.
  - GPT-6.2 Sol (8.3): NestJS is one of the strongest choices for a long-lived TypeScript API on Node.js when the team wants shared conventions for modules, testing, and request handling. Active maintenance and current downstream adoption make that a credible long-term choice. Fastify fits services that prioritize low overhead, and Hono fits small APIs that need edge portability. The benefit of NestJS's structure depends on how much the service grows, and recent upgrades show that even minor releases can require review.
- **Needed by many: 6.3** (likely 5.3 to 7.4)
  - Claude Opus 5.5 (6.5): Most backend JS/TS developers need a server framework. NestJS's take, an opinionated, DI-heavy framework for Node only, serves a large but smaller group: teams building structured, long-lived APIs. Small services, edge functions and full-stack meta-framework users mostly do not need it.
  - GPT-6.2 Sol (6.1): Building HTTP APIs is common in JavaScript and TypeScript, and NestJS covers a wide range of Node.js backends. Its application structure is most valuable when a service has several features or contributors. The range reflects how much of a team's backend work calls for that structure or targets an edge runtime.
- **Helps a lot: 8.3** (likely 7.3 to 8.9)
  - Claude Opus 5.5 (8.0): No peer matches its feature set for large APIs: DI, modules, guards, interceptors, microservice transports, GraphQL, WebSockets and testing utilities. v12 adds Standard Schema validation (Zod, Valibot, ArkType) and observability. The limits are clear: verbose boilerplate, legacy decorators that weaken type inference, slow cold starts, and Node only. Its long history and fixed conventions help AI agents write correct code for it.
  - GPT-6.2 Sol (8.5): Version 12.6 combines typed HTTP adapters, a configurable request pipeline, and documented tools for testing and troubleshooting. The CLI gives coding agents current examples and conventions, though there is little independent evidence on how reliably they apply them. An independent v12 benchmark found a startup, memory, and throughput cost with the Fastify adapter on simple routes. The cost in a production API depends on the adapter and how much work each request does.
- **Holds up over time: 8.4** (likely 7.3 to 9.1)
  - Claude Opus 5.5 (8.5): Activity is very high: 3,403 commits and 47 releases in the last year, a major version in October 2026, and only 9 open issues. Trilon, the creator's consultancy, and sponsors pay for the work, but the project still depends heavily on its creator. Major upgrades come with an automated upgrade command, though v12 brought some ESM and lifecycle-hook pain.
  - GPT-6.2 Sol (8.3): The repository recorded 3,403 commits and 47 releases in a year, has a small open issue backlog, and receives recurring funding. Several contributors ship fixes, while the public release history shows the same lead maintainer publishing releases. The v12 upgrade command handles many mechanical changes, but users still report Jest compatibility work. Changes to defaults in minor releases and uncertainty about how many people can publish widen the range.
- **Used widely: 7.5** (likely 6.4 to 8.3)
  - Claude Opus 5.5 (8.0): About 96M downloads in 4 weeks, up from 22.9M, a ratio of 4.19. That is just above the 4.1 median, so it is holding ground rather than gaining. Its 78k dependent repos are second only to Express and Koa among the peers, and far above Fastify (16.7k) and Hono (668), so many projects choose it directly. Hono and Fastify are growing faster.
  - GPT-6.2 Sol (6.9): The collector found 78,379 dependent repositories and 6,141 npm packages, well ahead of Fastify in this sample and far behind Express in repository count. Four-week downloads rose 4.19 times year over year, just above the 4.1 median and below Fastify's 6.95 and Hono's 40.04. Surveys show broad adoption among Node.js framework users, while the supplied Bluesky sample shows less attention than those three peers. Automated installs, shared repository stars, and partial dependency coverage leave the number of projects choosing NestJS uncertain.
- **Vouched for: 7.8** (likely 6.7 to 8.8)
  - Claude Opus 5.5 (7.5): Companies run it widely in production, and InfoQ, survey commentary and independent comparisons consistently call it the enterprise choice for Node. The State of JS 2025 shows growing usage with mixed pain-point sentiment. Satisfaction leadership goes to newer frameworks such as Hono and Elysia. I found no exact satisfaction figure, which keeps the range wide.
  - GPT-6.2 Sol (8.0): Vendure builds its commerce platform on NestJS and upgraded to v12, and Amygdal documents two production systems that use it. Independent engineers report benefits from its structure on larger backends and measure the cost on simple routes. Hono, Nitro, and Elysia led State of JavaScript satisfaction, and the public evidence still covers a limited set of v12 production workloads.
- **Safe: 7.7** (likely 6.6 to 8.5)
  - Claude Opus 5.5 (8.0): The core has a small footprint of 5 dependencies and an MIT licence. Only 2 moderate advisories have ever been issued, and the 2026 SSE injection was patched in 11.1.18 the same day it was disclosed. The Scorecard is 7.5, with weak checks for Pinned-Dependencies, Fuzzing, CII badge and partial Code-Review. In practice, apps pull in many @nestjs/* packages plus Express or Fastify, which widens the attack surface.
  - GPT-6.2 Sol (7.4): The permissive MIT licence and five direct core dependencies help, although adapters and optional packages add dependencies. Both moderate advisories in the bundle have fixes, and GitHub lists newer high-severity core and adapter advisories that were patched by disclosure. The 7.5 Scorecard shows strong token controls and a published security policy, with middling code review and zero scores for dependency pinning and fuzzing. The repository documents a Lerna publishing script, while npm publisher access and release provenance remain unverified.

## Good

- The largest first-party ecosystem of any JS server framework: GraphQL, microservices, WebSockets, CQRS, scheduling, caching, config and testing.
- Modules, providers and dependency injection keep big codebases with many developers consistent and easy to test.
- Very active upkeep: 47 releases in the last year, v12 shipped with an automated `nest upgrade` path, and the open issue count is kept near zero.
- Runs on Express or Fastify, so teams can reuse Express middleware or get Fastify's throughput.

## Bad

- Runs only on Node.js. It does not work on edge runtimes such as Cloudflare Workers, which Hono covers.
- Needs a service, module and DTO even for a small endpoint. Legacy decorators and indirection make types and debugging harder than in Fastify or Hono.
- Startup is slow compared with leaner frameworks, which matters for serverless cold starts.
- Upgrades sometimes change behaviour: v12 changed lifecycle hook order and needs ESM workarounds, and 12.5 lowered the WebSocket maxPayload default to 1 MB.

## The numbers

- Downloads, 4 weeks: 96M
- In a year: ×4.2
- GitHub stars: 77k
- Commits, 12 months: 3.4k
- Last npm release: Nov 2026
- Advisories, 24 months: 1
- Licence: MIT
- GitHub: https://github.com/nestjs/nest
- npm: https://www.npmjs.com/package/@nestjs/core

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
