PixStock
Introduction

Pin API

Generate dynamic SVG repository cards for GitHub READMEs and project showcases.

Repository pin playground

Configure a repository card and copy the generated embed.

man-navlakha blog_ms pin preview

Markdown embed

<a href="https://github.com/man-navlakha/blog_ms"><img src="https://img-server-theta.vercel.app/api/pin?username=man-navlakha&repo=blog_ms&theme=react&show_icons=true&hide_border=false&show_owner=true&show_language=true&card_width=430&border_radius=16" /></a>

Overview

The Repository Pin API renders a GitHub repository as a clean SVG card. It is ideal for profile READMEs, portfolio pages, documentation landing pages, and project directories where the card should link directly to the repository.

Endpoint

PropertyValue
Base URLhttps://img-server-theta.vercel.app/api/pin
MethodGET
Content-Typeimage/svg+xml; charset=utf-8

Query Parameters

ParameterTypeRequiredDefaultDescription
usernamestringYes-GitHub login name that owns the repository.
repostringYes-Repository name to render.
themereact | dark | lightNoreactApplies a built-in visual theme.
titlestringNoRepository nameOverrides the repository title displayed on the card.
owner_namestringNoGitHub ownerOverrides the owner label when owner display is enabled.
font_familystringNoSystem UISets the font family used in the SVG.
card_width340-900No430Controls the rendered SVG width in pixels.
border_radius8-40No16Controls card corner radius in pixels.
show_iconstrue | falseNotrueShows metric and metadata icons.
hide_bordertrue | falseNofalseRemoves the outer card border.
show_ownertrue | falseNotrueShows the repository owner.
show_languagetrue | falseNotrueShows the primary repository language.
bg_colorHex without #NoTheme valueOverrides card background color.
title_colorHex without #NoTheme valueOverrides repository title color.
text_colorHex without #NoTheme valueOverrides description and metadata text color.
icon_colorHex without #NoTheme valueOverrides icon and accent color.
border_colorHex without #NoTheme valueOverrides card border color.

Basic Usage

GET https://img-server-theta.vercel.app/api/pin?username=man-navlakha&repo=blog_ms

Markdown Embed

Wrap the generated image in a repository link:

<a href="https://github.com/man-navlakha/blog_ms">
  <img src="https://img-server-theta.vercel.app/api/pin?username=man-navlakha&repo=blog_ms" />
</a>

Advanced Customization

Use layout controls to fit different README sections:

<a href="https://github.com/man-navlakha/blog_ms">
  <img src="https://img-server-theta.vercel.app/api/pin?username=man-navlakha&repo=blog_ms&theme=dark&card_width=560&border_radius=24" />
</a>

Hide secondary details for a compact project grid:

<a href="https://github.com/man-navlakha/blog_ms">
  <img src="https://img-server-theta.vercel.app/api/pin?username=man-navlakha&repo=blog_ms&show_owner=false&show_language=false&hide_border=true" />
</a>

Apply brand colors with hex overrides:

<a href="https://github.com/man-navlakha/blog_ms">
  <img src="https://img-server-theta.vercel.app/api/pin?username=man-navlakha&repo=blog_ms&bg_color=0f172a&title_color=ffffff&text_color=cbd5e1&icon_color=61dafb&border_color=1e293b" />
</a>

Error Behavior

The API is intended for visual embeds. Invalid inputs, missing repositories, or upstream GitHub failures should still render as SVG output so GitHub READMEs and other Markdown surfaces remain visually stable.

On this page