A small badge for repositories developed on Codeberg and mirrored to GitHub — with a magic link that always sends visitors to the other platform. Click the badge on Codeberg, land on GitHub. Click it on GitHub, land on Codeberg. No duplicate badges, no manual switching.
Place the badge at the top-right, above your title:
<div align="right">
<a href="https://ixxie.codeberg.page/bergmirror/redirect/?cb=USER/REPO&gh=USER/REPO"><img src="https://ixxie.codeberg.page/bergmirror/badge.svg" alt="Codeberg → GitHub mirror"/></a>
</div>
# Your project titleFill in:
cb=<codeberg-user>/<codeberg-repo>— your canonical Codeberg locationgh=<github-user>/<github-repo>— your GitHub mirror (can differ in user and repo name)
The link goes through a tiny redirect page on Codeberg Pages that bounces you to the other platform from the one you're currently viewing:
- Viewing on Codeberg → redirects to the GitHub mirror
- Viewing on GitHub → redirects to the Codeberg canonical
If JavaScript is disabled, the redirect page shows fallback links to both.