id=home
with your unique counter ID.Param | Example | Description |
---|---|---|
id | home | Unique key for your counter (page/project id) |
label | hits | Text shown on the left side of the badge |
style | terminal , mono | Badge style. Use terminal (monospace) or omit for classic. |
bg | #08c4fc | Background color (hex #rgb /#rrggbb or safe name) |
labelColor | #000000 | Label color (hex or safe name) |
valueColor | #ffffff | Value color (hex or safe name) |
font | ui-monospace | Font family for rendering |
id
(string)
id=home
or id=downloads-page
label
(string)
label=hits
, label=downloads
, label=page%20views
(space must be URL-encoded as %20
)style
(string)
terminal
/ mono
for the monospace terminal look./badge?id=home&label=hits
/badge?id=home&style=terminal&label=hits
bg
, labelColor
, valueColor
(colors)
#fff
, #ffffff
) or a small allowlist of color names (e.g., blue
, green
, red
).#
must be URL-encoded as %23
.bg=%2308c4fc
(renders #08c4fc
)https://<deployment>/badge?id=home&style=terminal&bg=%23101414&labelColor=%23aaaaaa&valueColor=%233cffb3
font
(string)
font=ui-monospace
, font=Verdana,Geneva,DejaVu Sans,sans-serif
id=home
with your unique counter ID.id=home
with your unique counter ID.Feature | Shields.io Badge | Direct SVG Badge |
---|---|---|
Update Speed | ~30 seconds | Instant (GitHub may cache ~1–2 min) |
Reliability | High | Depends on server |
Customization | Limited | Extensive |