> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crispstats.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> CrispStats is a hosted, privacy-first web analytics product. It has no self-hosted edition, no session replay, no heatmaps, no A/B testing, no mobile SDKs and no data import except a site's history from a Plausible export (Settings, Import and export).
> The script global is crispstats(...), site keys start with cs_pk_ and secret API keys start with cs_sk_. The script is served from https://in.crispstats.com/d.js and the REST API lives at https://crispstats.com/api/v1.
> There is no npm package to install. Integrations copy the script tag, the queue stub, crispstats.d.ts and proxy code from these docs or from Settings, Tracking code in the dashboard. A first-party proxy forwards one path of the site to https://in.crispstats.com/p/ and forwards only content-type, user-agent, accept-language, referer, origin, if-none-match and x-forwarded-for, never cookies.

# Uptime widgets: status and 90 days of uptime

> Show the current status and uptime of one of your monitors as a pill, a strip with one bar per day for 30 or 90 days, or a README badge.

An uptime widget shows whether one of your [uptime monitors](https://docs.crispstats.com/health/uptime.md) is up, and how much of the last 30 or 90 days it was. It shows the monitor's name, never its URL.

![A pill with an orange dot reading Operational, 100% uptime, and the CrispStats mark](https://mintcdn.com/crispstats/E7Fpqdyq9pa1UkLm/images/widgets/status-pill-light.png?fit=max\&auto=format\&n=E7Fpqdyq9pa1UkLm\&q=85\&s=99877ca3cecc439c2a50baf8cc53be9e)

Status pill

![A strip headed Marketing site with All systems normal, 90 daily bars and 100% uptime over 90 days](https://mintcdn.com/crispstats/E7Fpqdyq9pa1UkLm/images/widgets/uptime-strip-light.png?fit=max\&auto=format\&n=E7Fpqdyq9pa1UkLm\&q=85\&s=3f2e03249ea21109afbc232b78377d88)

90-day uptime strip

## Layouts

| Layout | What it shows |
| - | - |
| Pill | A dot, the status in one word and the uptime: `Operational · 99.98% uptime`. At size Small only the figure fits: `99.98% uptime`. Screen readers hear the whole sentence, such as "All systems normal, 99.98% uptime over 90 days". |
| Strip | The monitor's name, the status in words (`All systems normal`), one bar per day and the footer `99.98% uptime over 90 days`. |
| Badge | An image with `uptime 90d` on the left and `99.98%` on the right. |

**Monitor** picks which monitor the widget follows, and **Days** sets the window to 30 or 90 days. **Label** replaces the monitor's name as the strip's heading; the status words stay.

## What each state looks like

| Monitor | Pill | Strip | Dot |
| - | - | - | - |
| Up | `Operational · 99.98% uptime` | `All systems normal` | Accent colour |
| Slower than usual | `Degraded · 99.98% uptime` | `Slower than usual` | The style's ink |
| Down | `Down · 99.90% uptime` | `Down right now` | The style's ink |
| Paused | Hidden | Hidden | |

On the strip, each day is one bar: the accent colour for a day at 99.9% or more, a lighter accent for a day with some downtime, the style's ink for a day that was down throughout, and an empty track for a day without checks, such as before the monitor existed.

If you delete the monitor, the widget stops showing everywhere, the same as a deleted widget. Pick another monitor in the widget to bring it back.

## How fresh it is

CrispStats recomputes the status at most every 120 seconds, and the script refreshes the widget every 10 minutes while the tab is visible. For alerts the moment a monitor goes down, use [alerts](https://docs.crispstats.com/alerts/overview.md); for a full public page with incidents, use the [status page](https://docs.crispstats.com/share/status-page.md).

## Add it

1. Create a monitor in **Uptime** if you have none.
2. Open **Settings**, **Sharing and widgets** and pick **Status pill** or **90-day uptime strip**.
3. Choose the monitor and the days, select **Create widget** and copy the code:

```html wrap theme={"theme":{"light":"github-light","dark":"github-dark"}}
<script async src="https://in.crispstats.com/w/v1/loader.js"></script>
<crispstats-widget widget="cs_wd_7Hq2Lx9PzK4mVt8RbN3cW1yD" style="display:inline-block;vertical-align:middle;width:320px;height:92px"></crispstats-widget>
```

Your own code carries your widget's token instead of `cs_wd_7Hq2Lx9PzK4mVt8RbN3cW1yD`. Other forms are on [Embed a widget](https://docs.crispstats.com/share/widgets/embed.md).

## Next steps

> [card] [Uptime monitoring](https://docs.crispstats.com/health/uptime.md)
>
> How checks, incidents and recovery work.

> [card] [Status page](https://docs.crispstats.com/share/status-page.md)
>
> A public page with every monitor and recent incidents.

> [card] [Embed a widget](https://docs.crispstats.com/share/widgets/embed.md)
>
> Script, iframe, README, Notion, shields.io and React.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.