Hi,
I know that this was discussed before and that a download count isn't a very accurate metric but:
Cheers
Thomas
Previous request: https://github.com/dart-lang/pub-dartlang-dart/issues/757
@isoos After discussion with @mit-mit this discussion is open again.
Jonas to look into what data we gather today for this, incl. if the current counts are segmented by time
The data is coming from the dartlang_pub_logs.external_rollup table. The popularity data is fetched using a very large database query in dartty_package_query/bin/_shared.dart, which groups the data by week and flavor. The actual table entries contains the package, the client IP, whether the package was used directly / by dev dependency / through flutter, and whether the client was in a known environment (travis, etc.).
@kevmoo Can you tell us more about the backing database for package requests? dart_package_query is a google internal package right now, are there any risks in making it public or e.g. giving @isoos access?
The popularity data itself is uploaded as "votes", maybe not quite presentable as "download counts". I would guess that the pub site itself has access to the database and could itself do a query like the popularity data script.
http://libraries.io allows you to see how many projects are dependent on your dart package. e.g https://libraries.io/pub/http , you can even drill down and see see usage by version e.g https://libraries.io/pub/http/usage
@mrmcq2u Yes but it doesn't give me a feeling on how popular my project is, how many users it has which is an important metric for the motivation of a maintainer.
@escamoteur I think the problem with download counts is explained fairly well in #757, I think if you want a more thorough idea of how many people are using your package the best bet is seeing how many packages depend on it. It's not perfect but I can't think of a better solution myself :(
@mrmcq2u Looking at the number of other packages that use your package does not help if you package is typically used be apps and not be public packages
@kevmoo - wonder why you closed this and marked as duplicate of an already closed one?
The answer provided by @isoos in the other thread is unacceptable (blaming CI).
Raw counts are used in Ruby, PHP, Rust, etc. Not sure what the harm is in providing the data.
@davidwparker that's the original issue + discussion + justification. We'd like to avoid covering the same topic many times.
We've reconsidered this, and are looking into options for supporting this. The current tracking issue is https://github.com/dart-lang/pub-dev/issues/2714.
Most helpful comment
Jonas to look into what data we gather today for this, incl. if the current counts are segmented by time