Skip to content

Codeberg

RonDevHub edited this page Oct 21, 2025 · 12 revisions

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 (with fill="currentColor") in icons/, e.g. icons/star.svg.
Then reference them with /star/.


URL Structure

/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 Codeberg Forks Example

URL Input

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 Forks Default Placeholder

Metrics

⚠️ The following previews are demo outputs only.
Real values are generated dynamically from :codeberg: Codeberg.

Metric Description Example Badge
name Name of the Repo Name
created-at Repo created date (-since) Created
updated-at Date of the last update (-since) Last update
stars Number of stars of the repo (-all = all public repos) Stars
language Language of the repo Language
license License of the repository License MIT
forks Number of forks (-all = all repos) Forks
downloads Number of downloads (-latest latest release, -all across all repos) Downloads
issues Issues of a repo (-open open issues, -closed closed issues,
-all all issues, -allopen all open issues, -allclosed all closed issues )
Issues Repo
prs Pull requests (-open, -closed, -all, -allopen, -allclosed) Pull requests
size Code size of a repo (-all) (only the default branch) Size
watchers Repo watchers (-all) Watchers
branch-default Default Branch of the repo Branch
release Latest release (-tag) Latest release
releases Number of releases (-all) Releases
release@ ¹ Check if given version is up-to-date
¹Example: release@v.1.1.0-stable
Check Release
lastcommit Output all commits (-info, -infos) Last commit
respos Count of all repos Repos
milestones Count of milestones (-open, -closed, -all, -allopen, -allclosed) Milestones
milestonesinfo Info of milestones (-open, -closed) Milestones info
Profil infos
username Displays the profile name Name
location Displays your Location Location
register Display date of account creation (-since) Created
followers Displays your followers Followers
following Display your followings Following
stars-give Number of stars you have given Stars give

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

Clone this wiki locally