-
-
Notifications
You must be signed in to change notification settings - Fork 0
Codeberg
Dynamic badges fetch live data from :codeberg: Codeberg 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 (withfill="currentColor") inicons/, e.g.icons/star.svg.
Then reference them with/star/.
/codeberg/{owner}/{repo}/{metric}/{style}/{icon}-{iconColor}/{lang}/{backgroundColorMessage}-{textColorMessage}/{backgroundLabelColor}-{textColorLabel}
| Example URL | Rendered Badge |
|---|---|
/codeberg/{owner}/{repo}/forks/flat/codefork-white/de/green-black/146eb4-white |
You can use special placeholders for flexibility:
| Input | Output | Example URL | Badge |
|---|---|---|---|
Star (asterisk) *
|
Placeholder for default value | /codeberg/{owner}/{repo}/forks/flat/codefork-white/*/green-black/*-white |
⚠️ The following previews are demo outputs only.
Real values are generated dynamically from :codeberg: Codeberg.
| Metric | Description | Example Badge |
|---|---|---|
name |
Name of the Repo | |
created-at |
Repo created date (-since) |
|
updated-at |
Date of the last update (-since) |
|
stars |
Number of stars of the repo (-all = all public repos) |
|
language |
Language of the repo | |
license |
License of the repository | |
forks |
Number of forks (-all = all repos) |
|
downloads |
Number of downloads (-latest latest release, -all across all repos) |
|
issues |
Issues of a repo (-open open issues, -closed closed issues, -all all issues, -allopen all open issues, -allclosed all closed issues ) |
|
prs |
Pull requests (-open, -closed, -all, -allopen, -allclosed) |
|
size |
Code size of a repo (-all) (only the default branch) |
|
watchers |
Repo watchers (-all) |
|
branch-default |
Default Branch of the repo | |
release |
Latest release (-tag) |
|
releases |
Number of releases (-all) |
|
release@ ¹
|
Check if given version is up-to-date ¹Example: release@v.1.1.0-stable
|
|
lastcommit |
Output all commits (-info, -infos) |
|
respos |
Count of all repos | |
milestones |
Count of milestones (-open, -closed, -all, -allopen, -allclosed) |
|
milestonesinfo |
Info of milestones (-open, -closed) |
|
| Profil infos | ||
username |
Displays the profile name | |
location |
Displays your Location | |
register |
Display date of account creation (-since) |
|
followers |
Displays your followers | |
following |
Display your followings | |
stars-give |
Number of stars you have given |
✨ With these dynamic Codeberg badges, you can visualize real-time Codeberg repository statistics directly in your README files.