Render a status badge as SVG (flat, flat-square or for-the-badge) from a label a
Render a status badge as SVG (flat, flat-square or for-the-badge) from a label and message, or from a value with thresholds that pick the color. Builds a shields-style SVG badge with text widths measured from the font metrics of Liberation Sans and fixed with textLength, an accessible title and unique element IDs so several badges can be inlined in one page. Colors are hex values or the shields.io palette names (CC0).
Answeringour last check, 2026-11-26
7 of 7checks answered this week
1002 msmedian answer time
$0.002listed price per call
$0.002price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://code.halowerk.com/v1/status-badge
| Category | Code and developer |
|---|---|
| Provider host | code.halowerk.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.002 | 1002 ms |
| 2026-11-25 | valid payment request | 402 | $0.002 | 915 ms |
| 2026-11-24 | valid payment request | 402 | $0.002 | 910 ms |
| 2026-11-23 | valid payment request | 402 | $0.002 | 888 ms |
| 2026-11-22 | valid payment request | 402 | $0.002 | 1193 ms |
| 2026-11-21 | valid payment request | 402 | $0.002 | 1164 ms |
| 2026-11-20 | valid payment request | 402 | $0.002 | 1174 ms |
Example input (from the provider)
{
"body": {
"label": "uptime",
"thresholds": {
"higher_is_better": true,
"ok": 99.9,
"warn": 99
},
"unit": "%",
"value": 99.95
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"color": {
"maxLength": 20,
"type": "string"
},
"decimals": {
"maximum": 6,
"minimum": 0,
"type": "integer"
},
"label": {
"maxLength": 60,
"minLength": 1,
"type": "string"
},
"label_color": {
"maxLength": 20,
"type": "string"
},
"message": {
"maxLength": 60,
"minLength": 1,
"type": "string"
},
"style": {
"default": "flat",
"enum": [
"flat",
"flat-square",
"for-the-badge"
],
"type": "string"
},
"thresholds": {
"additionalProperties": false,
"properties": {
"higher_is_better": {
"default": true,
"type": "boolean"
},
"ok": {
"type": "number"
},
"warn": {
"type": "number"
}
},
"required": [
"ok",
"warn"
],
"type": "object"
},
"unit": {
"maxLength": 10,
"type": "string"
},
"value": {
"type": "number"
}
},
"required": [
"label"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}