xmisao / bestgems.org

Gem ranking and downloads trends providing service.
https://bestgems.org/
GNU Affero General Public License v3.0
99 stars 14 forks source link

[Suggestion] Make bestgems.org have an accompanying library and executable as well as a .gem file, and offering some of the library functionality to other projects #116

Open rubyFeedback opened 2 years ago

rubyFeedback commented 2 years ago

Hey there xmisao,

I have been using bestgems.org for quite some time and it is quite useful.

I like the daily downloads functionality.

I recently suggested this to the rubygems.org maintainers.

That is, to show the download trends for projects - not as detailed as bestgems.org but just as an overall trend.

This got me thinking: what if bestgems.org could provide this via library + bin/ executable? like:

bestgems --statistics-for=rack # show download statistics for rack

Or something like that.

Additionally if that code could be re-used, so we can e. g. tap into bestgems.org and its library, and use that for our own projects. Or, simpler, on rubygems.org.

I am not sure how much work that would mean. You probably have the project more in maintenance work, so no problem. But if you ever become more active again then perhaps you could think about this a bit e. g. to "modularize" on bestgems.org and allow other projects to easily re-use it (in particular rubygems.org). Perhaps not all of bestgems.org, but things that are simple and useful for others, such as download trends. That one is quite useful to know about. People can then see which versions of a gem was more popular which can help them optimise gems eventually.

svdasein commented 2 years ago

@rubyFeedback fyi you actually can grab download history from bestgems.org - see this: https://github.com/xmisao/bestgems.org/wiki/BestGems-API-v1-Specification

Also - I'm just now building this: http://gemdex.org - it might help.