fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphSequence

An animated sequence diagram: four participants (Browser, Server, DB, Worker) on lifelines, with request messages flowing between them in order and activations marking who is busy.

Install

GraphSequence is a Svelte 5 animated ASCII sequence component in @fractaldesign/machines-ui. It works in SvelteKit and in any Svelte 5 app.

pnpm add @fractaldesign/machines-ui

Import

import
import '@fractaldesign/machines-ui/style.css';
import { GraphSequence } from '@fractaldesign/machines-ui';

Usage

Example
<GraphSequence title="REQUEST" />

Props

NameTypeDefault
title string Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.—
animated boolean Animate the message flow. Default true. Reduced motion freezes the first message as current.true
cols number Width of the scene in characters; at least 40 so four participants fit. Default 68.68
rows number Height of the scene in rows; at least 10 so header + 6 messages fit. Default 12.12
speedMs number Milliseconds per message. Default 600.600
label string Short caption under the art; the diagram itself is the message.'who calls who, in order'
class string ''