shieldcn
Docs
Studio
Showcase
Sponsor
jal-co/shieldcn596
shieldcn

Member of the Vercel OSS Program

Analytics provided by OpenPanel

Monitored by Sentry

Powered by Neon.

Community

GitHubjal-co/uiStatsllms.txtPrivacyContact

Product

DocumentationAPI ReferenceToken PoolGeneratorAgent Skill

inspired by shields.io and badgen.net

Made with in by Justin Levine

shieldcn
Docs
Studio
Showcase
Sponsor
jal-co/shieldcn596

Search documentation

Search all badge providers, guides, and reference docs.

Getting Started

IntroductionREADME StudioCLIAgent SkillNewSelf-HostingAPI ReferenceToken PoolSponsor

Badges

Badge GroupStatic BadgeDynamic JSONHTTPS Endpoint

Charts

OverviewStar history

Headers

OverviewGenerator

Sponsors

OverviewGenerator

Contributors

OverviewGenerator
shieldcn

Member of the Vercel OSS Program

Analytics provided by OpenPanel

Monitored by Sentry

Powered by Neon.

Community

GitHubjal-co/uiStatsllms.txtPrivacyContact

Product

DocumentationAPI ReferenceToken PoolGeneratorAgent Skill

inspired by shields.io and badgen.net

Made with in by Justin Levine

API Reference

Complete URL specification, query parameters, and response formats.

URL format

All endpoints support both .svg and .png — swap .json to get raw badge data, or append /shields.json for shields.io compatibility. Use SVG by default for the crispest rendering.
https://shieldcn.dev/{provider}/{...params}.svg
https://shieldcn.dev/{provider}/{...params}.png
https://shieldcn.dev/{provider}/{...params}.json
https://shieldcn.dev/{provider}/{...params}/shields.json

Badge endpoints

npm

EndpointDescription
/npm/{package}.svgLatest version
/npm/{package}/downloads.svgWeekly download count
/npm/@scope/package.svgScoped package version

GitHub

EndpointDescription
/github/{owner}/{repo}/stars.svgStar count
/github/{owner}/{repo}/release.svgLatest release tag
/github/{owner}/{repo}/ci.svgCI workflow status
/github/{owner}/{repo}/license.svgSPDX license identifier
/github/downloads/{owner}/{repo}.svgDownloads — all assets, all releases
/github/downloads/{owner}/{repo}/latest.svgDownloads — all assets, latest release
/github/downloads/{owner}/{repo}/{tag}.svgDownloads — all assets, specific tag
/github/downloads-asset/{owner}/{repo}/{asset}.svgDownloads — specific asset, all releases
/github/downloads-asset/{owner}/{repo}/{asset}/latest.svgDownloads — specific asset, latest release
/github/downloads-asset/{owner}/{repo}/{asset}/{tag}.svgDownloads — specific asset, specific tag

Views

Stateful view counters — the count increments on every render and the response is served uncached (Cache-Control: no-store). Use ?base=N to add an existing total when migrating from another counter (the base is added at render, never stored, and must stay in the URL).

EndpointDescription
/views/repo/{owner}/{repo}.svgRepository view counter
/views/user/{username}.svgProfile view counter
/views/user/{username}/repos.svgAll-repos view counter

Discord

EndpointDescription
/discord/{serverId}.svgOnline member count
/discord/members/{inviteCode}.svgApproximate member count from invite
/discord/online-members/{inviteCode}.svgApproximate online member count from invite

NBA

EndpointDescription
/nba.svgDefault “2026 champs / Knicks” badge using the branded Knicks color
/nba/{team}.svgNBA team fan badge with team logo and team color

{team} accepts common team slugs, names, abbreviations, and nicknames such as knicks, ny, celtics, bos, warriors, and gs. Omit {team} for the default “2026 champs / Knicks” badge. See NBA docs.

X / Twitter

EndpointDescription
/x/{username}.svgFollow CTA (default)
/x/follow/{username}.svg"follow @username" CTA
/x/mention/{username}.svg"@username" mention CTA

Static badges — no API token required.

Homebrew

EndpointDescription
/homebrew/{formula}.svgFormula version
/homebrew/cask/{cask}.svgCask version
/homebrew/dm/{formula}.svgFormula downloads (monthly)
/homebrew/dq/{formula}.svgFormula downloads (quarterly)
/homebrew/dy/{formula}.svgFormula downloads (yearly)
/homebrew/cask-dm/{cask}.svgCask downloads (monthly)
/homebrew/cask-dq/{cask}.svgCask downloads (quarterly)
/homebrew/cask-dy/{cask}.svgCask downloads (yearly)

Tokscale

EndpointDescription
/tokscale/{username}.svgTotal token count (default)
/tokscale/tokens/{username}.svgTotal token count
/tokscale/cost/{username}.svgEstimated total cost
/tokscale/rank/{username}.svgGlobal leaderboard rank
/tokscale/active-days/{username}.svgDays with AI activity
/tokscale/stats.svgGlobal user count

