Concise, consistent, and legible badges in SVG and raster format
This is home to Shields.io, a service for concise, consistent, and legible badges in SVG and raster format, which can easily be included in GitHub readmes or any other web page. The service supports dozens of continuous integration services, package registries, distributions, app stores, social networks, code coverage services, and code analysis services. Every month it serves over 770 million images and is used by some of the world's most popular open-source projects, VS Code, Vue.js and Bootstrap to name a few.
This repo hosts:
Make your own badges! (Quick example:
Browse a complete list of badges and locate a particular badge by using the search bar or by browsing the categories. Click on the badge to fill in required data elements for that badge type (like your username or repo) and optionally customize (label, colors etc.). And it's ready for use!
Use the button at the bottom to copy your badge url or snippet, which can then be added to places like your GitHub readme files or other web pages.
Shields is a community project. We invite your participation through issues and pull requests! You can peruse the contributing guidelines.
When adding or changing a service please add tests.
This project has quite a backlog of suggestions! If you're new to the project, maybe you'd like to open a pull request to address one of them.
You can read a tutorial on how to add a badge.
npm cito install the dependencies.
npm startto start the badge server and the frontend dev server.
http://localhost:3000/to view the frontend.
When server source files change, the badge server should automatically restart itself (using nodemon). When the frontend files change, the frontend dev server (
gatsby dev) should also automatically reload. However the badge definitions are built only before the server first starts. To regenerate those, either run
npm run defsor manually restart the server.
To debug a badge from the command line, run
npm run badge -- /npm/v/nock. It also works with full URLs like
npm run badge -- https://img.shields.io/npm/v/nock.
npm run debug:serverto start server in debug mode. This recipe shows how to debug Node.js application in VS Code.
Shields has experimental support for Gitpod, a pre-configured development environment that runs in your browser. To use Gitpod, click the button below and sign in with GitHub. Gitpod also offers a browser add-on, though it is not required. Please report any Gitpod bugs, questions, or suggestions in issue #2772.
Snapshot tests ensure we don't inadvertently make changes that affect the SVG or JSON output. When deliberately changing the output, run
SNAPSHOT_DRY=1 npm run test:packageto preview changes to the saved snapshots, and
SNAPSHOT_UPDATE=1 npm run test:packageto update them.
Daily tests, including a full run of the service tests and overall code coverage, are run via badges/daily-tests.
There is documentation about hosting your own server.
b.adge.me was the original website for this service. Heroku back then had a thing which made it hard to use a toplevel domain with it, hence the odd domain. It used code developed in 2013 from a library called gh-badges, both developed by Thaddée Tyl. The project merged with shields.io by making it use the b.adge.me code and closed b.adge.me.
The original badge specification was developed in 2013 by Olivier Lacan. It was inspired by the Travis CI and similar badges (there were a lot fewer, back then). In 2014 Thaddée Tyl redesigned it with help from a Travis CI employee and convinced everyone to switch to it. The old design is what today is called the plastic style; the new one is the flat style.
All assets and code are under the CC0 LICENSE and in the public domain unless specified otherwise.
The assets in
logo/are trademarks of their respective companies and are under their terms and license.
Thanks to the people and companies who donate money, services or time to keep the project running. https://shields.io/community