Repository navigation
Add a daily download stats workflow for escalated.dev - #2
Merged
Merged
Conversation
Counts lifetime downloads for the official packages in download-stats/sources.json across Packagist, npm, PyPI (ClickHouse public dataset), RubyGems and GitHub release ZIPs, and publishes downloads.json on the download-stats branch for escalated.dev to sync. A source that fails or is rate limited keeps its last good count. The total is recomputed from the rows each run and stays null until every source has a valid count. Pull requests run the tests and a dry run against the live APIs without publishing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the ecosystem download counting for escalated.dev out of the web server and into a scheduled workflow here.
download-stats/sources.jsonis the single list of counted packages (15 today).download-stats/refresh.mjscounts lifetime downloads from Packagist, npm (365-day windows, completed windows cached), PyPI via the ClickHouse public dataset, RubyGems, and uploaded GitHub release ZIPs. No dependencies.downloads.jsonto a separatedownload-statsbranch somainhistory stays clean. escalated.dev syncs it fromhttps://raw.githubusercontent.com/escalated-dev/.github/download-stats/downloads.json.Pull requests run the 14 unit tests plus a dry run against the live APIs (the result is uploaded as the
downloadsartifact); nothing is published from a PR.