-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
add stats section #52
Comments
I can help with this if you are interested. Is there an API endpoint that would provide this data? |
I don't think there's an API that gets both installs and plugins. Installs would come from npm and plugins would come from npmsearch. The companies and seconds saved would be static, I'm guessing. |
API for npm downloads - https://github.com/npm/registry/blob/master/docs/download-counts.mdExample: {
"downloads": 159388,
"start": "2017-10-25",
"end": "2017-10-25",
"package": "gulp"
} Note: Maximum amount of data is the last 365 days so maybe it could be the number of installs in the last month or something? |
And I have found the plugin count based on a search. API for Related Plurgins - https://api-docs.npms.io/#api-Search-ExecuteSearchQueryProbably could grab the total out of the response. Example: {
"total": 11424,
"results": [{
"package": {
"name": "gulp",
"scope": "unscoped",
"version": "3.9.1",
"description": "The streaming build system",
"date": "2016-02-08T18:50:16.472Z",
"links": {
"npm": "https://www.npmjs.com/package/gulp",
"homepage": "http://gulpjs.com",
"repository": "https://github.com/gulpjs/gulp",
"bugs": "https://github.com/gulpjs/gulp/issues"
},
"author": {
"name": "Fractal",
"email": "contact@wearefractal.com",
"url": "http://wearefractal.com/"
},
"publisher": {
"username": "phated",
"email": "blaine@iceddev.com"
},
"maintainers": [{
"username": "contra",
"email": "yo@contra.io"
},
{
"username": "phated",
"email": "blaine.bublitz@gmail.com"
}
]
},
"flags": {
"insecure": 2
},
"score": {
"final": 0.7768170783638859,
"detail": {
"quality": 0.8562822998580506,
"popularity": 0.8196480107850486,
"maintenance": 0.6658730989477251
}
},
"searchScore": 100000.78,
{
....more packages.....
}
}]
} |
Closed by #75 thanks to @SomethingNew71 |
Mockup:
The text was updated successfully, but these errors were encountered: