数据库主从复制. Copy the source, paste into the official playground, done. No coordinates — every position is stated relative to something else.
node primary "Primary DB"
node repl1 "Replica 1" below-left of primary
node repl2 "Replica 2" below primary
node repl3 "Replica 3" below-right of primary
node backup "Backup" right of primary
edge primary -> repl1 "stream"
edge primary -> repl2 "stream"
edge primary -> repl3 "stream"
edge primary -> backup "nightly"npx reladraw db-replication.reladraw -o out.svgOne primary streaming to three replicas plus a nightly backup path.. Use it in DR planning docs — failover is one node away, and the picture makes that obvious.
node new_id 'New label' below anchor — placement is relative, so the solver re-flows the whole diagram instantly.edge a -> b 'your label' — labels are the fastest way to carry rates, protocols or percentages.below to right of rotates a branch sideways without touching any other line.Declare each box with node, connect them with edge, and state one position per node relative to another. Paste the source from this page into the official playground and it renders immediately.
Yes — the source is free to copy, modify and ship in docs, READMEs, books or client decks. No attribution required.
Render in the playground and export SVG, or run it locally: npx reladraw file.reladraw -o out.svg for CI-friendly builds.