Things I found in the npm repo — for real
Some of you may remember the fake/satirical blog post “I Peeked Into My Node_Modules Directory And You Won’t Believe What Happened Next”. While it was quite funny, most of the stuff presented in it was obviously fake. It did however spark some interest, and I decided to take a closer look at the npm repo. Here are some things your probably didn’t know.
I downloaded the latest version of all packages without their dependencies, and these are the numbers.
Number of packages
- 295GB unpacked. The average unpacked package size is around 837KB, but the 100 largest packages has an average size of 321MB, while the 1000 largest have an average size of 116MB. 407 packages are over 100MB, while 5211 are over 10MB.
- 99.7GB gzipped. The average gzipped package size is 177KB, but the largest 100 files have an average size of 124MB, while the 1000 largest have an average size of 46MB. 72 packages are over 100MB, while 2103 are over 10MB.
Largest packages gzipped (wire size)
Larges packages unpacked (disk size)
What’s in them?
mongodump_meteor: Well it’s sort of in the name. There are two copies of a 306MB MongoDB database
quirkbot-avr-gcc: a bunch of tools compiled for win32, linux32, linux64 and darwin-x64
elm-egine-core: lots of binary libraries
public-domain-nypl-captures: huge JSON-files
react-native-awesome-card-io: Looks like android and iOS libraries
vplayer: a 27MB and a 158MB .mp4, where shortest seems to be a commercial and the largest seems to be a video of an internal company presentation
neyka: images, fonts, bower components