SkillAgentSearch skills...

Badges

a customizable badge api with the ability to fetch third-party data

Install / Use

/learn @LukenSkyne/Badges
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<p align="center" style="text-align: center"> <a href="https://github.com/LukenSkyne/Badges"> <img alt="Badges Logo" src=".github/icon.png" width="128" height="128" /> </a> </p> <h1 align="center">Badges</h1> <h3 align="center">a customizable badge api with the ability to fetch third-party data</h3> <br> <div align="center">

<a href="https://luken.cc/badges/custom?icon=github&bg=00171c|0a1209|100f06|1a0000/100&desc=Taste%20the&name=[5991ee|56ab6c|f5d26a|eb786f/160]Rainbow">Custom Badge</a>

</div>

About

This project aims to bring some customization options and dynamic into the beauty of Devin's Badges.
Mostly for personal use in my other repositories, so expect some hiccups here and there. Feel free to report any issues!

Example Gallery

The following badges are presets, which are also listed in presets.json.

<a href="https://luken.cc/badges/github">GitHub</a> <a href="https://luken.cc/badges/gitlab">GitLab</a>
<a href="https://luken.cc/badges/paypal">PayPal</a> <a href="https://luken.cc/badges/google-play">Google Play</a>
<a href="https://luken.cc/badges/fabric">Fabric</a> <a href="https://luken.cc/badges/forge">Forge</a>
<a href="https://luken.cc/badges/curseforge">CurseForge</a> <a href="https://luken.cc/badges/modrinth">Modrinth</a>

The CurseForge and Modrinth badges can also show the download count of your project by appending /<projectId> to the URL.

<a href="https://luken.cc/badges/curseforge/734339">CurseForge</a> <a href="https://luken.cc/badges/modrinth/QQXAdCzh">Modrinth</a>

How to use

The api currently has a single endpoint which is used to retrieve badges: https://luken.cc/badges/<preset>
A basic preset to start with your own customizations is custom, but you can simply override any of them.

[!NOTE] Please keep in mind that I'm only hosting the API for preview purposes. I do not guarantee availability.
If you want to use the badges, I recommend self-hosting it.

The following query parameters can be set:

  • bg adjusts the background
    • supply a single color with rgb
    • add gradient colors by dividing with |, such as rgb|rgb|rgb
    • rotate the gradient by adding /angle, such as rgb|rgb/45
  • fill sets the default icon and text colors (only supports single color)
  • icon specifies an icon by name (found in the icons folder) or url encoded svg data
  • desc changes the description text and allows for data fetching
    • limited API support, currently only CurseForge & Modrinth for project information
    • syntax: {api.json_path|formatter}[Alternate Text] more text
      • api can be one of curseforge, modrinth
      • alternate text is shown when the /<id> parameter is not used
      • formatter is optionally used for numbers, can be num or omitted
  • name overrides the highlighted name on the right
    • can have multiple segments of differently colored text
    • syntax: [rgb|rgb/45]Text1[rgb]Text2

Note: color definitions are in hex without #, such as fb4 or ffb347.

Acknowledgements

  • Devin for their awesome badge design
View on GitHub
GitHub Stars5
CategoryDevelopment
Updated2mo ago
Forks2

Languages

TypeScript

Security Score

90/100

Audited on Feb 7, 2026

No findings