mybinder.org-user-guide icon indicating copy to clipboard operation
mybinder.org-user-guide copied to clipboard

Have badges showing usage numbers

Open deeplook opened this issue 6 years ago • 6 comments

Would it be possible to have badges indicating the number of builds and/or launches etc. for a given repository? Something along the lines of https://shields.io/#/examples/build.

deeplook avatar Dec 25 '18 10:12 deeplook

This would be awesome to do. For mybinder.org, we'd need to have some way to process & store https://archive.analytics.mybinder.org/, and dynamically generate the badges from there. This use case is the one I specifically had in mind when building the analytics setup...

yuvipanda avatar Dec 25 '18 18:12 yuvipanda

@yuvipanda could we have another page like https://statistics.analytics.mybinder.org/ that would contain data-dumps of the latest statistics of interest? E.g. we could have one continuously-updated dataset of "the total number of launches for each unique repository". This wouldn't be kept in a historical fashion, it'd just be updated daily.

choldgraf avatar Dec 26 '18 13:12 choldgraf

How do shields inject the number of launches? We can put JS into a SVG and fetch (a to be created file) called https://statistics.analytics.mybinder.org/<orgname>.json which contains the daily launch counts for all repos in the organisation as Chris suggested?

betatim avatar Dec 26 '18 14:12 betatim

@choldgraf yeah, that's something I'd love to do - 'derived analytics', ideally just at analytics.mybinder.org. The way I am thinking we might do this is to use something like papermill, write our analytics code in notebooks, and find some way to schedule run them every day or so.

Or maybe we can do something simpler and just run them as scripts, same way we do now for the archiver.

yuvipanda avatar Dec 27 '18 18:12 yuvipanda

What about extending the archiver to have a cronjob that creates the daily summary (either a script or a notebook via papermill)?

betatim avatar Dec 28 '18 22:12 betatim

@betatim the archiver already runs in a similar fashion, so we could totally do that. We can just extend the archiver.

yuvipanda avatar Dec 29 '18 22:12 yuvipanda