HaxeFoundation / haxelib

The Haxe library manager
https://lib.haxe.org/
MIT License
172 stars 78 forks source link

lib.haxe.org weekly downloads ? #614

Open flashultra opened 6 years ago

flashultra commented 6 years ago

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

markknol commented 6 years ago

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?

flashultra commented 6 years ago

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.

markknol commented 6 years ago

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

flashultra commented 6 years ago

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

andyli commented 6 years ago

I think so. PR welcome :)

flashultra commented 6 years ago

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

andyli commented 6 years ago

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