draw.io

approved

by somesanity

Create and edit diagrams with draw.io (diagrams.net), locally and offline. - This plugin has not been manually reviewed by Obsidian staff.

โ˜… 142 starsโ†“ 43,195 downloadsUpdated 1mo agoGPL-3.0

๐Ÿ”ถ Plugin draw.io for obsidian

demo

๐Ÿš€ 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 - the draw.io native support Mermaid and LaTeX.
  • ๐Ÿ–ผ๏ธ Support Canvas - Use diagram in Canvas, linking notes, add external links!

โœจ Interactive diagrams

โš ๏ธ at the moment, work ONLY the reading mode

docs/demo.gif

๐Ÿ–‡๏ธ 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:

docs/demo.gif

๐ŸŒ creating an external link demo:

docs/demo.gif

๐Ÿ“„ 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:

docs/demo.gif

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

for example:

  • random note random-note-demo.gif
  • complex dataviewjs scripts complex-interactive-demo

๐Ÿ“ Mermaid & LaTeX

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

docs/LaTeX&mermaid.gif

๐Ÿ–ผ๏ธ Canvas support

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

canvas-demo.gif

๐Ÿ–ฑ๏ธ How to Use

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.

How to Open the Editor

You can open the editor using a Command Palette command:

Open editor via Command Palette

Or you can assign and use a keyboard shortcut:

Open editor via keyboard shortcut

How to Edit Diagrams

There are three ways to edit a diagram:

  1. Using the context menu โ€” right-click the diagram link and select "Edit draw.io Diagram".

Edit diagram via context menu

  1. Using a keyboard shortcut โ€” place the cursor on the diagram link in editing mode and press the assigned shortcut.

Edit diagram via keyboard shortcut

  1. Using the modal editor shortcut โ€” place the cursor on the diagram link in editing mode and press the modal editor shortcut.

Edit diagram via modal editor shortcut

โ“ 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:

  1. 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

  1. manually install

  2. after downloadingะฑ

๐Ÿ™Œ manually install

  1. downlaod from Releases

    • main.js
    • manifest.json
    • style.css
  2. create 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
    
  3. enable plugin, then go to settings, scroll down and click on the downlaod button draw.io client

installation-drawio-client-demo.gif

License

This software is licensed under the GNU GPLv3.

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.