PromptLoopDiagram
An ASCII diagram of the prompt-feedback loop, stepping through a conversation and lighting each node and connector as the cycle advances.
Install
pnpm add @fractaldesign/machines-ui import '@fractaldesign/machines-ui/style.css';
import { PromptLoopDiagram } from '@fractaldesign/machines-ui';Preview
<PromptLoopDiagram autoPlay speedMs={1200} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| autoPlay | boolean | true | Start playing on mount. Default true. |
| speedMs | number | 1200 | Milliseconds per step. Default 1200. |
| showControls | boolean | true | Show the playback controls. Default true. |
| class | string | '' |
API
- class forwarded to the outer element
- a11y honours prefers-reduced-motion
Theming
CSS custom properties this component reads.
- --border
- --graph-accent
- --text-muted
- --text-primary
- --text-secondary
src/lib/components/diagram/PromptLoopDiagram.svelte