selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Shields logo

Self-host Shields

server-2026-08-21

Status badge service for SVG and raster images

ReleaseOpen SourceApache-2.0
docker run shieldsio/shields:next
Updated3 weeks ago
LanguageJavaScript
Setup difficultyEasy
Stars
27 383
Ports
80 (Badge server and frontend; the default, which is why the docs run it with sudo), 443 (HTTPS, exposed by the Docker image)
Requires
Node.js
Docker
shieldsio/shields

What is Shields?

Shields.io is a badge server that renders small, consistent status badges in SVG and raster formats for GitHub READMEs and any other web page. The hosted service answers hundreds of thousands of badge types fed by CI services, package registries, app stores, social networks, code-coverage and code-analysis platforms, and it also serves static, dynamic and endpoint badges, including fully custom text badges. You can run your own instance with Docker (shieldsio/shields on Docker Hub or ghcr.io/badges/shields) or from source on Node 24, listening on port 80 by default or any port you set with PORT. Self-hosted instances can carry per-service secrets such as GH_TOKEN or GITLAB_TOKEN to lift rate limits or reach private resources, restrict authorized origins for services like Nexus or Jira, disable the dynamic and endpoint badge families, export Prometheus metrics, forward errors to Sentry, send raster requests to your own raster server, and even host the frontend separately via BASE_URL and REDIRECT_URI. The same repository also publishes the badge-maker NPM library for rendering badges inside your own application.

Shields alternatives

Should you self-host Shields?

Shields scores 79/100 on selfhost.directory (how scoring works) and ranks #7 of 167 in Developer Tools. It has 27 383 GitHub stars, +144 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in JavaScript.

Its closest alternative on selfhost.directory is openhands (87/100, 93 148 stars). It scores higher overall, so compare the two before you pick. See Shields vs openhands side by side.

Features

  • Authorized-origins restriction
  • Badge URL builder frontend
  • Customizable labels and colors
  • Dynamic status badges
  • Endpoint badges
  • Error tracking via Sentry
  • Library for generating badges
  • Per-service server secrets
  • PNG badge raster serverRequires running the separate raster server container alongside Shields
  • Prometheus Metrics
  • Separate frontend hosting
  • Static Badges
  • SVG and raster output

Shields README

Daily Tests Status Code Coverage Chat on Discord

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 1.6 billion 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.

How to install Shields

Install Shields with Docker

Environment variables
PORT, GH_TOKEN, SENTRY_DSN, METRICS_PROMETHEUS_ENABLED, ...
# DockerHub
$ docker pull shieldsio/shields:next
$ docker run shieldsio/shields:next

Tagged snapshot releases available on Docker Hub and GHCR; linux/amd64 and linux/arm64

How to configure Shields

  • BIND_ADDRESSAddress the server binds to
  • PORT80Port the server listens on; pass it as an argument to `node server` instead
  • METRICS_PROMETHEUS_ENABLEDfalseEnable Prometheus default metrics (disabled by default)

    values: true/false

  • METRICS_PROMETHEUS_ENDPOINT_ENABLEDExpose the metrics at the /metrics resource

    values: true/false

  • REDIRECT_URIRedirect the server root elsewhere, e.g. a separately hosted frontend

More in Developer Tools

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…