/api/v1/pinRepository Pin Card
Generate a repository pin card as SVG image.
usernamerequiredGitHub username or organization
reporequiredRepository name
themedefaultCard theme
title_colorTitle color (hex without #)
text_colorText color (hex without #)
icon_colorIcon color (hex without #)
bg_colorBackground color (hex without #)
border_colorBorder color (hex without #)
hide_borderfalseHide card border
show_ownerfalseShow repository owner in title
fontgoogle-sans-flexFont family for card text
icon_setdefaultIcon library to use for icons
emoji_settwitterEmoji style for rendering emojis in descriptions
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/pin?username=facebook&repo=reactMarkdown (for README)
HTML
<img src="/api/v1/pin?username=facebook&repo=react" alt="Repository Pin Card" />