Diagram language reference
DGMO is a human-readable diagram language. Write plain text, get rendered charts.
Full reference
Complete DGMO syntax documentation, chart types, and options.
View on GitHub ↗CLI tool
Install and use dgmo from the terminal. Render diagrams in scripts and CI.
Go to cli tool →npm package
Embed @diagrammo/dgmo in your own app. Parse and render programmatically.
Go to npm package →Playground
Try DGMO diagrams live in your browser. No install, no sign-up.
Go to playground →Compare tools
DGMO vs Mermaid vs PlantUML vs D2 — syntax, features, and rendering side by side.
Go to compare tools →Ecosystem
Desktop app, CLI, library, Obsidian plugin, MCP server — pick the surface that fits.
Go to ecosystem →Quick syntax reference
A taste of what DGMO looks like across different chart types.
Sequence
dgmo
chart: sequence
title: Login Flow
User -login-> Auth
Auth -findByEmail-> DB
DB -user-> Auth
Auth -token-> User Pie
dgmo
chart: pie
title: Languages
TypeScript: 45
Python: 30
Rust: 25 Flowchart
dgmo
chart: flowchart
title: CI Pipeline
Start -> Lint
Lint -> Test
Test -> Build
Build -> Deploy Timeline
dgmo
chart: timeline
title: Release History
2024-01: Alpha launch
2024-06: CLI released
2024-09: Obsidian plugin
2025-01: v1.0 stable Org Chart
dgmo
chart: org
title: Engineering
tag: Location
NY(blue)
SF(green)
Alex Chen | role: CTO, location: NY
[Platform]
Alice Park | role: Lead, location: NY
Bob Torres | role: Engineer, location: SF Entity Relationship
dgmo
chart: er
title: Pirate Fleet
ships
id: int [pk]
name: varchar
cannons: int
captains
id: int [pk]
ship_id: int [fk]
ships 1--1 captains: commanded by