docs: fix broken star history badge (no token required) - #179
Merged
Conversation
api.star-history.com/badge answers 404 "not ranked" for this repository, so that block rendered as a broken image. Swapped it for shields.io badges that read live counts straight from the GitHub API — stars, forks, contributors and last commit — with no token, account or rate-limited third party involved. The star history chart below it is unaffected: /svg returns 200 for both the light and dark variants, so it stays as is.
AI code reviewThis PR fixes a broken badge in the README by replacing the non-functional star-history rank badge with four shields.io badges that read live data from GitHub's public API. The change is purely documentation and all new URLs are verified to return 200. How I read this change
No blocking issues found in this diff. This check passes. Findings are advisory. Reviewed by ASI:One ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong
The star history section had two blocks. The first one, the star-history rank badge, does not work for this repository:
star-history only issues that badge for repositories in its ranking list, so the README was rendering a broken image.
What changed
Replaced the rank badge with shields.io badges that read live counts from the GitHub API — no token, no account, no login:
img.shields.io/github/starsimg.shields.io/github/forksimg.shields.io/github/contributorsimg.shields.io/github/last-commitThe star history chart is unchanged —
api.star-history.com/svgreturns 200 for both the light and dark variants, and needs no token either.Verification
Every image URL in the README was checked; all 13 return 200. The 404 above was the only broken one.
Also considered
starchart.ccas the chart source, but it was returning400 rate limitedon test, so the existing chart is the more reliable option.