Skip to content

Github Links

RonDevHub edited this page Jan 28, 2026 · 41 revisions

Dynamic GitHub Badges

Dynamic badges fetch live data from GitHub and display it as a badge.
They support metrics like stars, forks, downloads, commits, and more.

⚠️ Note
This package does not include icons.
Place your own SVGs (with fill="currentColor") in icons/, e.g. icons/star.svg.
Then reference them with /star/.


Table of Contents


URL Structure

/github/{owner}/{repo}/{metric}/{style}/{icon}-{iconColor}/{lang}/{backgroundColorMessage}-{textColorMessage}/{backgroundLabelColor}-{textColorLabel}

Example URL Rendered Badge
/github/{owner}/{repo}/forks/flat/codefork-white/de/green-black/146eb4-white GitHub Forks Example

URL Input

You can use special placeholders for flexibility:

Input Output Example URL Badge
Star (asterisk) * Placeholder for default value /github/{owner}/{repo}/forks/flat/codefork-white/*/green-black/*-white Forks Default Placeholder

Metrics

⚠️ The following previews are demo outputs only.
Real values are generated dynamically from GitHub.

Metric Description Example Badge
stars Number of stars of the repo (-all = all public repos)
Stars
Stars All
license License of the repository License MIT
forks Number of forks (-all = all repos)
Forks
Forks All
downloads Number of downloads (-latest latest release, -all across all repos)
Downloads
Downloads Latest
Downloads All
issues Issues of a repo (-open open issues, -closed closed issues) Issues Repo
issues_all Issues across all repos Issues All
top_language Main language of the repo Top Language PHP
top_language_count-2 Top 2 languages of the repo (default = 1) Top 2 Languages
top_languages_all-2 Top 2 languages across all repos (default = 1) Top Languages All
created_at Repo creation date Repo Created Date
size Repo size in KB Repo Size
size_all Total repo sizes (all repos) Repo Size All
push Date latest Push (-time, -datetime, -lines, -info) Pushes
commit Date latest Commit (-time, -datetime, -lines, -info) Commits
lines Lines of code (-added, -deleted) Lines
milestones Repo milestones (-open, -closed, -all) Milestones
release Latest release Latest Release
releases Release count Releases
watchers Repo watchers Watchers
watchers_all Watchers across all repos Watchers All
repos_count Public repos count Repos Count
prs Pull requests (-all, -merged, -mergedall) PRs
successrate PR merge success rate (-all for all repos) Success Rate
subscribers Subscribers (-all for all repos) Subscribers
branches Branch count (-all for all repos) Branches
files Files count (-all for all repos) Files
projects Projects count (-all for all repos) Projects
tags Tags count (-all for all repos) Tags
follower Followers Followers
following Following Following
checkversion@ Check if given version is up-to-date Version Check
gists Gists stats (-date, -forks, -list1, -listall) Gists
sponsors Shows the number of sponsors (API only) Sponsors
commits Output all commits of a repo (@branchname, -all, -last, -last-info)
codesize Code size of a repo (-all) (only the default branch)
Profil (API only)
name Displays the profile name Name
company Displays your Company Company
location Displays your Location Location
status Displays your Status Status
createdAt Display date of account creation (-since) createdAt
updatedAt Display date of account updated (-since) updatedAt

✨ With these dynamic GitHub badges, you can visualize real-time GitHub repository statistics directly in your README files.

Clone this wiki locally