</>PackageGraphPackageGraph

fastify

npmv5.12.3TypeScript

Fast and low overhead web framework, for Node.js

Adopt with care

fastify is usable, with caveats. Pulls in 32 transitive packages, about 5.1 MB installed (at least — some of the tree is still being crawled).

  • AAdoption: grade A, Excellent.

    8.9M downloads per week and 4 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 5 days ago. 41 releases in the last 2 years.

  • CWeight: grade C, Fair — worth a look.

    Pulls in 32 transitive packages, about 5.1 MB installed (at least — some of the tree is still being crawled).

  • ASupply chain: grade A, Excellent.

    No install scripts, 6 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding fastify to a project.

15
Direct dependencies

Runtime packages this one declares itself.

32
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

5.1 MB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

BSD-3-ClauseISCMIT

Every license you inherit by installing fastify, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the fastify README.

// Require the framework and instantiate it

// ESM
import Fastify from 'fastify'

const fastify = Fastify({
  logger: true
})
// CommonJS
const fastify = require('fastify')({
  logger: true
})

// Declare a route
Example truncated — see the full README.

fastify vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
fastifythis page8.9M4MIT5 days ago
zod-to-json-schema01ISC1 day ago
express92.8M17MIT1 day ago
next40.6M0MIT1 day ago
koa6.8M0MIT1 day ago
hono04MIT1 day ago

Dependencies

Declared by fastify v5.12.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (35)

@jsumners/line-reporter ^1.0.1@stylistic/eslint-plugin ^5.1.0@stylistic/eslint-plugin-js ^4.1.0@types/node ^26.0.1JSONStream ^1.3.5ajv ^8.12.0ajv-errors ^3.0.0ajv-formats ^3.0.1ajv-i18n ^4.2.0ajv-merge-patch ^5.0.1autocannon ^8.0.0borp ^1.0.0branch-comparer ^1.1.0concurrently ^10.0.0cross-env ^10.0.0eslint ^9.0.0fast-json-body ^1.1.0fastify-plugin ^6.0.0fastify-tsconfig ^3.0.0fluent-json-schema ^6.0.0h2url ^0.2.0http-errors ^2.0.0joi ^18.0.1json-schema-to-ts ^3.0.1markdownlint-cli2 ^0.23.0neostandard ^0.12.0node-forge ^1.3.1proxyquire ^2.1.3split2 ^4.2.0tstyche ^7.0.0typebox ^1.0.81typescript ~6.0.2undici ^7.11.0vary ^1.1.2yup ^1.4.0

Used by

Popular packages that depend on fastify.

Relationship graph

Dependencies (left) and dependents (right) of fastify.

Frequently installed together

Release history

39 releases in the last two years, typically about 3 days apart.

Recent versions of fastify
VersionPublishedSizeLicense
6.0.0-alpha.35 days ago2.8 MBMIT
5.12.3latest5 days ago2.8 MBMIT
5.12.25 days ago2.8 MBMIT
6.0.0-alpha.222 days ago2.8 MBMIT
5.12.122 days ago2.8 MBMIT
5.12.027 days ago2.8 MBMIT
6.0.0-alpha.127 days ago2.7 MBMIT
6.0.0-alpha.029 days ago2.7 MBMIT
5.11.31 month ago2.8 MBMIT
5.11.21 month ago2.8 MBMIT
5.11.11 month ago2.8 MBMIT
5.11.01 month ago2.8 MBMIT
5.10.02 months ago2.7 MBMIT
5.9.02 months ago2.7 MBMIT
5.8.54 months ago2.6 MBMIT

Overview

fastify is an npm package that fast and low overhead web framework, for Node.js. It is extremely widely used, with about 8.9M downloads per week and 4 known dependents in the graph. The latest version is 5.12.3, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need fast and low overhead web framework, for Node.js and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (8.9M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (50 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use fastify?

fastify is usable, with caveats. Pulls in 32 transitive packages, about 5.1 MB installed (at least — some of the tree is still being crawled).

How do I install fastify?

Run `npm install fastify` to add fastify to your npm project.

How many dependencies does fastify have?

fastify declares 50 direct dependencies and pulls in 32 packages in total once its runtime tree is resolved totalling about 5.1 MB on disk.

What license is fastify released under?

fastify is distributed under the MIT license. Its dependency tree also includes: BSD-3-Clause, ISC, MIT.

How popular is fastify?

fastify has approximately 8,946,475 downloads per week and 4 known dependent packages.

Is fastify still maintained?

The most recent release of fastify (v5.12.3) was published 5 days ago.

Does fastify run install scripts?

No. fastify does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.