Make a two-node flow, inspect its light and dark exports, then change a label by editing its source. This lesson uses the released SlopCamera CLI and needs no account, paid model, browser, or tldraw installation.
Before starting, install SlopCamera so the slopcamera command is available. Use a new empty working directory so the lesson cannot replace existing artwork.
mkdir slopcamera-first-diagram
cd slopcamera-first-diagram
slopcamera diagram init first.diagram.jsonOpen first.diagram.json. Its two shapes are named source and result, labeled Source and Result, with one directed edge. Their horizontal stack supplies the spacing; the file remains the editable source.
slopcamera diagram check first.diagram.json --strict
slopcamera diagram render first.diagram.jsonThe strict check should report no findings. Rendering uses the document's name, example-flow, for its export filenames. It creates these five files beside the JSON:
example-flow.tldrexample-flow.light.svgandexample-flow.dark.svgexample-flow.light.pngandexample-flow.dark.png
Open both PNG files. You should see the same two boxes and connecting arrow on backgrounds suited to light and dark presentation. The .tldr file is editable interchange; you do not need to open it to complete the lesson.
In first.diagram.json, find the shape whose id is result. Change only its label from "Result" to "Reviewed", then save the file.
slopcamera diagram check first.diagram.json --strict
slopcamera diagram render first.diagram.jsonOpen the PNG again. The right-hand box now reads Reviewed. The render command replaced the five exports while keeping your JSON source. Editing a PNG directly would not have preserved that relationship.
You now have one editable source and five derived outputs. For your own diagram, change the labels, shapes and relationships in that source. Use visual communication guidance when the relationships become more complex, or SDK surfaces when a script should check and render it.
The source-to-film example shows three media inputs converging in a project, then branching into preview and delivery. Its second source changes “Delivery” to “Social delivery” while preserving layout and connectors. The online lesson includes both rendered examples and all five native exports. This is a separate positioned diagram; the two-node lesson above uses a coordinate-free stack.
Lay a sequence out horizontally. A diagram about two to three times wider than tall fits a page column without becoming a tower, and its labels stay readable on a phone. A stack like the two-node lesson above suits two to four cards in one row. For a longer sequence, fold it into two rows instead of stacking it vertically.
This source places five equal cards on a 1200×520 canvas. Author, Check and Render run left to right, the flow turns down at the right edge, and Review points back to Deliver. Four explicit arrows state the order, and none crosses the diagram.
The diagram describes a working sequence. Its check and review cards do not run an automatic scheduler. Download either theme or the editable canvas, or use the source recipe to render both versions from a checkout with locked dependencies.
Since v3.11.0, slopcamera diagram check reports a tall-aspect finding when a
canvas is more than 1.5 times taller than wide, and --strict fails on it.
Keep the graph and change its presentation. The second source retains all five labels, the four arrows and every card dimension. Its configuration supplies warm light and ink dark palettes, local Nebula Sans Bold files and five original line icons. The first version uses Book labels without icons.
SVG and PNG preserve the chosen font and palette. The editable canvas preserves the cards, labels, bound arrows and movable icons, but uses tldraw's own named font and color styles. The recipe records font and icon provenance; no external font service or paid model is required.