Skip to content
v1.5.1

yuhwaDiagrams that look good and stay where you put them

A text diagram language for docs and Markdown. Friendlier than Mermaid, readable by people and AI agents, hand-tunable in a visual editor.

One file, plain text ​

Checkout flowCheckout flowEdit
yuhwa
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.

More than flowcharts ​

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.

Start in a minute ​

sh
npm install -g yuhwa
echo 'web -> api -> db [cylinder]' > hello.yu
yuhwa render hello.yu -o hello.svg   # or: yuhwa edit hello.yu
sh
pnpm add -g yuhwa
echo 'web -> api -> db [cylinder]' > hello.yu
yuhwa render hello.yu -o hello.svg   # or: yuhwa edit hello.yu

This 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.

Fits your workflow ​

Released under the MIT License.