Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

DBML Visualizer

Mayeenul IslamMayeenul Islam458 downloads

Renders modified DBML code blocks into interactive Entity Relationship Diagrams (ERDs).

Add to Obsidian
DBML Visualizer screenshot
  • Overview
  • Scorecard
  • Updates4

Renders DBML code blocks into interactive ERD diagrams inside Obsidian.

Overview

DBML Visualizer converts dbml fenced code blocks into an interactive, pannable and zoomable ERD (Entity Relationship Diagram). Tables rendered from DBML can be dragged for custom layout; relations are drawn between columns.

Obsidian DBML Visualizer by Mayeenul Islam

Key features:

  • Render dbml/DBML code blocks to SVG ERDs
  • Automatic layout with link lines and arrowheads
  • Pan, zoom, and drag table nodes
  • Optional title metadata via code fence info string

Installation

Two ways to install:

  • Community Plugins (recommended): Install via Obsidian's Community Plugins interface.

  • Manual (for testing):

    1. Download main.js and manifest.json from a GitHub Release.
    2. In your vault, copy the folder to .obsidian/plugins/obsidian-dbml-visualizer/.
    3. Enable the plugin in Obsidian's Settings → Community plugins.

Usage

Add a fenced code block with language dbml in a note. Example:

```dbml
Table users {
  id int [pk]
  name varchar
  email varchar
}

Table orders {
  id int [pk]
  user_id int
  total decimal
}

users.id <> orders.user_id
```

or,

```dbml
users {
  id int [pk]
  name varchar
  email varchar
}

orders {
  id int [pk]
  user_id int
  total decimal
}

users.id <> orders.user_id
```

You can pass title in the fence info string:

```dbml title="Customers ERD"
users {
  id int [pk]
  name varchar
  email varchar
}
```

Notes:

  • Use users.id <> orders.user_id style relations (supports >, <, <>).
  • The plugin registers processors for both dbml and DBML fences.

Development

Requirements:

  • Node.js (recommended v16+ or v18+)

Common commands (from the plugin root):

npm ci
npm run dev    # build with inline sourcemaps (development)
npm run build  # production build (runs esbuild with 'production' flag)

Built output: main.js (bundle produced by esbuild).

About the author

Mayeenul Islam
https://mayeenulislam.github.io/

The plugin was vibe-coded using free AI models with the knowledge of building BŪNŌN.

BŪNŌN — DBML ER Diagram visualizer
https://mayeenulislam.github.io/bunon/

License

This plugin is licensed under the MIT License — see LICENSE.

HealthExcellent
ReviewSatisfactory
About
Render DBML code blocks into interactive, pannable and zoomable SVG ERD diagrams inside Obsidian. Drag table nodes to create custom layouts, view column-to-column relations with arrowheads, and add optional titles via the code fence info string.
VisualizationCode
Details
Current version
1.0.2
Last updated
2 months ago
Created
2 months ago
Updates
4 releases
Downloads
458
Compatible with
Obsidian 1.12.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Mayeenul IslamMayeenul Islammayeenulislam
GitHubmayeenulislam
  1. Community
  2. Plugins
  3. Visualization
  4. DBML Visualizer

Related plugins

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Kroki

Render Kroki diagrams.

D2

A modern diagram scripting language that turns text to diagrams.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.

Templater

Create and use dynamic templates.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.

Persistent Graph

Save and restore the positions of nodes on your graph.