Add GitHub star counter to benchmark pages#1033
Merged
Merged
Conversation
Add a GitHub star counter to the right of the title on every benchmark HTML page: main ClickBench, hardware, versions, gravitons, and playground. The counter is a styled badge linking to the repo, showing the full live star count fetched from the GitHub API and cached in localStorage for 6 hours to avoid rate limits. It degrades gracefully to a plain "Star" link if the API is unavailable. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# Conflicts: # index.html
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.
Adds a GitHub star counter to the right of the title on every benchmark HTML page:
index.html(main ClickBench)hardware/index.htmlversions/index.htmlgravitons/index.htmlplayground/index.htmlDetails
<h1>and a new star badge are wrapped in a<div class="title-row">(flexbox), so the counter sits inline to the right of the title and wraps gracefully on narrow screens.1234, not1.2k), linking to the repo.stargazers_countfrom the GitHub REST API and caches it inlocalStoragefor 6 hours to avoid unauthenticated rate limits on repeat visits.The hardware/gravitons
generate-results.shscripts only rewrite the in-page data block, so these header/script edits survive regeneration.🤖 Generated with Claude Code