haxe.org icon indicating copy to clipboard operation
haxe.org copied to clipboard

lib.haxe.org weekly downloads ?

Open flashultra opened this issue 5 years ago • 7 comments

At the moment is available stats base on version and include all downloads for that version ( at example https://lib.haxe.org/p/haxe-crypto/versions/ ) Is it possible to be added weekly download statistics similar at npmjs ? Example: https://www.npmjs.com/package/crypto-js

flashultra avatar Sep 20 '18 13:09 flashultra

No, this is at the moment not possible. How it works afaik is that we increase the download counter per version on each install and that's all information we have. We don't store specific date related install statistics.

@andyli You think it would be possible to do this?

markknol avatar Sep 21 '18 07:09 markknol

Also stats here https://lib.haxe.org/p/haxe-crypto/versions/ looks a little bit strange Dates are 2016/03 to 2016/12 , but last red dot ( version ) is somewhere in 2017 ( v. 0.0.7 - 1 year ago ) and have 51127 downloads. Looks like a bug.

flashultra avatar Sep 21 '18 09:09 flashultra

Hm I see what you mean, the last dot/latest release should be at current date in the stats.

markknol avatar Sep 21 '18 11:09 markknol

@andyli Do you think is useful to have weekly download statistics for lib.haxe.org ? ( similar to npmjs )

flashultra avatar Oct 25 '18 16:10 flashultra

I think so. PR welcome :)

andyli avatar Oct 25 '18 16:10 andyli

Where I can find information about Version.manager in Repo.hx ( haxelib) ? Obviously information for downloads came from : allVersions: info.versions, where var info = new Repo().infos(projectName); and in Repo.hx had var vl = Version.manager.search($project == p.id); and downloads : v.downloads, but I can't see Version.manager

flashultra avatar Oct 25 '18 18:10 flashultra

It's a record-macros (previously spod) thing.

andyli avatar Oct 26 '18 01:10 andyli