Repository navigation
flowfig 0.4.0
Swimlanes, a timeline form, start and end marks, and two new commands: open shows a figure in your browser, and gif makes an animated GIF that you can share anywhere.
npx flowfig open docs/checkout.svg # show the figure in your default browser
npx flowfig gif docs/checkout.svg # write docs/checkout.gifNew
- Swimlanes. Set
lanes: trueand give each box anatlane and time column. Each role gets its own band with a label. Use it for a process that several teams share. - Timeline form. Set
timeline: trueto draw a roadmap with dated bars, milestones, dependency lines, a today line and a moving playhead.checkreports dates out of order. - Start and end marks. A lifecycle box can show a start dot or an end ring.
flowfig open <figure.svg>. Opens the figure in your default browser. Add--opento a render or todrawto do the same after the figure is written.flowfig gif <figure.svg> [out.gif]. Writes an animated GIF for Slack, Notion, slides, or any place that does not play SVG animation. Options:--step <n>for one step,--dark,--fps,--scale, and--mp4to also write an MP4.
Improvements
- After
npx flowfig init, agents use flowfig when you ask for a diagram and name no other tool. In Claude Code, you can also run/figure <question>. - Agent replies end with the
npx flowfig opencommand for the new figure. flowfig inithas a new screen: pick your agents with the arrow keys and the space bar.
Requirements
- Node 18 or later.
- React 18 or later, only for the
<Flow />player. flowfig gifuses Chrome, Edge, Chromium or Brave from your machine. SetCHROME_PATHto choose one.flowfig gif --mp4also needsffmpegon yourPATH.
Upgrade
No breaking change. Run npx flowfig init again in your repo to get the new agent instructions.
Full Changelog: v0.3.0...v0.4.0