diagrammo409 downloads40+ diagram types in your notes from one plain-text language. Process, architecture, data, project, hierarchy — diffable, searchable, mobile-friendly, with live preview and themed palettes.
Write a dgmo code block and it renders as a diagram inline in your notes — reading mode and live preview, desktop and mobile.
Diagrammo gives you 40+ chart types from one small plain-text language: data viz, software architecture, project planning, hierarchies, and more. Because the diagrams are plain text, they're searchable in Obsidian, diffable in git or Sync history, and never go stale the way an exported image does.

Every chart type from @diagrammo/dgmo renders in Obsidian:
| Category | Types |
|---|---|
| Data | arc, area, bar, bar-stacked, chord, doughnut, function, heatmap, line, multi-line, pie, polar-area, radar, sankey, scatter, slope |
| Business | cycle, funnel, journey-map, org, pyramid, quadrant, tech-radar, venn, wordcloud |
| Project | gantt, kanban, timeline |
| Software | boxes-and-lines, c4, class, er, flowchart, infra, mindmap, sequence, sitemap, state, wireframe |
Run Diagrammo Diagrams: Create example note with all chart types from the command palette to see every chart type rendered with working sample data. Full language reference at diagrammo.app/docs.
Write a fenced code block with the dgmo language tag:
```dgmo
bar Quarterly Revenue
x-label Quarter
y-label Revenue ($M)
Q1 4.2
Q2 4.8
Q3 5.1
Q4 5.9
```
The diagram renders inline in reading mode and live preview. Hover any rendered diagram to reveal a small open-in-new-tab icon in the top-right corner — click it to pop the source open in online.diagrammo.app for live editing, with the same palette and theme.
Open the command palette (Cmd/Ctrl + P) and run:
Diagrammo Diagrams: Create example note with all chart types
This creates a Diagrammo Examples.md file in your vault with working examples of every supported chart type.
| Setting | Description | Default |
|---|---|---|
| Palette | Color palette for all diagrams — all 7 dgmo palettes available (slate, atlas, blueprint, tidewater, nord, catppuccin, tokyo-night) | slate |
| Theme | Light, dark, or auto (follows Obsidian's theme) | auto |
Or install directly from community.obsidian.md/plugins/dgmo.
npm install
npm run build # One-shot build → main.js (esbuild, CJS bundle)
npm run dev # Watch mode (rebuilds on save, inline sourcemaps)
The build bundles @diagrammo/dgmo and its rendering dependencies into a single main.js in the repo root, which Obsidian loads directly. obsidian, electron, and CodeMirror packages are externalized.
src/
├── main.ts # Plugin lifecycle, markdown post-processor, example note command
├── render.ts # Rendering dispatcher (delegates each chart type to @diagrammo/dgmo)
├── settings.ts # Settings tab UI (palette dropdown, theme override)
└── examples.ts # Example note content with all chart types
@diagrammo/dgmo ^0.14.1 — diagram parsing and rendering (bundled by esbuild; brings its own transitive rendering deps)obsidian ^1.12.3 — Obsidian plugin API (dev only, externalized)npm run dev (watch mode).obsidian/plugins/dgmo/ folderdgmo code block — changes rebuild automaticallyversion in both package.json and manifest.json (must match)npm run build<version> (e.g., 1.0.1)main.jsmanifest.jsonstyles.cssThe plugin is listed in the Obsidian Community Plugins registry. New versions are picked up automatically from GitHub releases — just publish a new release with the required files attached.
MIT