uptimebar
Availability of a service in the last 90 days as one bar per day, with the uptime, the current state, notes of incidents, a tooltip and keyboard access
The status line of a service: one bar per day for the last 90 days (website, API, the MCP server of the AI agents...), coloured by the uptime of the day, with the average uptime and the current state on top. Degraded days are striped and down days solid, so the state is not told by colour alone. In narrow boxes it shows the last 60 or 30 days, so a bar is never thinner than 3px.
The model is an Array with one item per day, the last one is today:
[100, 99.98, null, 97.1, ...]
// or
[{ uptime: 98.3, note: 'Database maintenance', date: '2026-10-25' }, ...]uptimeis in percent;nullis a day without data (grey). Withoutdate, the dates are counted back from today.- With fewer items than
days, the first days are days without data. - The state of a day: from
goodup it is operational, fromwarnup degraded, below it down. The current state is the state of the last day with data. - The bars have one tab stop: the arrows go through the days,
HomeandEndto the first and the last one, a screen reader announces the date, the uptime, the state and the note. - The label is the content of the tag, so it can contain markup and
@(...)translations. The texts under the bars ("89 days ago", "Today") come fromIntlin the language of the page.
Configuration:
label {String}the label when the content of the tag is empty (default:'')style {String}card(a box) orminimal(no box) (default:card)days {Number}the count of days (default:90)height {Number}the height of the bars in pixels (default:32)good {Number}the uptime in percent from which a day is operational (default:99.9)warn {Number}the uptime in percent from which a day is degraded; below it is down (default:99)states {String}the names of the states from down to operational separated with|, example:Down|Degraded|Operational(default:'')caption {String}a text after the average uptime, example:uptime(default:'')decimals {Number}the maximum count of decimals of the uptime (default:2)locale {String}a language for the numbers and dates, example:es-ES; empty is the language of the page (default:'')
Runtime: jComponent v20, no dependencies.




