News for hackers. Stuff that matters.
Re:NPM registry in numbers by phadej on Thursday September 18, 2014 @09:27AM (#8335044)
Short version: node.js of course!

A bit longer one:

One can fetch `jsverify` package metadata from http://registry.npmjs.org/jsverify and all current packages are listed in http://registry.npmjs.org/-/all (this one is special, its size is around 50MiB). Please cache your results, let's not DDoS the registry.

There are around one gigabyte of nice JSON data. After initial fetch you can traverse it using any tools you want. I naturally used node.js for that too.

Re:NPM registry in numbers by redidas on Thursday September 18, 2014 @12:09PM (#8335968)
If you'd rather work with a SQL database, here's a module that attempts to put NPM into a Postgres database: https://www.npmjs.org/package/npm-postgres-mashup
Re:NPM registry in numbers by phadej on Thursday September 18, 2014 @12:51PM (#8336222)
Wow, someone had time and motivation to write all of that boilerplate there. Yet e.g. the license parsing is very naive: compare https://github.com/npm/npm-www/blob/99020b5b3e21607dab24cd69... and https://github.com/rickbergfalk/npm-postgres-mashup/blob/56d...