uptime
GraphUptime
One glyph per day for ok, degraded, down or no data, wrapping every 30 days. Shorthand keeps long runs short: `ok*40 down*2 ok*48`.
- use it
- Good for a status per day, or the blast radius of an outage.
- instead
- A heatmap or an activity grid.
ninety days
One glyph per day, wrapped every 30. Percent is the share of ok days. `ok*18` is eighteen ok days, so a quarter fits on one line.
█ up▒ slow· down
94 percent uptime over 90 days, Jun 1 to Aug 29<GraphUptime title="API" from="Jun 1" to="Aug 29">
ok*18 degraded ok*22 down*2 ok*17 degraded*2 ok*28
</GraphUptime>install
command
incident window
days as one string. empty days sit as dashes so a gap stays visible.
█ up▒ slow· down
80 percent uptime over 10 days, Mon to Friimport { GraphUptime } from "@/registry/default/graph-uptime/graph-uptime"
<GraphUptime
title="WEBHOOKS"
from="Mon"
to="Fri"
days="ok ok ok degraded ok empty empty ok down ok ok ok"
/>| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| days | UptimeStatus[] | "ok ok down" | — | ok, degraded, down, or empty. Optional when children are Markdown. |
| children | Markdown | — | ok*40 degraded ok*20 down*2 ok*27 |
| from | string | — | Label at the start of the range. |
| to | string | — | Label at the end of the range. |
| columns | number | 30 | Days per row. Short series are not padded to this width. |
| glyphs | "shade" | "ascii" | "hash" | "bar" | string[] | "shade" | Character set. shade is ·░▒▓█. ascii is .- =#@. Pass a preset or your own characters. |
| palette | "mono" | "duo" | "multi" | "mono" | mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents. |
| corner | string | "+" | Character at each corner of the frame. |
| frame | "box" | "corners" | "rule" | "none" | "box" | box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content. |
| className | string | — | Passed to the outer frame. |