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

245k
0
19.2.6
MIT

The library for web and native user interfaces.

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

Version rolloutLast week

18.3.1
37m (29%)
19.2.6
23m (18%)
19.2.5
20m (15%)
19.2.4
15m (12%)
19.2.3
6.2m (05%)
22,110,773Apr 2721,906,188Apr 2821,688,858Apr 2920,123,015Apr 3016,230,866May 0110,806,131May 0210,867,887May 0319,462,852May 0420,987,259May 0521,251,702May 0622,011,461May 0719,818,763May 0811,751,379May 0911,210,577May 1021,870,894May 1123,284,098May 1223,002,779May 1321,557,144May 1420,356,013May 1511,975,869May 1612,071,258May 1722,061,163May 1823,111,057May 1923,035,583May 2022,527,385May 2120,513,357May 2211,751,361May 2312,354,157May 2418,363,758May 250May 26538,063,587Last 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

54k
0
3.5.35
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.34
2.8m (22%)
3.5.24
1.1m (09%)
2.7.16
1.1m (08%)
3.5.32
855k (07%)
3.5.33
693k (05%)
2,231,035Apr 272,148,336Apr 282,114,171Apr 291,975,955Apr 301,272,032May 01692,260May 02746,101May 031,899,895May 042,066,821May 052,107,670May 062,204,696May 071,869,516May 08881,472May 09810,554May 102,154,293May 112,361,737May 122,333,517May 131,974,910May 141,941,724May 15868,932May 16840,764May 172,265,751May 182,452,008May 192,425,829May 202,389,915May 212,011,682May 221,000,108May 231,002,381May 241,668,067May 250May 2650,712,132Last 30 days

Avatar for GitHub account angularangular/angular

100k
0
21.2.14
MIT

Deliver web apps with confidence 🚀

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

Version rolloutLast week

9.0.0
304k (06%)
21.2.13
296k (06%)
21.2.14
246k (05%)
20.3.18
196k (04%)
17.3.12
177k (03%)
1,023,780Apr 271,073,644Apr 281,043,518Apr 29971,333Apr 30579,645May 01246,045May 02236,381May 03889,450May 04978,898May 05980,459May 061,001,501May 07857,753May 08289,273May 09263,158May 101,005,110May 111,058,493May 121,073,781May 13873,281May 14850,646May 15289,278May 16265,710May 171,004,953May 181,044,238May 191,028,091May 201,026,007May 21905,007May 22262,708May 23283,626May 24709,227May 250May 2622,114,994Last 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.43.4
631k (11%)
5.55.9
512k (09%)
5.55.7
390k (07%)
4.2.2
361k (07%)
5.38.0
322k (06%)
711,072Apr 27711,232Apr 28789,994Apr 29722,561Apr 30580,395May 01351,308May 02425,888May 03725,099May 04757,936May 05737,301May 06735,633May 07653,591May 080May 09380,508May 10727,700May 11811,532May 12819,481May 13796,867May 14800,521May 15433,128May 16411,054May 17877,157May 181,029,259May 191,000,302May 20939,404May 21777,543May 22593,999May 23586,995May 24601,245May 250May 2619,488,705Last 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