moiva
moiva copied to clipboard
Add "Share of Registry" as a metric
Laurie Voss (a co-founder of NPM) has previously talked about a metric he calls "share of registry": downloads for a given package, divided by total downloads for all of the registry:
- https://youtu.be/gChULw-uEjY?t=1241
Per Laurie, NPM offers the "total download" stats for a time range via its API:
- https://api.npmjs.org/downloads/range/2015-01-01:2015-12-31
It would be really neat to download and calculate the "share of registry" metric for each package being compared.