Fastify
A strong pick. 2nd of 10 server frameworks.
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
Overall8.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.5 to 8.5
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.
- techplained.com/hono-vs-express-vs-fastify: Comparisons pick Fastify for Node servers and Hono for edge
- thoughtworks.com/en-cl/radar/languages-and-frameworks/fastify: Adopt ring
- npm downloads ratio: Growth of about 6.9x, above the 4.1 median
GPT-6.2 Sol: 8.5, likely 7.3 to 9.3
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.
- fastify.dev/docs/v5.12.x/Reference/Validation-and-Serialization: The stable release integrates request validation and response serialization.
- thoughtworks.com/radar/languages-and-frameworks/fastify: Thoughtworks reports performance improvements over alternatives such as Express.
- github commitsLastYear, releasesLastYear; npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo; peers: Active maintenance and faster recent download growth than Express.
- reddit.com/r/node/comments/1m3uu14/hono_or_fastify_and_why: Users report tradeoffs in plugin coverage, typing, and familiarity.
- hono.dev/docs: Hono’s documented runtime coverage is broader.
- github.com/fastify/fastify/issues/6834: The v6 plan makes upcoming runtime and plugin migration work visible.
Needed by many6.7
How many developers need a tool for this job?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- github description: Describes itself as a web framework for Node.js
- betterstack.com/community/guides/scaling-nodejs/fastify-vs-express-vs-hono: Not optimized for edge or serverless environments
GPT-6.2 Sol: 6.3, likely 5.1 to 7.4
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.
- survey.stackoverflow.co/2026/technology/data: 46.4% of respondents to the web technology question used Node.js.
- github.com/fastify/fastify: Fastify targets Node.js and supports general-purpose routing and plugins.
- hono.dev/docs: Hono documents Node.js, Bun, Deno, and several edge targets.
Helps a lot8.7
How well does it do the job for those who need it?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
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.
- betterstack.com/community/guides/scaling-nodejs/fastify-vs-express-vs-hono: Built-in validation and serialization, fast routing, TypeScript rated good rather than first-class
- fastify.dev/benchmarks: Official benchmarks put it ahead of Hono and Express 5 on Node
- tech-insider.org/hono-vs-express-vs-fastify-2026: Independent 2026 run finds Fastify and Hono close and well ahead of Express
- advisories.gitlab.com/pkg/npm/fastify: Several 2026 bugs in schema and Content-Type validation
GPT-6.2 Sol: 8.8, likely 7.6 to 9.6
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.
- fastify.dev/docs/v5.12.x/Reference/Validation-and-Serialization: Documents request schemas, response serialization, and validation errors.
- fastify.dev/docs/v5.12.x/Reference/Type-Providers: Documents schema inference and its limits across plugin scopes.
- fastify.dev/docs/v5.12.x/Reference/Encapsulation: Explains how routes inherit hooks, decorators, and plugins.
- fastify.dev/docs/v5.12.x/Guides/Testing: Provides copyable examples for testing routes with inject().
- github.com/arjaythedev/js-runtimes-benchmark: October 2026 load test compares the same 19-endpoint API across stacks.
- github.com/fastify/fastify/issues/7009: User reports that reply types reject streams and buffers accepted at runtime.
- reddit.com/r/node/comments/1m3uu14/hono_or_fastify_and_why: Users praise Fastify’s plugins and hooks, and some prefer Hono’s types and API.
Holds up over time8.6
Will it still be a good choice in two years?
Claude Opus 5.5: 8.5, likely 7.5 to 9.0
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.
- github commitsLastYear/releasesLastYear: 357 commits and 32 releases in the last year
- github openIssues/closedIssues: 64 open against 2,153 closed issues
- releasebot.io/updates/fastify: Ongoing v5 patch releases and v6 alphas
- openjsf.org/blog/fastifys-growth-and-success: Under the OpenJS Foundation
GPT-6.2 Sol: 8.6, likely 7.3 to 9.5
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.
- github commitsLastYear, releasesLastYear, openPullRequests: 357 commits, 32 releases, and 142 open pull requests.
- github.com/fastify/fastify: Lists five leads, two maintenance sponsors, and OpenJS hosting.
- github.com/fastify/.github/blob/main/GOVERNANCE.md: Lead maintainers issue core releases and manage project funds.
- github.com/fastify/fastify/pull/7112: A sampled v5 backport was reviewed and merged the day it opened.
- fastify.dev/docs/latest/Reference/LTS: The support policy allows documented breaking security changes.
- github.com/fastify/fastify/issues/6834: The v6 plan raises the Node.js minimum and coordinates plugin upgrades.
- github.com/fastify/fastify/releases: Stable v5 backports and v6 alpha releases are both active.
Used widely6.6
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- npm downloadsLast4Weeks: 90M now against 13M a year ago, a ratio of about 6.9
- dependents: 16,712 repos and 3,270 packages
- github stars: 37k stars, in the same range as Koa and Hono
- peers: Express dependents 1.85M and Hono downloads 425M
GPT-6.2 Sol: 6.2, likely 4.9 to 7.5
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.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: About 6.95 times prior-year downloads versus a 4.1 times catalog median.
- dependents repos, packages; peers: Fastify has 16,712 indexed repos and 3,270 packages. Express and NestJS lead on repos.
- github stars: 37,449 stars, near Hono and Koa and behind Express and NestJS.
- bluesky posts, top; peers blueskyPosts: 12 repository links, below Hono and Express. The top posts announce security fixes.
- github.com/nestjs/nest/blob/master/packages/platform-fastify/package.json: NestJS’s optional adapter installs Fastify as a dependency.
- survey.stackoverflow.co/2026/technology/data: Reported use rose from 2.9% in 2025 to 3.5% in 2026.
Vouched for7.9
Who stands behind it being good?
Claude Opus 5.5: 7.5, likely 6.5 to 8.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.
- thoughtworks.com/en-cl/radar/languages-and-frameworks/fastify: In the Adopt ring, with no significant downsides compared with Express
- 2025.stateofjs.com/en-US/libraries/back-end-frameworks: Top satisfaction went to Hono, Nitro and Elysia
- tech.trivago.com/tags/nodejs: Production migration showed no performance improvement
- NestJS platform-fastify: A major framework builds on it as an adapter
GPT-6.2 Sol: 8.2, likely 7.0 to 9.1
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.
- thoughtworks.com/radar/languages-and-frameworks/fastify: Thoughtworks reports positive project experience and measurable performance gains.
- 2025.stateofjs.com/en-US/libraries: Fastify scored 86% satisfaction and Hono scored 95%.
- docs.nestjs.com/http/performance: NestJS supports Fastify and now recommends its own Node adapter.
- vercel.com/docs/frameworks/backend/fastify: Vercel supports zero-configuration Fastify deployments.
- github.com/arjaythedev/js-runtimes-benchmark: An independent API load test supports the Node.js performance advantage.
Safe7.0
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- advisories last24Months: 14 advisories, including HIGH validation and auth bypasses in Sep 2026
- scorecard: Score 8.4, with weaker checks for SAST (3) and pinned dependencies (5)
- advisories.gitlab.com/npm/fastify/CVE-2026-33806: Content-Type bypass was a regression of an earlier fix
- npm dependencies: 15 direct dependencies, MIT licence
GPT-6.2 Sol: 7.5, likely 6.2 to 8.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.
- npm license, dependencies: MIT license and 15 direct runtime dependencies.
- advisories last24Months, recent: 14 advisories in two years, including three recent high-severity findings.
- scorecard score, checks: 8.4 overall. Fuzzing 10, dependency pinning 5, branch protection 6, and static analysis 3.
- github.com/fastify/fastify/releases: Security releases 5.12.2, 5.12.5, and 5.12.6 cover the five listed advisories.
- github.com/fastify/fastify/releases/tag/v5.12.8: The latest stable release includes a further security fix and a verified commit signature.
- github.com/fastify/.github/blob/main/GOVERNANCE.md: Core release responsibility belongs to the lead maintainer team.
- openjsf.org/blog/openjs-security-update-q1-26: OpenJS helped document Fastify’s threat model and coordinate fixes.
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
- npm downloads, 4 weeks
- 90M ×6.9 in a year
- GitHub stars
- 37k
- Commits, 12 months
- 357
- npm version
- 5.12.8 Nov 2026
- Versions, 12 months
- 26
- Advisories, 24 months
- 14 of 18 ever
- OpenSSF Scorecard
- 8.4 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (fastify/fastify), npm (fastify), OSV and the OpenSSF Scorecard.