1<script lang="ts">2 import { StatusPage, StatusService, worstStatus, type StatusPoint } from 'omaris';34 function history(seed: number, blips: Record<number, StatusPoint['level']> = {}): StatusPoint[] {5 const today = new Date('2026-09-08T12:00:00Z');6 return Array.from({ length: 90 }, (_, index) => {7 const date = new Date(today.getTime() - (89 - index) * 86_400_000);8 const level = blips[index] ?? ((index * seed) % 53 === 0 ? 'degraded' : 'operational');9 return { date, level, uptime: level === 'operational' ? 100 : 96.4 };10 });11 }1213 const services = [14 { name: 'API', description: 'REST and GraphQL endpoints', history: history(7) },15 { name: 'Dashboard', description: 'app.example.com', history: history(11, { 84: 'degraded' }) },16 { name: 'Webhooks', history: history(13) }17 ];18</script>1920<StatusPage21 level={worstStatus(services.map((service) => service.history.at(-1)!.level))}22 updatedAt={new Date('2026-09-08T12:00:00Z')}23 class="w-full"24>25 <div class="flex flex-col rounded-shape-lg border border-border px-4">26 {#each services as service (service.name)}27 <StatusService {...service} class="border-b border-border last:border-b-0" />28 {/each}29 </div>30</StatusPage>