moiva icon indicating copy to clipboard operation
moiva copied to clipboard

Add "Share of Registry" as a metric

Open markerikson opened this issue 3 years ago • 0 comments

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.

markerikson avatar Jul 06 '22 04:07 markerikson