fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphCron

A live, character-based preview of a cron schedule, showing matching minute and calendar positions.

Install

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

Usage

Example
<GraphCron title="WEEKDAYS" expr="0 9 * * 1-5" count={8} />

Props

NameTypeDefault
title string Caption drawn on the top edge as `[ TITLE ]`.—
expr string Standard 5-field cron expression: `min hour dom mon dow`.—
count number Number of next runs to render on the tick timeline. Default 8.8
baseTime number Base time as ms since epoch; next runs are computed from this point. Default now.—
cols number Scene width in characters. Default 60.60
animated boolean Animate the tick highlight. Default true. Reduced motion freezes on first run.true
speedMs number Milliseconds per tick. Default 220.220
label string Caption rendered muted under the timeline.''
class string ''