Diagram language reference

DGMO is a human-readable diagram language. Write plain text, get rendered charts.

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

Supported chart types

Click any chart type to try it in the playground with a pre-filled example.