/api/v1Stats Card
Generate a GitHub stats card as SVG image showing stars, commits, PRs, issues, and rank.
usernamerequiredGitHub username
themedefaultCard theme
title_colorTitle color (hex without #, e.g. ff0000)
text_colorText color (hex without #)
icon_colorIcon color (hex without #)
bg_colorBackground color (hex without #)
border_colorBorder color (hex without #)
ring_colorRank ring color (hex without #)
hide_rankfalseHide rank display
hide_titlefalseHide card title
hide_borderfalseHide card border
show_iconstrueShow stat icons
hideComma-separated stats to hide
line_height25range: 1+Line height for stats (positive integer)
include_all_commitsfalseInclude all commits (not just current year)
count_privatefalseCount private contributions
fontgoogle-sans-flexFont family for card text
icon_setdefaultIcon library to use for stats icons
emoji_settwitterEmoji style for rendering emojis in names/titles
border_radius6range: 0-50Card border radius in pixels
refreshfalseForce refresh the card (bypass cache)
SVG cards are cached in Cloudflare R2 storage for optimal performance.
SVG Cache
Generated SVG cards are cached until manually refreshed using the refresh parameter
Force Refresh
Add refresh=true parameter to force regenerate the card with fresh data
Data Cache
GitHub API data is cached for 24 hours in KV storage to reduce API calls
Request URL
/api/v1?username=hehehai&show_icons=trueMarkdown (for README)
HTML
<img src="/api/v1?username=hehehai&show_icons=true" alt="Stats Card" />