Skip to content

Widgets, JSON and Atom feed

A status page lives on its own address. Widgets put the same live status where people already are: your website header, your docs, a README or your own app. They update by themselves and show only what the public page shows.

  • Show “All systems operational” in your site header with a small badge.
  • Show a 90 day uptime bar on your pricing or trust page.
  • Embed a small status card in your docs.
  • Read the status from your own code with the JSON summary.
  • Let customers follow incidents in a feed reader with the Atom feed.

Open Widgets on a status page (admin role). You choose the options, see a live preview and copy the code. All widgets need the page to be enabled.

An SVG image. Put it in an <img> tag, a README or anywhere that shows images.

<a href="https://cronbeat.dev/status/YOUR-SLUG"><img
src="https://api.cronbeat.dev/api/public/status/YOUR-SLUG/widget/badge.svg?style=pill&theme=auto"
alt="Status"></a>
Option Values
style pill (dot and words, the default), dot (just a colored dot) or shield (the two-tone README look).
theme auto (follows the visitor’s light or dark preference, the default), light or dark.
label Your own words instead of the status wording, up to 24 characters.

The color follows the overall status: green operational, amber degraded, red outage, blue maintenance. The words are always in the image too, so it is never color only. A bad option answers 400.

An SVG with one bar per day, colored by the worst component of that day, the overall status and the average uptime.

<img src="https://api.cronbeat.dev/api/public/status/YOUR-SLUG/widget/uptime.svg?days=90&theme=auto"
alt="Uptime, last 90 days" width="540" style="max-width:100%;height:auto">

days is 30, 60 or 90 (default 90). theme works as above. The uptime is the average of the components that have data, and a dash when there is none. Maintenance time does not lower it.

A small card with the overall status, the first six components and open incidents. It uses your appearance accent color and font. Add the container and the script:

<div data-cronbeat-status="YOUR-SLUG" data-theme="auto"></div>
<script async src="https://cronbeat.dev/widget.js"></script>

The script puts the card in a frame and sizes the frame to the card, no scrollbars. Optional attributes: data-theme (auto, light, dark) and data-max-width (for example 30rem, default 420px). Without the script you can use a plain frame:

<iframe src="https://cronbeat.dev/embed/YOUR-SLUG?theme=auto" title="Status" width="100%" height="260"
style="border:0;max-width:420px" loading="lazy"></iframe>

Only the /embed/ addresses may be framed, the rest of the application cannot.

GET https://api.cronbeat.dev/api/public/status/YOUR-SLUG/summary.json
{
"page": { "title": "Acme", "url": "https://cronbeat.dev/status/acme", "updatedAt": "2026-10-07T12:00:00Z" },
"status": { "indicator": "major", "description": "Some systems are down", "overall": "outage" },
"components": [
{ "name": "API", "status": "outage", "group": "Core", "description": "Public REST API", "uptimePercent": 99.9 }
],
"incidents": [
{ "title": "Elevated errors", "status": "identified", "impact": "major",
"startedAt": "2026-10-07T11:00:00Z", "latestUpdate": "We found the cause." }
],
"maintenance": []
}

status.indicator is none, minor, major or maintenance (operational, degraded, outage, maintenance). incidents lists the open ones. Any website may read it from the browser (Access-Control-Allow-Origin: *), no sign-in and no cookies are involved:

fetch("https://api.cronbeat.dev/api/public/status/YOUR-SLUG/summary.json")
.then((response) => response.json())
.then((status) => console.log(status.status.indicator));
https://api.cronbeat.dev/api/public/status/YOUR-SLUG/feed.atom

Add it to a feed reader or have a script poll it. Every incident is one entry with all its updates (newest first), and announced maintenance shows as an entry too. The public status page also announces the feed to browsers.

All of these are drawn from the page snapshot, so they are cheap. They are cached for 60 seconds and answer 304 Not Modified to a client that sends its ETag, so polling costs almost nothing. Each IP address may make 600 widget requests per minute. All text is escaped, a page title can never inject markup into an image or frame.

Situation Result
The page is disabled, deleted or its plan no longer allows it Every widget answers 404 (the card says it is not available).
An incident is opened The badge turns to the incident impact, the card lists it and the feed gets an entry, within about a minute.
A maintenance window is announced The JSON and the feed list it.
A custom domain is used for the page Widgets and the feed stay on the CronBeat addresses above, they are not served on the custom domain.
The page title is very long It is shortened in images.
You use an unknown option such as style=huge 400.
A site embeds your card and a visitor’s browser blocks frames The card is simply not shown, nothing else breaks.