Skip to content

reneleonhardt/ghcr-pulls

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 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 mastodon/mastodon/mastodon coollabsio/coolify/coolify 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 nginx-proxy/acme-companion/acme-companion eggplants/ghcr-badge/ghcr-badge home-assistant/operating-system/haos-builder dockur/windows/windows ropenttd/docker_openttd/openttd browserless/browserless/firefox macbre/push-to-ghcr/push-to-ghcr QuivrHQ/quivr/quivr emissary-ingress/emissary/emissary

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

  • open an issue or pull request to add it to the master pkg.txt and/or
  • make a fork to start your own.

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?

About

GHCR Pulls Badge JSON Endpoint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%