NPM download stats are down

François Best • 21 September 2023 • 2 min read

I noticed the problem on 2023-09-14, while I was working on my NPM package embed.

It looks like this, showing NPM download stats for the last 30 days:

Avatar for GitHub account facebookfacebook/react

243K
7.1B
19.2.4
MIT

The library for web and native user interfaces.

$ pnpm add react
$ yarn add react
$ npm install react

Version rolloutLast week

18.3.1
27M (32%)
19.2.3
17M (20%)
19.2.4
13M (16%)
18.2.0
7.5M (09%)
19.1.0
3.8M (04%)
11,619,10216 Jan6,615,30117 Jan6,420,27218 Jan10,950,43119 Jan10,385,66220 Jan10,953,71621 Jan13,677,33122 Jan12,123,48323 Jan6,279,78124 Jan4,425,17225 Jan10,593,38526 Jan12,293,99927 Jan12,581,99328 Jan12,297,55329 Jan11,281,64730 Jan6,705,71131 Jan6,791,37001 Feb12,651,30902 Feb15,027,48203 Feb15,290,69904 Feb15,471,14505 Feb13,766,10606 Feb7,479,02707 Feb5,910,02808 Feb11,795,17709 Feb12,671,90210 Feb12,214,73911 Feb12,027,14412 Feb10,942,09113 Feb6,703,06814 Feb317,945,826Last 30 days

After seeing the latest download stats zero-out, I thought it was a bug in my code, but a quick call to the NPM registry API confirmed there’s an issue across the whole registry:

$ curl -s https://api.npmjs.org/downloads/range/2023-09-12:2023-09-20/ | jq .
 
{
    "start": "2023-09-12",
    "end": "2023-09-20",
    "downloads": [
        {
            "downloads": 10511123926,
            "day": "2023-09-12"
        },
        {
            "downloads": 0,
            "day": "2023-09-13"
        },
        {
            "downloads": 0,
            "day": "2023-09-14"
        },
        {
            "downloads": 8912767625,
            "day": "2023-09-15"
        },
        {
            "downloads": 2444583811,
            "day": "2023-09-16"
        },
        {
            "downloads": 2260617731,
            "day": "2023-09-17"
        },
        {
            "downloads": 0,
            "day": "2023-09-18"
        },
        {
            "downloads": 0,
            "day": "2023-09-19"
        },
        {
            "downloads": 0,
            "day": "2023-09-20"
        }
    ]
}

And indeed, other popular packages show the same decline:

Avatar for GitHub account vuejsvuejs/core

53K
1.5B
3.5.28
MIT

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

$ pnpm add vue
$ yarn add vue
$ npm install vue

Version rolloutLast week

3.5.27
2M (23%)
3.5.13
944K (11%)
2.7.16
939K (11%)
3.5.26
547K (06%)
3.5.22
452K (05%)
1,297,02516 Jan468,94617 Jan468,25918 Jan1,422,35219 Jan1,518,18620 Jan1,577,19521 Jan1,535,36222 Jan1,357,24223 Jan478,22624 Jan487,39325 Jan1,476,56126 Jan1,583,54827 Jan1,545,25128 Jan1,539,05229 Jan1,371,53730 Jan494,02231 Jan515,47701 Feb1,453,73202 Feb1,630,34403 Feb1,585,66504 Feb1,601,40905 Feb1,411,63006 Feb520,67307 Feb533,17308 Feb1,566,68209 Feb1,708,37010 Feb1,607,38611 Feb1,629,56212 Feb1,381,89513 Feb527,84014 Feb36,293,995Last 30 days

Avatar for GitHub account angularangular/angular

100K
1.1B
21.1.4
MIT

Deliver web apps with confidence 🚀

$ pnpm add @angular/core
$ yarn add @angular/core
$ npm install @angular/core

Version rolloutLast week

20.3.16
413K (09%)
9.0.0
342K (07%)
19.2.18
334K (07%)
21.1.3
198K (04%)
17.3.12
191K (04%)
722,19216 Jan173,65917 Jan168,69618 Jan729,45119 Jan814,17820 Jan828,93021 Jan845,57922 Jan747,81423 Jan169,26724 Jan174,78125 Jan727,41526 Jan860,46227 Jan872,94728 Jan859,36129 Jan758,71330 Jan183,74931 Jan200,30901 Feb800,84102 Feb896,49103 Feb866,58104 Feb867,76505 Feb767,25706 Feb194,02707 Feb203,18208 Feb815,26309 Feb913,47110 Feb881,36211 Feb879,97212 Feb764,99813 Feb191,76214 Feb18,880,475Last 30 days

After a couple of days, it started to show on NPM’s own website:

NPM download stats for the react package, with a visible drop towards the end of the line

Reddit and Hacker News users were quick to react, with some hilarious comments:

Bun 1.0 is out, so everyone is switching to that.

You should use PNPM anyway.

Some folks were prompt to draw ominous conclusions:

Well, that confirms it, javascript and front end development is dead. I'll start looking for a new job.
drpossum | Hacker News

This proves React is dead, you should use Svelte now.

Someone who didn’t notice Svelte stats were also down:

Avatar for GitHub account sveltejssveltejs/svelte

web development for the rest of us

$ pnpm add svelte
$ yarn add svelte
$ npm install svelte

Version rolloutLast week

5.49.1
244K (09%)
4.2.2
225K (08%)
4.2.20
203K (07%)
5.34.9
157K (06%)
5.49.2
155K (06%)
411,01916 Jan177,54517 Jan180,62118 Jan402,64919 Jan427,41520 Jan425,84221 Jan451,25822 Jan391,51123 Jan176,26124 Jan172,09425 Jan404,11726 Jan473,71327 Jan473,11528 Jan464,35629 Jan428,88530 Jan185,28931 Jan202,18201 Feb403,33802 Feb499,94003 Feb472,20104 Feb475,65905 Feb440,54206 Feb206,10007 Feb203,03908 Feb440,06409 Feb492,35810 Feb484,78711 Feb492,66112 Feb439,43413 Feb217,92614 Feb11,115,921Last 30 days

Official response from NPM

I contacted NPM support on 2023-09-15, but didn’t get much of a useful response:

Yes, we also see the zero download count on different packages.

This issue remains under investigation.

We will let you know once we have an update.

Resolution

As of 2023-09-24, the problem seems to have been resolved. Stats are returning to normal, and previous zero values have been restored for all tested packages.


François Best

Freelance developer & founder