/api/v1/top-langsTop Languages Card
Generate a card showing most used programming languages as SVG image.
usernamerequiredGitHub username
themedefaultCard theme
title_colorTitle color (hex without #)
text_colorText color (hex without #)
bg_colorBackground color (hex without #)
border_colorBorder color (hex without #)
hide_titlefalseHide card title
hide_borderfalseHide card border
layoutcompactLayout style for language display
langs_count5range: 1-20Number of languages to show
hideComma-separated languages to hide (e.g. html,css)
exclude_repoComma-separated repos to exclude from calculation
fontgoogle-sans-flexFont family for card text
emoji_settwitterEmoji style for rendering emojis
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/top-langs?username=hehehai&layout=compact&langs_count=8Markdown (for README)
HTML
<img src="/api/v1/top-langs?username=hehehai&layout=compact&langs_count=8" alt="Top Languages Card" />