skills.sh

EndpointDescription
/skills/{owner}/{repo}/{skill}.svgAll-time install count (default)
/skills/installs/{owner}/{repo}/{skill}.svgAll-time install count
/skills/rank/{owner}/{repo}/{skill}.svgAll-time leaderboard rank
/skills/trending/{owner}/{repo}/{skill}.svgTrending leaderboard rank
/skills/hot/{owner}/{repo}/{skill}.svgHot (last 24h) leaderboard rank

Country Flags

EndpointDescription
/flag/{code}.svg“built in country” with a flag chip

{code} is an ISO 3166-1 alpha-2 country code (case-insensitive), plus regions and subdivisions like eu, gb-eng, es-ct. 265 codes supported. Definite articles are applied automatically (us → “the USA”). See Country Flags docs.

Badge Group

EndpointDescription
/group/{badge1}+{badge2}+{badge3}.svgMultiple badges joined in one image

Join any badge paths with +. Query params apply to all segments. See Badge Group docs.

Static

EndpointDescription
/badge/{label}-{message}-{color}.svgCustom text badge
/badge/dynamic/json.svg?url=...&query=...Dynamic JSON badge

Charts

EndpointDescription
/chart/github/stars/{owner}/{repo}.svgGitHub star history — retired (GitHub restricted the stargazers API); returns a 100×1 transparent image
/chart/github/issues/{owner}/{repo}.svgGitHub issues over time
/chart/npm/{package}.svgnpm weekly downloads
/chart/json.svg?values=1,2,3Inline JSON data
/chart/json.svg?url=...&query=...Remote JSON (JSONPath)

Shadcn-styled line/area charts. Support mode, theme, color, fill, area, bg, border, font, width, height, title, days (npm), and values/dates/labels or url/query (JSON). See Charts docs.

Headers

EndpointDescription
/header/{preset}.svgRepository header banner
/header.svgDefault preset (surface)
/header/{preset}.pngPNG banner
/header/{preset}.jsonResolved header config

Premade backgrounds: surface, gradient, dots, grid, graph, glow, transparent. Support title, subtitle, logo, logoColor, size (banner, wide, social, square), width, height, align, bg, gradient, glow, accent, titleColor, subtitleColor, radius, border, watermark, pattern, plus mode, theme, and font. See Headers docs.

Sponsors

EndpointDescription
/sponsors/{login}.svgActive public GitHub Sponsors grid
/sponsors/{login}.pngPNG grid
/sponsors/{login}.jsonResolved sponsor list

A grid of an account's active public GitHub Sponsors. Arrange tiers by pinning logins with special and backers (comma-separated). Support specialTitle, sponsorsTitle, backersTitle, title, size, width, limit, names, bg, accent, radius, border, watermark, plus mode and font. See Sponsors docs.

Contributors

EndpointDescription
/contributors/{owner}/{repo}.svgRepository contributors grid
/contributors/{owner}/{repo}.pngPNG grid
/contributors/{owner}/{repo}.jsonResolved contributor list

A contrib.rocks-style grid of a repository's top contributors, ordered by contributions. Bots are excluded by default (bots=true to include). Supports title, limit, min, names, size, width, align, titleAlign, the full header background system (preset, theme, bg, gradient, pattern, glow, image, overlay, tint, accent), radius, border, watermark, plus mode and font. See Contributors docs.

Query parameters

Appearance

PropType

Colors

PropType

Icons

PropType

Layout

PropType

Effects

PropType
Animation is SVG-only and works inside GitHub's image sandbox because it uses pure CSS keyframes — no JavaScript. pulse and glow require a status dot (auto for CI badges, or set statusDot=true with a color).

Response formats

PNG

http
Content-Type: image/png
Cache-Control: public, max-age=3600, s-maxage=3600, stale-while-revalidate=86400

PNG badges are rasterized at exact badge dimensions. Use SVG when you want the crispest badge rendering; use PNG only where SVG is not accepted.

SVG

http
Content-Type: image/svg+xml
Cache-Control: public, max-age=3600, s-maxage=3600, stale-while-revalidate=86400

SVG badges are scalable and have smaller file sizes. Use .svg when you need crisp rendering at any scale.

JSON

json
{
  "label": "npm",
  "value": "v19.1.0",
  "color": "blue",
  "link": "https://www.npmjs.com/package/react"
}

Shields.io compatible

json
{
  "schemaVersion": 1,
  "label": "npm",
  "message": "v19.1.0",
  "color": "blue"
}

Use with shields.io endpoint badge:

![npm](https://img.shields.io/endpoint?url=https://shieldcn.dev/npm/react/shields.json)

On This Page

URL formatBadge endpointsnpmGitHubViewsDiscordNBAX / TwitterHomebrewTokscaleskills.shCountry FlagsBadge GroupStaticChartsHeadersSponsorsContributorsQuery parametersResponse formatsPNGSVGJSONShields.io compatible