draw.io
unlistedby somesanity
Create and edit diagrams with draw.io (diagrams.net), locally and offline.
πΆ Plugin draw.io for obsidian

π Features
- π§© Interactivity β bind your note links to shapes, add external links, and insert markdown fragments!
- π Works 100% offline β No internet required!
- π Privacy-first β Runs a local server on your machine.
- π Mermaid & LaTeX - Support Mermaid and LaTeX, and export pdf.
- πΌοΈ Support Canvas - Use diagram in Canvas, linking notes, add external links!
β¨ Interactive diagrams

ποΈ Linking shapes with notes & external links
To link your notes or external resources to shapes, right-click on a shape in the editor and select Add link. Then, insert the link to your note or external resource.
π linking notes demo:

π creating an external link demo:

π Markdown fragments
Markdown fragments are pieces of markdown that you can add to diagrams.
Right-click on the shape or element you want to bind a markdown fragment to, then select Add data....
The data name should follow the pattern md-number, for example: md-1, md-2.
Next, insert the markdown text into the property.
π Adding a markdown fragment demo:

π Mermaid & LaTeX
You can use mermaid and LaTeX (Default support in draw.io)

πΌοΈ Canvas support
Use the diagrams in canvas! Link your notes, add external/internal links and markdown-fragments!

β How It Works
This plugin launches a local web server that serves the Draw.io web app directly from your machine.
- When you open your Obsidian vault and enable the plugin, it spins up the server automatically.
- You can then create, edit, and save diagrams directly within Obsidian β completely offline.
π¦ Installation Guide
there are 2 ways:
- using plugin for obsidian - BRAT
- manually install
π The
drawioclientfolder, which contains the core Draw.io application, is crucial for this plugin to function correctly. Because GitHub doesn't allow direct folder uploads and to ensure faster downloads, thedrawioclientcontent is provided as an archive. A small script (drawIoClientManager.ts) will automatically extract it for you upon installation. Please allow a brief moment for this process to complete.!

This only needs to be done once.
π Install with using BRAT

- install BRAT from repository or from obsidian plugin list
- open BRAT plugin
settings> clickAdd beta-plugin - paste in input
https://github.com/somesanity/draw-io-obsidianselect version and click toAdd plugin.
π manually install
-
Clone or download this repository:
git clone https://github.com/somesanity/draw-io-obsidianOr download the ZIP and extract it.
-
Build the plugin
npm install npm run dev -
Move the plugin files to your Obsidian vault:
-
Go to your Obsidian vault:
.obsidian/plugins/ -
Create a folder, e.g.,
draw-io. -
Copy these files and folders:
manifest.json main.js drawioclient/ styles.css
Your plugin directory should look like this:
.obsidian/ βββ plugins/ βββ draw-io/ βββ manifest.json βββ main.js βββ styles.css βββ drawioclient <-- This folder is essential! -
-
Enable the plugin in Obsidian:
- Open Settings β Community Plugins β Enable plugin.
π οΈ How update draw.io webapp
This pluginβs main benefit is that itβs just a connector between draw.io and Obsidian. It isn't locked to any fixed version; you can manually update it by swapping the webapp folder with the one from the official repository. Even if the plugin is no longer maintained, you can keep draw.io current on your own.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.