Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

shields

> 开发工具
Open source

Concise, consistent, and legible badges in SVG and raster format

27.0K stars0 likes4 views
WebsiteGitHub

About

Concise, consistent, and legible badges in SVG and raster format

This is home to [Shields.io][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 1.6 billion images and is used by some of the world's most popular open-source projects, [VS Code][vscode], [Vue.js][vue] and [Bootstrap][bootstrap] to name a few. [vscode]: https://github.com/Microsoft/vscode [vue]: https://github.com/vuejs/vue [bootstrap]: https://github.com/twbs/bootstrap This repo hosts: - The [Shields.io][shields.io] frontend and server code - An [NPM library for generating badges][badge-maker] - [documentation][badge-maker-docs] - [changelog][badge-maker-changelog] - The [badge design specification][badge-spec] [shields.io]: https://shields.io/ [badge-maker]: https://www.npmjs.com/package/badge-maker [badge-spec]: https://github.com/badges/shields/tree/master/spec [badge-maker-docs]: https://github.com/badges/shields/tree/master/badge-maker/README.md [badge-maker-changelog]: https://github.com/badges/shields/tree/master/badge-maker/CHANGELOG.md ## Examples - code coverage percentage: - stable release version: - package manager release: - status of third-party dependencies: - static code analysis grade: - [SemVer](https://semver.org/) version observance: - amount of [Liberapay](https://liberapay.com/) donations per week: - Python package downloads: - Chrome Web Store extension rating: - Uptime Robot uptime percentage: [Make your own badges!][custom badges] (Quick example: `https://img.shields.io/badge/left-right-f39f37`) [custom badges]: https://img.shields.io/badges/static-badge ### Quickstart Browse a [complete list of badges][shields.io] 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. ## Contributing Shields is a community project. We invite your participation through issues and pull requests! You can peruse the [contributing guidelines][contributing]. When adding or changing a service [please add tests][service-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][tutorial]. If you intend on reporting or contributing a fix related to security vulnerabilities, please first refer to our [security policy][security]. [service-tests]: https://github.com/badges/shields/blob/master/doc/service-tests.md [tutorial]: https://github.com/badges/shields/blob/master/doc/TUTORIAL.md [contributing]: https://github.com/badges/shields/blob/master/CONTRIBUTING.md [security]: https://github.com/badges/shields/blob/master/SECURITY.md ## Development 1. Install Node 24. You can use the [package manager][] of your choice. 2. Clone this repository. 3. Run `npm ci` to install the dependencies. 4. Run `npm start` to start the badge server and the frontend dev server. 5. Open `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 (`docusaurus start`) should also automatically reload. However the badge definitions are built only before the server first starts. To regenerate those, either run `npm run prestart` or 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`. Use `npm run debug:server` to start server in debug mode. [This recipe][nodemon debug] shows how to debug Node.js application in [VS Code][]. [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:package` to preview changes to the saved snapshots, and `SNAPSHOT_UPDATE=1 npm run test:package` to update them. The server can be configured to use [Sentry][] ([configuration][sentry configuration]) and [Prometheus][] ([configuration][prometheus configuration]). Our [full test suite][full test suite] as well as [code coverage][code coverage] are run on a daily basis. [package manager]: https://nodejs.org/en/download/package-manager/ [snapshot tests]: https://glebbahmutov.com/blog/snapshot-testing/ [prometheus]: https://prometheus.io/ [prometheus configuration]: https://github.com/badges/shields/blob/master/doc/self-hosting.md#prometheus [sentry]: https://sentry.io/ [sentry configuration]: https://github.com/badges/shields/blob/master/doc/self-hosting.md#sentry [nodemon]: https://nodemon.io/ [nodemon debug]: https://github.com/Microsoft/vscode-recipes/tree/master/nodemon [vs code]: https://code.visualstudio.com/ [full test suite]: https://github.com/badges/shields/actions/workflows/daily-tests.yml [code coverage]: https://coveralls.io/github/badges/shields ## Hosting your own server There is documentation about [hosting your own server][self-hosting]. [self-hosting]: https://github.com/badges/shields/blob/master/doc/self-hosting.md ## Related projects Status badges are used widely across open-source and private software projects. Academics have studied the "signal" badges provide about software project quality. There are many existing libraries for rendering these badges, and alternatives to the hosted Shields badge service. [awesome-badges][] is a curated collection of such resources. [Contributions][contributing to awesome-badges] may be considered there. (The presence of a project in that collection should not be interpreted as an endorsement nor promotion from the Shields project) [awesome-badges]: https://github.com/badges/awesome-badges [contributing to awesome-badges]: https://github.com/badges/awesome-badges/blob/main/CONTRIBUTING.md ## History 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][old-gh-badges], both developed by [Thaddée Tyl][espadrine]. 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][olivierlacan]. 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. You can read more about [the project's inception][thread], [the motivation of the SVG badge specification][motivation], and [the specification itself][spec]. [olivierlacan]: https://github.com/olivierlacan [espadrine]: https://github.com/espadrine [old-gh-badges]: https://github.com/badges/gh-badges [motivation]: https://github.com/badges/shields/blob/master/spec/motivation.md [spec]: https://github.com/badges/shields/blob/master/spec/SPECIFICATION.md [thread]: https://github.com/h5bp/lazyweb-requests/issues/150 ## Project leaders Maintainers: - [jNullj](https://github.com/jnullj) - [LitoMore](https://github.com/LitoMore) - [paulmelnikow](https://github.com/paulmelnikow) - [PyvesB](https://github.com/PyvesB) Alumni: - [calebcartwright](https://github.com/calebcartwright) - [chris48s](https://github.com/chris48s) - [Daniel15](https://github.com/Daniel15) - [espadrine](https://github.com/espadrine) - [olivierlacan](https://github.com/olivierlacan) - [platan](https://github.com/platan) - [RedSparr0w](https://github.com/RedSparr0w) ## License Shields.io is dual licensed and distributed under the terms of both the [MIT license](LICENSE-MIT) and the [Apache license (Version 2.0)](LICENSE-APACHE). ## Community Thanks to the people and companies who donate money, services or time to keep the project running.

Issues· 298 open

View all issuesOpen on GitHub
  • #12186

    [GitHubContributors] Badges render "invalid" for large repositories ("history or contributor list is too large")

    service-badgeUpdated Sep 28, 2026
  • #12149

    Github Check Runs: Support server-side filtering for GitHub Check Runs via check_name

    service-badgeUpdated Sep 13, 2026
  • #11216

    github download badges invalid

    bugservice-badgeUpdated Sep 13, 2026
  • #6766

    Total downloads does not count all releases

    bugservice-badgeUpdated Sep 11, 2026
  • #4169

    GitHub OAuth app/token pool updates

    operationscoreblockerUpdated Sep 10, 2026
  • #5594

    Badge Request: GitHub Container Registry

    service-badgeUpdated Aug 29, 2026
  • #8077

    GitLab Service Badge tracking

    service-badgeUpdated Aug 22, 2026
  • #11620

    PyPI downloads shield showing "rate limited by upstream service"

    needs-upstream-helpservice-badgeUpdated Aug 17, 2026
  • #12063

    Dynamic XML badge HTML mode fails on github.com pages (xmldom lacks HTML5 optional end-tag support)

    needs-upstream-helpservice-badgeUpdated Aug 1, 2026
  • #11925

    Figma Community Plugins badges

    service-badgeUpdated Jul 31, 2026

> Tags

JavaScriptbadgebadge-makergithubhacktoberfest

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具