Shields badge specification, website and default API server
JavaScript Makefile
Pull request Compare This branch is 714 commits behind badges:master.
Latest commit 5c35ef6 Jan 26, 2015 @espadrine espadrine Support GitHub followers
Permalink
Failed to load latest commit information.
ass-stubs
spec
templates
.buildpacks
.gitignore
.travis.yml
404.html
CNAME
CONTRIBUTING.md
Dockerfile
INSTALL.md
LICENSE.md
Makefile
README.md
badge.js
colorscheme.json
coverage.svg
favicon.png
gh-badge.js
index.html
logo.svg
lru-cache.js
package.json
phantomjs-svg2png.js
server.js
suggest.js
svg-to-img.js
test.js
try.html

README.md

Shields Gittip npm version build status

An image server for legible & concise information.

http://shields.io

Installation Instructions: INSTALL.md.

Contributions: CONTRIBUTING.md.

Specification: SPECIFICATION.md.

License: LICENSE.md.

Problem

Many GitHub repos sport badges for things like:

travis badge

gemnasium badge

code climate badge

rubygems badge

As you can see from the zoomed 400% versions of these badges above, nobody is (really) using the same badge file and at normal size, they're hardly legible. Worst of all, they're completely inconsistent. The information provided isn't of the same kind on each badge. The context is blurry, which doesn't make for a straightforward understanding of how these badges are relevant to the project they're attached to and what information they provide.

Solution

As you can see below, without increasing the footprint of these badges, I've tried to increase legibility and coherence, removing useless text to decrease the horizontal length in the (likely) scenario that more of these badge thingies crop up on READMEs all across the land.

Badge design

We have an effort to produce similar-looking SVGs through a web service at http://img.shields.io. That ensures that we are retina-ready.

Examples

What kind of meta data can you convey using badges?

  • test build status: build | failing
  • code coverage percentage: coverage | 80%
  • stable release version: version | 1.2.3
  • package manager release: gem | 1.2.3
  • status of third-party dependencies: dependencies | out-of-date
  • static code analysis GPA: code climate | 3.8
  • semver version observance: semver | 2.0.0
  • amount of gittip donations per week: tips | $2/week

Services using the Shields standard