Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website: Add download statistics page #588

Closed
damienalexandre opened this issue Nov 29, 2024 · 3 comments
Closed

Website: Add download statistics page #588

damienalexandre opened this issue Nov 29, 2024 · 3 comments

Comments

@damienalexandre
Copy link
Member

Just for fun we could add a download stats page on the website.

A bit like https://symfony.com/stats/downloads

Based on Github API we can extract the download for each type of releases.

$ gh api /repos/jolicode/castor/releases | jq ".[] | {name: .name, assets: [.assets[] | {name: .name, count: .download_count}]}"

This API gives for example, for each release:

{
  "name": "Release v0.18.2",
  "assets": [
    {
      "name": "castor.linux-arm64.phar",
      "count": 3
    },
    {
      "name": "castor.darwin-amd64",
      "count": 9
    },
    {
      "name": "castor.windows-amd64.phar",
      "count": 25
    },
    {
      "name": "castor.darwin-amd64.phar",
      "count": 33
    },
    {
      "name": "castor.darwin-arm64.phar",
      "count": 86
    },
    {
      "name": "castor.linux-amd64",
      "count": 3940
    },
    {
      "name": "castor.linux-amd64.phar",
      "count": 10928
    }
...
@damienalexandre damienalexandre changed the title Add download statistics page Website: Add download statistics page Nov 29, 2024
@lyrixx
Copy link
Member

lyrixx commented Jan 27, 2025

Would you like to contribute it?

@damienalexandre
Copy link
Member Author

I wish but I will not have the time, so anyone should feel free to try this :-)

@lyrixx
Copy link
Member

lyrixx commented Jan 27, 2025

Okay, I'm closing this issue, because it didn't get much traction for 2 months.

I agree it would be cool, but it does not bring anything useful to keep it open.

Thanks for the idea :)

@lyrixx lyrixx closed this as not planned Won't fix, can't repro, duplicate, stale Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants