Overview
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).
Protocol
x402 (POST)
Price
$0.0020
Payment Asset
USD Coin
Payment Network
Base
Category
uncategorized
Provider
code
Indexed
2026-11-20 14:09:44
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
Input Schema
{
"body": {
"label": "uptime",
"thresholds": {
"higher_is_better": true,
"ok": 99.9,
"warn": 99
},
"unit": "%",
"value": 99.95
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"result": {
"color": "#4c1",
"data_uri": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5MCIgaGVpZ2h0PSIyMCIgcm9sZT0iaW1nIiBhcmlhLWxhYmVsPSJ1cHRpbWU6IDk5Ljk1JSI+PHRpdGxlPnVwdGltZTogOTkuOTUlPC90aXRsZT48bGluZWFyR3JhZGllbnQgaWQ9InMxYjc5ZTI4ZCIgeDI9IjAiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNiYmIiIHN0b3Atb3BhY2l0eT0iLjEiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3Atb3BhY2l0eT0iLjEiLz48L2xpbmVhckdyYWRpZW50PjxjbGlwUGF0aCBpZD0icjFiNzllMjhkIj48cmVjdCB3aWR0aD0iOTAiIGhlaWdodD0iMjAiIHJ4PSIzIiBmaWxsPSIjZmZmIi8+PC9jbGlwUGF0aD48ZyBjbGlwLXBhdGg9InVybCgjcjFiNzllMjhkKSI+PHJlY3Qgd2lkdGg9IjQzIiBoZWlnaHQ9IjIwIiBmaWxsPSIjNTU1Ii8+PHJlY3QgeD0iNDMiIHdpZHRoPSI0NyIgaGVpZ2h0PSIyMCIgZmlsbD0iIzRjMSIvPjxyZWN0IHdpZHRoPSI5MCIgaGVpZ2h0PSIyMCIgZmlsbD0idXJsKCNzMWI3OWUyOGQpIi8+PC9nPjxnIGZpbGw9IiNmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZvbnQtZmFtaWx5PSJWZXJkYW5hLEdlbmV2YSxEZWphVnUgU2FucyxzYW5zLXNlcmlmIiB0ZXh0LXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiBmb250LXNpemU9IjExMCI+PHRleHQgYXJpYS1oaWRkZW49InRydWUiIHg9IjIxNSIgeT0iMTUwIiBmaWxsPSIjMDEwMTAxIiBmaWxsLW9wYWNpdHk9Ii4zIiB0cmFuc2Zvcm09InNjYWxlKC4xKSIgdGV4dExlbmd0aD0iMzMwIj51cHRpbWU8L3RleHQ+PHRleHQgeD0iMjE1IiB5PSIxNDAiIHRyYW5zZm9ybT0ic2NhbGUoLjEpIiBmaWxsPSIjZmZmIiB0ZXh0TGVuZ3RoPSIzMzAiPnVwdGltZTwvdGV4dD48dGV4dCBhcmlhLWhpZGRlbj0idHJ1ZSIgeD0iNjY1IiB5PSIxNTAiIGZpbGw9IiMwMTAxMDEiIGZpbGwtb3BhY2l0eT0iLjMiIHRyYW5zZm9ybT0ic2NhbGUoLjEpIiB0ZXh0TGVuZ3RoPSIzNzAiPjk5Ljk1JTwvdGV4dD48dGV4dCB4PSI2NjUiIHk9IjE0MCIgdHJhbnNmb3JtPSJzY2FsZSguMSkiIGZpbGw9IiNmZmYiIHRleHRMZW5ndGg9IjM3MCI+OTkuOTUlPC90ZXh0PjwvZz48L3N2Zz4=",
"height": 20,
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"90\" height=\"20\" role=\"img\" aria-label=\"uptime: 99.95%\"><title>uptime: 99.95%</title><linearGradient id=\"s1b79e28d\" x2=\"0\" y2=\"100%\"><stop offset=\"0\" stop-color=\"#bbb\" stop-opacity=\".1\"/><stop offset=\"1\" stop-opacity=\".1\"/></linearGradient><clipPath id=\"r1b79e28d\"><rect width=\"90\" height=\"20\" rx=\"3\" fill=\"#fff\"/></clipPath><g clip-path=\"url(#r1b79e28d)\"><rect width=\"43\" height=\"20\" fill=\"#555\"/><rect x=\"43\" width=\"47\" height=\"20\" fill=\"#4c1\"/><rect width=\"90\" height=\"20\" fill=\"url(#s1b79e28d)\"/></g><g fill=\"#fff\" text-anchor=\"middle\" font-family=\"Verdana,Geneva,DejaVu Sans,sans-serif\" text-rendering=\"geometricPrecision\" font-size=\"110\"><text aria-hidden=\"true\" x=\"215\" y=\"150\" fill=\"#010101\" fill-opacity=\".3\" transform=\"scale(.1)\" textLength=\"330\">uptime</text><text x=\"215\" y=\"140\" transform=\"scale(.1)\" fill=\"#fff\" textLength=\"330\">uptime</text><text aria-hidden=\"true\" x=\"665\" y=\"150\" fill=\"#010101\" fill-opacity=\".3\" transform=\"scale(.1)\" textLength=\"370\">99.95%</text><text x=\"665\" y=\"140\" transform=\"scale(.1)\" fill=\"#fff\" textLength=\"370\">99.95%</text></g></svg>",
"text": "99.95%",
"width": 90
},
"service": "status-badge",
"status": "success"
},
"type": "json"
}