8000 GitHub - OfficialKris/ghcr-pulls: GHCR Pulls Badge JSON Endpoint
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

OfficialKris/ghcr-pulls

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghcr.io pulls

JSON Endpoint for GHCR Badges

Makes the pull count badge possible for these ghcr.io packages:

arevindh/pihole-speedtest/pihole-speedtest drakkan/sftpgo/sftpgo aquasecurity/trivy/trivy FlareSolverr/FlareSolverr/flaresolverr Mailu/Mailu/clamav k3d-io/k3d/k3d-tools gethomepage/homepage/homepage ajnart/homarr/homarr openfaas/faas/basic-auth plankanban/planka/planka mealie-recipes/mealie/mealie containerd/containerd/busybox containrrr/watchtower/watchtower coollabsio/coolify/coolify mastodon/mastodon/mastodon authelia/authelia/authelia docker-mailserver/docker-mailserver/docker-mailserver amacneil/dbmate/dbmate br3ndonland/inboard/inboard fission/fission/fission-bundle anchore/syft/syft Lissy93/dashy/dashy TwiN/gatus/gatus dani-garcia/vaultwarden/vaultwarden ko-build/ko/ko argoproj/argo-cd/argo-cd%252Fargocd usememos/memos/memos nicolaka/netshoot/netshoot pi-hole/docker-pi-hole/pihole LizardByte/Sunshine/sunshine nginx-proxy/nginx-proxy/nginx-proxy serge-chat/serge/serge n8n-io/n8n/n8n labring/sealos/sealos-patch hugomods/docker/hugo benbusby/whoogle-search/whoogle-search anchore/grype/grype TandoorRecipes/recipes/recipes gogs/gogs/gogs m1k1o/neko/neko%252Fxfce telekom-security/tpotce/conpot Stirling-Tools/Stirling-PDF/s-pdf netdata/netdata/netdata screego/server/server timeplus-io/proton/proton nginx-proxy/docker-gen/docker-gen qemus/qemu-docker/qemu-docker nginx-proxy/acme-companion/acme-companion eggplants/ghcr-badge/ghcr-badge vdsm/virtual-dsm/virtual-dsm home-assistant/operating-system/haos-builder qemus/qemu-host/qemu-host dockur/windows/windows dockur/lemmy/lemmy dockur/lemmy-ui/lemmy-ui dobtc/btc-rpc-proxy/btc-rpc-proxy browserless/browserless/firefox dockur/snort/snort ropenttd/docker_openttd/openttd dockur/portainer-backup/portainer-backup dobtc/bitcoin/bitcoin dockur/windows-arm/windows-arm dockur/tor/tor QuivrHQ/quivr/quivr macbre/push-to-ghcr/push-to-ghcr dockur/strfry/strfry qemus/qemu-arm/qemu-arm dockur/munin/munin dockur/chrony/chrony dockur/samba/samba dobtc/lndmanage/lndmanage dockur/statping/statping dockur/dnsmasq/dnsmasq emissary-ingress/emissary/emissary dockur/macos/macos

If we don't yet follow an image, you can either:

  • open an issue or
  • add it on a new line in pkg.txt on your own fork here and make a pull request.

Custom Badges

To make a badge, you can modify one of the badges above or generate one with something like shields.io and these parameters:

URL

https://raw.githubusercontent.com/ipitio/ghcr-pulls/master/index.json

JSONPath

You can show either a pretty value like 12K or the raw number like 12345.

Pretty Count
$[?(@.owner=="<USER>" && @.repo=="<REPO>" && @.image=="<IMAGE>")].pulls
Raw Count
$[?(@.owner=="<USER>" && @.repo=="<REPO>" && @.image=="<IMAGE>")].raw_pulls

Further Study

GHCR itself doesn't provide an API endpoint for the pull count, so Github Packages is scraped twice daily for every image in pkg.txt. In addition to the latest stats, the index also contains a history of the raw pull counts for each image, starting on 2024-06-10, should you find that useful or interesting. Should the pulls for each tag be kept individually as well?

TODO

Feel free to help with any of these:

  • Make a GitHub Pages site that integrates ghcr-pulls with eggplants/ghcr-badge (or provides an alternative)
  • Show each version:
{
    ...,
    "version": {
        "<version>": {
            "raw_pulls": "365",
            "raw_pulls_day": "1",
            "raw_pulls_week": "7",
            "raw_pulls_month": "30",
            "raw_pulls_all": {
                "<date>": "365"
            }
        }
    }
}
  • Any other improvements or ideas you have

About

GHCR Pulls Badge JSON Endpoint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%
0