fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphFlame

A flame graph drawn in ASCII, cycling which leaf of the call tree is lit as the hot path.

Install

GraphFlame is a Svelte 5 animated ASCII flame 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 { GraphFlame } from '@fractaldesign/machines-ui';

Usage

Example
<GraphFlame title="PROFILE" />

Props

NameTypeDefault
title string Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.—
animated boolean Animate the hot-path cycle. Default true. Reduced motion freezes on the first leaf.true
speedMs number Milliseconds per leaf. Default 600.600
label string Short caption under the art; the chart itself is the message.'flame graph, width = time'
class string ''