Provider status

Is each AI provider or model up? A list or a grid with a status, latency, when it was last checked and the last few checks, or one pill that sums them up: "All systems operational", "2 degraded".

Provider status

No script. Your server checks the providers and renders the result; a re-render (Livewire's wire:poll) brings the next one. Only the pill speaks, and only when the overall state changes.

Use it

<x-ds::provider-status :providers="[
    ['name' => 'OpenAI', 'status' => 'operational', 'latency' => 412, 'checkedAt' => $checks['openai']->at, 'href' => 'https://status.openai.com', 'uptime' => $checks['openai']->last(20)],
    ['name' => 'Anthropic', 'status' => 'degraded', 'message' => 'Elevated errors on long requests', 'checkedAt' => $checks['anthropic']->at],
]" />

A summary pill in a header, kept fresh by Livewire:

<div wire:poll.60s>
    <x-ds::provider-status variant="inline" :providers="$providers" href="/status" />
</div>

Items in the slot, with your own logos:

<x-ds::provider-status variant="grid">
    @foreach ($providers as $provider)
        <x-ds::provider-status-item :name="$provider->name" :status="$provider->status" :latency="$provider->latency_ms" wire:key="provider-{{ $provider->id }}">
            <x-slot:logo><img src="{{ $provider->logo }}" alt=""></x-slot:logo>
        </x-ds::provider-status-item>
    @endforeach
</x-ds::provider-status>

The statuses

StatusAlso takenMarkTone
operationalup, ok, healthy, none, truea filled ticksuccess
degradeddegraded_performance, partial_outage, minora filled trianglewarning
downmajor_outage, outage, offline, falsea filled ✕danger
maintenanceunder_maintenance, scheduleda wrenchaccent
unknownanything elsean outlined ?neutral

Every status is written as a word beside its mark. The pill takes the worst: down, then degraded, then maintenance, then unknown.

Props: provider-status

PropTypeDefaultWhat it does
providersarray[]Rows: name, status, message, latency (ms), checkedAt, href, logo, uptime. Or items in the slot; both are counted.
variantlist grid inlinelist
labelstringAI providersNames the list.
hrefstring—inline: the pill links here.
statusTextarray—[status => words].
summaryTextarray—The pill's words: all, none, a one|many form per status (:count degraded), and overall.{status}, what the live region says.

Props: provider-status-item

PropTypeDefaultWhat it does
namestringrequired
statusas aboveunknown
messagestring—What is wrong, in a line.
latencynumber—Milliseconds.
checkedAtdate or ISO 8601 string—Shown relative, "Checked 2 minutes ago", in a time element with the full date as its title.
hrefstring—The provider's status page; the name links there. Only http(s).
logostring—An image URL. The logo slot takes markup.
uptimearray—The last checks, oldest first, as statuses or booleans: a row of small blocks named "Last 20 checks: 18 operational, 1 degraded, 1 down".
statusTextarray—

Accessibility

  • A list named by label. Each row writes its status as a word.
  • The uptime blocks are one image whose name counts them, so colour is never the only carrier.
  • The pill holds the page's only live region for this: a polite one saying the overall state ("Degraded performance"). A poll that changes nothing, or only a count, is silent; one that changes the state is read once.

Don't

  • Don't check providers from the browser. Run the checks on a schedule on your server and render the stored result.
  • Don't poll every few seconds. A minute is plenty for a status.

From the package repo: edit this page on GitHub.

Was this page helpful?