fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphJapa

A mala (prayer-bead ring) drawn in ASCII, with a marker travelling bead by bead around the circle.

Install

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

Usage

Example
<GraphJapa title="MALA" />

Props

NameTypeDefault
title string Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.—
animated boolean Animate the marker around the mala. Default true. Reduced motion freezes a mid-mala frame.true
cols number Width of the scene in characters. Default 60.60
rows number Height of the scene in rows. Default 22.22
beads number Total beads per mala. The mala is 108; the counter shows current/total. Default 108.108
speedMs number Milliseconds per bead. Default 110.110
label string Short caption under the art; the art itself is decorative.'a breath for every bead'
class string ''