From 53fd513c95d525339edd077db02df79fd689495a Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 7 Sep 2026 12:46:33 +0000 Subject: [PATCH 1/2] docs: swap the rate-limited downloads badge for pepy.tech The profile badge row rendered "downloads | rate limited by upstream service" instead of a number. shields.io's pypi/dm endpoint reads pypistats on demand and is throttled, so the badge fails in exactly the place it is seen most. pepy.tech serves a pre-rendered badge and is what commit-check's own README already uses (README.md:6), down to the same brand blue, so this is the pattern the project had already settled on rather than a new dependency. The link follows the badge to the pepy project page, as it does there. The colour is spelled `%232c9ccd` because pepy takes a literal CSS colour and the `#` has to survive the query string; shields.io accepted a bare `2c9ccd`, which is why the two looked different. Verified against commit-check/README.md rather than by fetching: static.pepy.tech is refused by this sandbox's egress proxy. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_018xYa7m3qup5wyN5MaXFgf6 --- profile/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile/README.md b/profile/README.md index 946487c..99b17ad 100644 --- a/profile/README.md +++ b/profile/README.md @@ -10,7 +10,7 @@ One config file. Every place your team commits. [![PyPI](https://img.shields.io/pypi/v/commit-check?logo=pypi&logoColor=white&color=2c9ccd)](https://pypi.org/project/commit-check/) -[![Downloads](https://img.shields.io/pypi/dm/commit-check?color=2c9ccd)](https://pypi.org/project/commit-check/) +[![Downloads](https://static.pepy.tech/badge/commit-check/month?color=%232c9ccd)](https://pepy.tech/projects/commit-check) [![Marketplace](https://img.shields.io/badge/Marketplace-commit--check--action-2c9ccd?logo=githubactions&logoColor=white)](https://github.com/marketplace/actions/commit-check-action) [![License: MIT](https://img.shields.io/badge/License-MIT-2c9ccd.svg)](https://opensource.org/licenses/MIT) [![Website](https://img.shields.io/badge/Website-commit--check.com-2c9ccd?logo=git&logoColor=white)](https://commit-check.com) From 25bbfb5c41d967d689e1b2af7aae08c5b97b4e24 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 7 Sep 2026 12:56:16 +0000 Subject: [PATCH 2/2] docs: render the downloads badge through shields.io, not pepy directly The previous commit in this branch moved the badge to pepy's own renderer and carried the `?color=%232c9ccd` that commit-check's README uses. The badge came back the right number and the wrong blue, visibly off from the four shields.io badges beside it. pepy's source says why. `/badge//month` is served by `generate_last_30_days_badge`, which calls the badge builder with `right_color="blue"` hardcoded and reads no colour from the query string at all: s = badge(left_text="downloads/month", right_text=downloads, right_color="blue") Colour is only configurable on pepy's separate `personalized-badge` endpoint, which takes `left_color`/`right_color`. `?color=` has never done anything on either. The same dead parameter is in commit-check/README.md:6, where the badge is also rendering pepy's default blue rather than the brand colour. So the badge now goes through shields.io's own Pepy endpoint -- `/pepy/dt/:packageName`, per services/pepy/pepy-downloads.service.js -- which keeps pepy as the data source but hands the drawing to the same renderer as the PyPI, Marketplace, License and Website badges on the row. The colour cannot drift from theirs because it is the same code and the same `2c9ccd`, spelled the way they spell it, without the `%23` pepy would have needed. Two consequences worth knowing. The number is now total downloads rather than the last thirty days, because that route has no period parameter. And it does not inherit the throttling this branch set out to fix: shields.io queries api.pepy.tech with its own API key and caches for eight hours, rather than reading pypistats on demand the way the original img.shields.io/pypi/dm badge did. Neither badge could be rendered here to compare -- the egress proxy refuses static.pepy.tech, img.shields.io and shields.io alike -- so this rests on the two services' source rather than on a screenshot. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_018xYa7m3qup5wyN5MaXFgf6 --- profile/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile/README.md b/profile/README.md index 99b17ad..4b0a2c3 100644 --- a/profile/README.md +++ b/profile/README.md @@ -10,7 +10,7 @@ One config file. Every place your team commits. [![PyPI](https://img.shields.io/pypi/v/commit-check?logo=pypi&logoColor=white&color=2c9ccd)](https://pypi.org/project/commit-check/) -[![Downloads](https://static.pepy.tech/badge/commit-check/month?color=%232c9ccd)](https://pepy.tech/projects/commit-check) +[![Downloads](https://img.shields.io/pepy/dt/commit-check?color=2c9ccd)](https://pepy.tech/projects/commit-check) [![Marketplace](https://img.shields.io/badge/Marketplace-commit--check--action-2c9ccd?logo=githubactions&logoColor=white)](https://github.com/marketplace/actions/commit-check-action) [![License: MIT](https://img.shields.io/badge/License-MIT-2c9ccd.svg)](https://opensource.org/licenses/MIT) [![Website](https://img.shields.io/badge/Website-commit--check.com-2c9ccd?logo=git&logoColor=white)](https://commit-check.com)