Readable by default
Clean auto-layout, calm spacing, soft colours and twelve themes, or your own. No styling needed for a good first result.
Browse themes
A text diagram language for docs and Markdown. Friendlier than Mermaid, readable by people and AI agents, hand-tunable in a visual editor.
title: Checkout flow
.svc [blue]
.store [cylinder, amber]
user "Customer" [circle, purple, icon: 👤]
group edge "Edge" [slate] {
cdn "CDN"
gw "API Gateway"
sub: auth + rate limit
}
group core "Core services" [blue] {
cart "Cart" .svc
orders "Orders" .svc
pay "Payments" .svc [green]
}
db "Postgres" .store
queue "Events" [hexagon, pink]
user -> cdn -> gw
gw -> cart: add item
gw -> orders: checkout
orders -> pay: [flow]
cart, orders -> db
pay --> queue: paid
queue ..> orders: notify
layout {
user at 24 194
cdn at 186 218
gw at 378 211
cart at 645 178
orders at 645 262
pay at 837 200
db at 1016 123
queue at 1043 238
orders->db via 768 240 804 168 852 144 ports top left
}The diagram follows the site's light or dark mode. Hover it and choose Open in editor to drag it around.
Ten diagram types share one file format. Put several side by side in one diagram, or use each on its own.
Also tree views, quadrants and kanban boards. See all diagram types.
npm install -g yuhwa
echo 'web -> api -> db [cylinder]' > hello.yu
yuhwa render hello.yu -o hello.svg # or: yuhwa edit hello.yupnpm add -g yuhwa
echo 'web -> api -> db [cylinder]' > hello.yu
yuhwa render hello.yu -o hello.svg # or: yuhwa edit hello.yuThis installs the latest release, v1.5.1. Then set up your editor for completion and diagnostics, or add yuhwa to your docs site. The getting started guide walks through it all.
yuhwa md turns fenced blocks into committed SVGs that GitHub shows as images.yuhwa guide prints the language reference, and llms.txt serves it to tools. See AI agents.