Skip to content
JS
Package

@fastify/error

A small utility, used by Fastify itself, for generating consistent error objects across your codebase and plugins.

v4.2.0, 1 Jun 2025MITCommonJSTypes: BundledHTTP servers and web frameworks
$ npm install @fastify/error

Key numbers

As of 25 Sept 2026
Weekly downloads
9.3m
+252% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v4.2.0
GitHub stars
135
23 forks
Open issues / PRs
2 / 3
Contributors
-
Commits, last 52 weeks
14

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 12.2m (25 Aug 2026)Low 1.8m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

9,272,465 downloads last week, 44,967,669 in the last month. The 12-month change of +252% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
011 in total
Latest version
4.2.0, 1 Jun 20251 year ago
First published
27 Apr 2022
Last push to GitHub
7 Aug 202648 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
3
Commits, last 52 weeks
14
Dependents on npm
141

Major versions

  1. v4 first release 4.0.0, 21 Jun 2024
  2. v3 first release 3.0.0, 23 May 2022
  3. v2 first release 2.0.0, 27 Apr 2022

Recent releases

VersionPublished
4.2.01 Jun 2025
4.1.012 Mar 2025
4.0.021 Jun 2024
3.4.14 Nov 2023
3.4.03 Oct 2023
3.3.023 Jun 2023
3.2.13 Jun 2023
3.2.07 Dec 2022
3.1.02 Dec 2022
3.0.023 May 2022
2.0.027 Apr 2022
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
36 kB
Dependencies (0)
None
npm install @fastify/error
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@fastify/error@4.2.0/
  • unpkghttps://unpkg.com/@fastify/error@4.2.0/
  • esm.shhttps://esm.sh/@fastify/error@4.2.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.