GitHub Stars

Display the star count for any GitHub repository.

Show how many stars a repository has earned.

GET/github/stars/:owner/:repo.svg

Path Parameters

required
required
![badge](https://shieldcn.dev/github/stars/vercel/next.js.svg)
badge preview

URL format

/github/stars/{owner}/{repo}.svg
/github/{owner}/{repo}/stars.svg

Examples

Next.js stars
Default variant
React stars
Secondary variant
stars branded
Branded variant
stars blue
Blue theme
stars outline
Outline variant
stars large
Large size

Copy-paste examples

stars

Default — works great in any README

![stars](https://shieldcn.dev/github/stars/vercel/next.js.svg)
stars

Branded — GitHub's brand color

![stars](https://shieldcn.dev/github/stars/vercel/next.js.svg?variant=branded&logo=github)

Response format

The badge shows the star count formatted with k/M suffixes for large numbers (e.g., 139.1k).