Git Product home page Git Product logo

ghcr-pulls's Introduction

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

ghcr-pulls's People

Contributors

ipitio avatar kroese avatar jovezhong avatar razonyang avatar reneleonhardt avatar boc-the-git avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.