Getting Started
Install kymo, write a six-line diagram, and render it to SVG — all in about five minutes.
Just want to try it? Skip installation entirely and open the browser playground: type
.kymoon the left, watch the SVG appear on the right.
Install
kymo ships as two independent, feature-equivalent packages — pick whichever fits your stack.
Both provide the same kymo command-line tool and the same .kymo language.
Prefer to edit with a live preview? Install the kymo VS Code extension for side-by-side
rendering of .kymo and .bpmn files as you type:
Marketplace listing.
Verify the CLI is on your PATH:
Your first diagram in five minutes
1. Create a file named hello.kymo:
Three things are happening here:
title:adds a heading at the top of the canvas.world outer "…" { … }is a region — a labelled container. Inside it sit two components, each written asid shape/icon/accent "Name" "Subtitle", placed with@ (x, y).greeter --> visitor : "waves"is an edge — an arrow with a label.
No canvas: line is needed: when you omit it, kymo auto-sizes the canvas to fit your
content (plus a 30-px margin).
2. Render it:
3. Open hello.svg in any browser or image viewer. That's a full diagram — labelled
container, two icon nodes, and a connecting arrow.
Animate and export
The same source renders to several targets. The first matching flag wins; with no flag you get a static SVG.
kymo accepts three input kinds: .kymo (the DSL), .bpmn (BPMN 2.0 XML), and .py
(a Python module exposing a DIAGRAM).
Next steps
- The
.kymoLanguage — learn every building block. - Cookbook — start from a complete, real-world diagram.
- FAQ & Troubleshooting — when something doesn't render the way you expect.