# Fastify: 8.3 out of 10

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

Fastify is a fast, schema-driven HTTP framework for Node.js, with built-in validation, serialization, logging and a strong plugin system. For a new Node.js server or API today it is among the strongest picks. Hono is the better fit for edge and multi-runtime work, and 2026 brought a steady run of validation-bypass advisories that you need to keep up with.

**Best for:** Teams building long-running Node.js APIs and services that want speed, schema validation and a mature plugin ecosystem.

## Scores

- **Overall: 8.3** (likely 7.4 to 8.9)
  - Claude Opus 5.5 (8.0): It is a strong, well-maintained, widely trusted choice for Node.js APIs, and better than Express for new work. Hono beats it for edge and multi-runtime projects, and scores higher on developer satisfaction. The 2026 advisory record keeps it below the top band.
  - GPT-6.2 Sol (8.5): Fastify is one of the strongest choices for a new Node.js JSON API because route contracts, scoped plugins, and in-process tests come together in a well-maintained framework. Its recent adoption signals and reported performance gains support choosing it over Express for that workload. Express retains a much larger middleware ecosystem, Hono is a better fit for portable deployments, and the next Fastify major release introduces runtime and plugin upgrade work.
- **Needed by many: 6.7** (likely 5.6 to 7.7)
  - Claude Opus 5.5 (7.0): Most backend JavaScript and TypeScript developers need an HTTP framework. Fastify serves the large group that runs servers on Node.js. Its focus on Node rather than edge or multi-runtime use makes it narrower than Hono's reach.
  - GPT-6.2 Sol (6.3): HTTP APIs are a common JavaScript and TypeScript backend job, and Fastify covers general-purpose Node.js services. Its Node.js focus narrows its fit compared with Hono’s runtime coverage. Survey figures show how widely developers use Node.js but only indirectly measure demand for a dedicated HTTP framework.
- **Helps a lot: 8.7** (likely 7.6 to 9.3)
  - Claude Opus 5.5 (8.5): It is fast, with validation, serialization, logging, hooks and encapsulated plugins built in. The docs are mature and AI coding agents know it well. Typing through type providers is weaker than Hono's inference. The 2026 validation bypasses show real edge-case bugs in its core schema handling.
  - GPT-6.2 Sol (8.8): Stable v5.12.8 combines schema validation, informative validation errors, response serialization, scoped hooks, and route testing. A third-party PostgreSQL workload put Fastify ahead of Express and Hono on Node.js, though the speedup will vary by workload. The versioned examples and test API make generated routes easy to check, and there is little direct evidence on coding-agent accuracy. Plugin-scoped type inference adds setup, and users have reported gaps between reply types and runtime behavior.
- **Holds up over time: 8.6** (likely 7.4 to 9.3)
  - Claude Opus 5.5 (8.5): It is an OpenJS Foundation project with many maintainers and paid core contributors. The repository shows 357 commits and 32 releases in the last year, and only 64 issues are open. Version 6 is in alpha. Major versions have brought manageable breaking changes, and the documented support window for v5 softens them.
  - GPT-6.2 Sol (8.6): Fastify recorded 357 commits and 32 GitHub releases in a year, with security and bug fixes still reaching v5 while v6 is in alpha. Five listed lead maintainers share release responsibility, and Nearform and Platformatic support maintenance under OpenJS Foundation hosting. Some backports merge quickly, but the open pull requests and limited turnaround data leave uncertainty about routine response times. The planned Node.js 24 minimum and coordinated plugin upgrades add work for the next major release.
- **Used widely: 6.6** (likely 5.5 to 7.8)
  - Claude Opus 5.5 (7.0): Downloads rose about 6.9 times year over year, from 13M to 90M per 4 weeks, which beats the 4.1 median. Part of that jump is likely from installs pulled in by other tools rather than direct choices. Its 16.7k dependent repos are far below Express (1.85M) and Koa (110k), but similar to hapi and h3, so direct adoption is probably in the tens to hundreds of thousands of projects.
  - GPT-6.2 Sol (6.2): Four-week downloads rose from 13.0 million to 90.0 million, about 6.95 times year over year against the 4.1 times benchmark. Growth outpaced Express and NestJS, while Hono grew much faster. The 16,712 indexed dependent repositories and 3,270 packages point to established use, with Express and NestJS ahead in repository coverage. Automated installs, installs through the NestJS adapter, and uneven indexing leave the number of projects choosing Fastify directly uncertain.
- **Vouched for: 7.9** (likely 6.8 to 8.8)
  - Claude Opus 5.5 (7.5): The Thoughtworks Radar has it in Adopt (Nov 2025). NestJS ships an official Fastify adapter, and independent comparisons widely name it the pick for Node.js servers. In State of JS 2025 the satisfaction leaders were Hono, Nitro and Elysia, not Fastify. One older production report from Trivago saw no performance gain after migrating.
  - GPT-6.2 Sol (8.2): Thoughtworks moved Fastify to Adopt in November 2025 after its teams saw measurable performance gains, and State of JavaScript 2025 recorded 86% satisfaction. NestJS maintains a first-party adapter and Vercel offers a documented deployment path. Hono scores higher on survey satisfaction, NestJS now recommends its own Node adapter, and public measurements from named production deployments are limited.
- **Safe: 7.0** (likely 5.9 to 8.0)
  - Claude Opus 5.5 (6.5): The OSV database lists 14 advisories in 24 months, several of them high-severity validation and auth bypasses, and some were regressions of earlier fixes. Fixes shipped quickly and the security process is clearly active. The Scorecard is 8.4, it pulls in 15 dependencies, and the licence is MIT. The steady stream of bypasses forces frequent upgrades.
  - GPT-6.2 Sol (7.5): Fastify uses the permissive MIT license and has 15 direct runtime dependencies. Release notes show fixes for all five recent advisories in the bundle and a further fix in v5.12.8. OpenSSF scored it 8.4, with full marks for fuzzing and the security policy, and weaker marks for dependency pinning, branch protection, and static analysis. Lead maintainers control core releases and the current GitHub release commit is signed, while npm artifact provenance remains unverified.

## Good

- JSON Schema validation and fast serialization are built into every route, so input checks and response shaping need no extra libraries.
- The encapsulated plugin system and official plugins (CORS, JWT, multipart, rate limit, Swagger) cover most API needs.
- It is among the fastest Node.js frameworks in independent and official benchmarks, clearly ahead of Express.
- It is actively co-maintained under the OpenJS Foundation, with frequent releases and quick security fixes.

## Bad

- It targets Node.js. It is not designed for edge or serverless runtimes the way Hono is, and its cold starts are slower.
- Several high-severity validation-bypass advisories in 2026, some of them regressions of earlier fixes, mean you must upgrade often.
- Its ecosystem is smaller than Express's, and middleware written for Express needs adapters or replacements.
- TypeScript typing through type providers works but is clunkier than Hono's or Elysia's inference.

## The numbers

- Downloads, 4 weeks: 90M
- In a year: ×6.9
- GitHub stars: 37k
- Commits, 12 months: 357
- Last npm release: Nov 2026
- Advisories, 24 months: 14
- Licence: MIT
- GitHub: https://github.com/fastify/fastify
- npm: https://www.npmjs.com/package/fastify

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.
