Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download stats #10

Open
walling opened this issue Sep 23, 2013 · 3 comments
Open

Download stats #10

walling opened this issue Sep 23, 2013 · 3 comments

Comments

@walling
Copy link
Contributor

walling commented Sep 23, 2013

What about including download stats as a parameter correlating to usage of a given module?

The raw data for node-modules package: http://isaacs.iriscouch.com/downloads/_design/app/_view/pkg?group_level=2&start_key=%5B%22node-modules%22%5D&end_key=%5B%22node-modules%22%2C%7B%7D%5D

Getting the data using request library:

request('http://isaacs.iriscouch.com/downloads/_design/app/_view/pkg', {
  json: true,
  qs: {
    group_level: '2',
    start_key: JSON.stringify([name]),
    end_key: JSON.stringify([name, {}])
  }
}, function(error, response, body) {
  // ...
});

The stats should be aggregated (per week, per month, per year).

@pvorb
Copy link

pvorb commented Jan 24, 2014

You can see the download stats here: http://npm-stat.com/

@espadrine
Copy link

@pvorb I receive the following message for the request and for the localeval libraries (and presumably, for many more):

An error occured. Please try to reload the page or contact me at [email protected] if that doesn't help.

@pvorb
Copy link

pvorb commented Feb 14, 2014

@espadrine see npm/npm-www#328

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants