GraphPulse

Import

svelte
import { GraphPulse } from 'markgraphy';

Basic usage

svelte
<GraphPulse
  title="example"
  animated={true}
  length={60}
/>
[ example ]

up slow down

97%

nowlast check 0s ago

97 percent uptime over 60 checks

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge as [ TITLE ]. Uppercase, 1–2 words.
animated?booleantrueAppend a live blip every interval. Default true. Reduced motion freezes a pre-filled window.
length?number60Window size in blips, newest at the right. Default 60.
intervalMs?number1000Milliseconds between appends. Default 1000.
okRate?number0.94Chance an appended blip is ok; about 4% of the rest degrade, the rest go down. Default 0.94.
feed?() => PulseStatusReplace the built-in generator with your own stream of statuses.
seedNum?number11Seed for the reproducible generator. Default 11.
from?string'now'Label at the left edge of the caption row. Default ‘now’.
class?string''

Exported types

  • PulseStatus
  • GraphPulseProps

Reduced motion

Animation is disabled under prefers-reduced-motion.