Codewerk
status badge
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). With value and thresholds the color follows the state (for example uptime 99.95 % above 99.9 green, above 99 yellow, else red; or latency where lower is better). Text color switches to dark on light backgrounds for.
POST https://code.halowerk.com/v1/status-badgeInputs
| Field | Type | Required | Description |
|---|---|---|---|
| label | string | Yes | |
| message | string | No | |
| value | number | No | |
| unit | string | No | |
| decimals | integer | No | |
| thresholds | object | No | |
| color | string | No | |
| label_color | string | No | |
| style | string | No |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"label"
],
"properties": {
"label": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"message": {
"type": "string",
"minLength": 1,
"maxLength": 60
},
"value": {
"type": "number"
},
"unit": {
"type": "string",
"maxLength": 10
},
"decimals": {
"type": "integer",
"minimum": 0,
"maximum": 6
},
"thresholds": {
"type": "object",
"additionalProperties": false,
"required": [
"ok",
"warn"
],
"properties": {
"ok": {
"type": "number"
},
"warn": {
"type": "number"
},
"higher_is_better": {
"type": "boolean",
"default": true
}
}
},
"color": {
"type": "string",
"maxLength": 20
},
"label_color": {
"type": "string",
"maxLength": 20
},
"style": {
"type": "string",
"enum": [
"flat",
"flat-square",
"for-the-badge"
],
"default": "flat"
}
}
}Published input example
{
"label": "uptime",
"value": 99.95,
"unit": "%",
"thresholds": {
"ok": 99.9,
"warn": 99,
"higher_is_better": true
}
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea