shields (badges/shields)

Searching Database…

What is this?Shields.io — a service for concise, consistent, and legible badges in SVG and raster format, designed to be embedded in GitHub readmes or any other web page.
Is it a hosted website, an npm library, or something I run myself?All three: a hosted service at shields.io, the server and frontend code in this repo, and an npm library called badge-maker for generating badges in code. You can also self-host the server.
How do I actually put a badge on my project?Browse or search the badge list on shields.io, click the one you need, fill in data like your username or repo, tweak label and colors if you like, then copy the URL or snippet into your README.
What do I need if I want to work on the code?Node 24 (engines also allow 26): clone the repo, run npm ci, then npm start to launch the badge server and the frontend dev server; nodemon hot-restarts the server on changes.
Anything quirky about running the dev server?Badge definitions are built only before the server first starts, so after changing them you must run npm run prestart or restart the server. Server and frontend hot-reload, but definitions do not.
Can I run my own badge server instead of relying on shields.io?Yes — the repo has documentation for hosting your own server, and a Docker image build is configured in CI. The self-hosted server can optionally report to Sentry and Prometheus.
What kinds of things can a badge actually show?Dozens of sources: continuous integration services, package registries, app stores, social networks, code coverage and code analysis tools. Examples include coverage percentage, release version, dependency status, weekly Liberapay donations, Python package downloads, Chrome extension ratings, and uptime.
How widely is it used?It serves over 1.6 billion badge images per month and is used by some of the world's most popular open-source projects, including VS Code, Vue.js, and Bootstrap.
What is the badge-maker npm package for?It is an npm library hosted in this repo for generating the same style of badges programmatically from your own code, and it comes with its own documentation and changelog.
Where did Shields come from?It started in 2013 as a library called gh-badges and the oddly-named site b.adge.me, both by Thaddee Tyl. The original badge spec by Olivier Lacan was inspired by Travis CI badges; the two later merged into shields.io, and the old design survives as the plastic style.
Which topics is it in?status, badge, metadata, svg, github, npm, free, api, server, tool, nodejs, apache-2.0
Creator
badges
Size
523.1 MB
Stars
27.5K
Updated
CommitNov 14
Age
13y
Commits · 90 Days