Menu

Getting started

Install the skemo binary, write a file, render it. Two minutes.

Install

On Linux (x86_64, ARM) and macOS (ARM):

curl -fsSL https://skemo.net/install.sh | sh

The script downloads the latest release, checks its SHA-256 and installs it into ~/.local/bin (SKEMO_BIN changes the folder, SKEMO_VERSION picks a version). On Windows, take skemo-windows-x86_64.exe from the releases page. skemo is a single executable: no Node, no browser, no Graphviz; fonts and theme are built in.

skemo --version

Each release has one binary per platform, always under the same names, with a SHA256SUMS file beside them: skemo-linux-x86_64, skemo-linux-arm64 (static), skemo-macos-arm64, skemo-macos-x86_64, skemo-windows-x86_64.exe, at https://github.com/skemonet/skemo/releases/download/<version>/<name>. This page is also https://skemo.net/install.

A first diagram

Create hello.skemo:

{"skemo":1,"name":"first.skemo","source":"card#a Hello\n to(b)\ncard#b World\n","theme":"light"}HelloWorld
{"skemo":1,"name":"first.skemo","source":"card#a Hello\n to(b)\ncard#b World\n","theme":"dark"}HelloWorld
first.skemo
card#a Hello
  to(b)
card#b World

and render it:

skemo hello.skemo                 # writes hello.png next to the source
skemo hello.skemo -o hello.svg    # the extension picks the format: svg, webp, html, gif, apng

A card is card#id Title. An arrow is written inside the card it leaves: to(b) under card#a draws a → b.

Start from a sample

skemo init demo.skemo --css   # demo.skemo and skemo_style.css, which it includes; overwrites nothing
skemo demo.skemo
skemo demo.skemo --watch        # live preview on http://127.0.0.1:8710

The diagram names its stylesheet on its first line, diagram(dir="down" css="skemo_style.css"): the file sits next to it. Without --css, init writes the diagram alone.

watch re-renders on every save and the browser page reloads by itself.

Check before rendering

skemo lint example.skemo

Errors come with their line, their column and a hint, for instance unknown target « databse »: did you mean « database »?. The exit code is 1 when there are errors. See Errors and warnings.

Next steps

Read the syntax, then cards and zones and arrows. If you prefer to draw, the skemo editor shows the text and the drawing side by side and writes your moves back into the file.