somesanity42k downloadsCreate and edit diagrams with draw.io (diagrams.net), locally and offline.

⚠️ at the moment, work ONLY the reading mode

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 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:

You can literally put anything into a diagram that Obsidian is capable of rendering, including rendering features added by plugins.
for example:


You can use mermaid, plumt and LaTeX (native support draw.io)

Use the diagrams in canvas! Link your notes, add external/internal links and markdown-fragments!

Diagrams created by the plugin use the .drawio.svg extension. The file is still a regular SVG file; the .drawio part is added so the plugin can recognize that the SVG was created by it.
diagram.drawio.svg — ✔️diagram.svg — ❌If you remove the .drawio part, the plugin will no longer recognize the file as a draw.io diagram.
You can open the editor using a Command Palette command:

Or you can assign and use a keyboard shortcut:

There are three ways to edit a diagram:



This plugin launches a local web server that serves the Draw.io web app directly from your machine.
there are 2 ways:
install from the plugin page or open this link obsidian://show-plugin?id=drawio in new browser tab
after downloading enable plugin, then go to settings, scroll down and click on the downlaod button draw.io client
manually install
after downloadingб
downlaod from Releases
main.js manifest.jsonstyle.csscreate Folder in the .obsidian folder (where other plugin) and then move the file to the folder.
.obsidian/ └── plugins/ └── draw-io/ ├── manifest.json ├── main.js ├── styles.css
enable plugin, then go to settings, scroll down and click on the downlaod button draw.io client

This software is licensed under the GNU GPLv3.