Plain DBML
The same language as dbdiagram.io, parsed by @dbml/parse, Holistics' open-source DBML parser. Files open there and here unchanged.
A fence is enough
Write a ```dbml block in Markdown and get a diagram you can zoom, pan, drag, open fullscreen, print and export as SVG or PNG.
Laid out for you
ELK places tables and routes relationships to the exact columns. Keep hand-made positions in a small layout file next to your schema.
Every DBML feature
Table groups, header colours, sticky notes, partials, enums, notes, multi-file projects andDiagramViews all render.
From a code fence to a diagram
You write
```dbml title="Blog" height=320
Table users {
id integer [pk]
email varchar [unique]
}
Table posts {
id integer [pk]
author_id integer [ref: > users.id]
title varchar
}
```
Readers get