Repository navigation
README badges for GitHub profiles - #30
Merged
Merged
Conversation
/b/<userId> (served by /api/og with kind=badge, no new function) returns an SVG badge that keeps itself up to date: best code WPM, division, runs and streak, with the player's own Kap. Two styles, a card and a shields-sized flat pill, each in dark and light. It uses only shapes and system fonts, since GitHub's image proxy blocks outside resources, and caches for half an hour so the badge catches up as you practice. Share profile now has a README badge section: a live preview, style and theme pickers, and a snippet to copy (Markdown, or <picture> HTML that follows the reader's GitHub theme). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018xNjY7412Rp5bFuw5h69yu
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Summary
/b/<userId>(a rewrite to/api/og/<id>?kind=badge, so no new function) returns an SVG badge that keeps itself up to date.card(the default, 440×120, with Kap) andflat(a 20 px shields-style pill). Themes:darkandlight.stale-while-revalidate, so the badge catches up as you practice.<picture>HTML that follows the reader's GitHub theme; a fixed theme copies Markdown.Test plan
tsc -b, the API typecheck and the build pass.🤖 Generated with Claude Code
https://claude.ai/code/session_018xNjY7412Rp5bFuw5h69yu
Generated by Claude Code