Docs · Plugins
Plugins
Official plugins that ship with Vaultdraw, how to switch them off, and the experimental plugin host for your own.
The official plugins, the AI assistant, the plugin settings page and plugin API 1.0 are part of 0.2.0. Plugins are experimental: the interface may change.
Optional features are plugins. The core stays small, each plugin loads only when you use it, and one you switch off costs nothing: no command, no service, no memory.
Official plugins
They are bundled with the app and on by default, except auto-export and the AI assistant.
| Plugin | What it adds |
|---|---|
graph | The graph view of links between drawings |
gallery | The thumbnail gallery of drawings |
favourites | Bookmarks for drawings, notes and single elements, in a side panel |
formula | LaTeX formulas, and the TeX renderer for $…$ in notes (see Mermaid and LaTeX) |
mermaid | Mermaid diagrams to Excalidraw shapes |
pdf-import | PDF import |
table | Pasted spreadsheet cells, CSV or Markdown tables become a table of shapes |
markdown-import | Markdown notes and Obsidian vaults to drawings (see Notes and Obsidian) |
auto-export | An SVG or PNG copy of a drawing after each save. Off until you set [plugin.auto-export] enabled = true |
ai-assistant | A chat panel that answers, edits the drawing and builds pages, with Claude, Codex or your own key. Off until you turn it on. See AI assistant |
Official plugins stay on after an upgrade. To switch one off, use Settings → Extensions or Settings → Plugins, the palette, or config.toml:
[extensions]
graph = false
pdf-import = false
AI assistant
The ai-assistant plugin is a chat panel for your drawings. It is off by default: turn it on in Settings → Plugins. Say what you want, such as “explain this diagram” or “lined A4 pages”, and it answers, changes the drawing or builds a page with headings, notes and labelled diagrams. The app lays the page out itself, so nothing overlaps.
- Turn on the plugin in Settings → Plugins, then open the panel (AI: Open the assistant).
- Click the gear. It finds the
claude(Claude Code) andcodexcommands you already signed in to and shows Connected, Not signed in or Not found. Or add an API key for a provider. - Pick a model and a reasoning effort under the question box, and ask.
| Way to connect | What you need |
|---|---|
| Claude or Codex | The command signed in on this computer (your subscription). Vaultdraw never stores its login. |
| Anthropic | Your API key |
| OpenAI, or any OpenAI-style service | Your API key and address |
| Ollama (on this computer) | Nothing |
- Permission modes. The shield in the question bar chooses Ask first (the default: each change is a plan you Keep or Discard), Apply at once (one undo step, with an Undo button) or Read only (answers only).
- One undo step. Everything one answer changes is one proposal and one Cmd+Z.
- Chats and images. Each chat is a tab, earlier chats are in the history button, and you can paste or drop up to four images.
- Your own key or login. There is no Vaultdraw server. Requests go straight to the provider or to the tool you signed in to, which bills you.
- Offline mode. It blocks every request to another computer. A model on this computer, such as Ollama, still works.
- Keys. The system keychain keeps API keys (the Secret Service on Linux). They are never written to
config.toml, a vault or a drawing, and the page cannot read one back. - What is sent. The drawing goes as text: labels, shape kinds and positions. Show what is sent lists the exact text of the next request, and nothing is sent until you ask.
- Commands. AI: Open the assistant, New chat, Choose model, Cycle reasoning effort, Cycle permission mode, Chat history, Connect and settings, Describe the selection, Summarise this note or drawing and Stop the answer. Every command can be rebound.
Full keys and limits are in the configuration reference in the source repository.
Settings, safe mode and permissions
Settings → Plugins lists the installed plugins. You can turn each on or off, install one from a folder, reload or uninstall it, and edit the settings it declares. Each plugin shows its activation time and a memory estimate.
- Permissions. A permission prompt gates each plugin. A plugin you enabled earlier that declared no permission asks for review once after the upgrade (“Needs review”). A plugin that never ran always asks first.
- Safe mode. After two launches in a row crash with plugins enabled, the next launch loads no plugins and says why. Holding Option at launch does the same. Plugins: Restart in safe mode and Plugins: Restart normally are in the palette.
- Reserved names. A community plugin cannot take an official plugin’s id or the name of a built-in command group, so its commands cannot look built in.
- From Terminal.
vaultdraw plugin commandslists installed plugins and what they declare.vaultdraw plugin run <plugin>.<command>runs one. See Control the app.
Community plugins
You can install a plugin from a folder. Plugins that are not bundled are trusted code: they run inside the app, so only enable plugins you trust, and read the permission prompt.
The in-app Browse community plugins list reads a registry (plugins.registry_url, the Vaultdraw/plugin-registry repository), which has no plugins yet, so Browse is empty for now. Browsing it needs the internet, so it is off in Offline mode (and when network.allow_plugins = false); nothing asks first.
Writing a plugin
A plugin is a folder with a plugin.toml and a main.js, in plugins/ inside the config folder. With dev = true in plugin.toml, saving its files reloads it. The vaultdraw-plugin tool (check, init, dev) and the API reference are in sdk/docs in the source repository.
A plugin can add commands, panels, tab kinds, canvas tools, shapes and importers. It can also read the vault link graph, show a view over the drawing area, keep its own saved data, and change the drawing in one batch (one undo step). plugins.scene_max_ops (default 500, 1 to 1000) caps one batch, and plugins.storage_limit_kb (default 1024) caps a plugin’s saved data. The API is frozen at 1.0. Its experimental areas may still change: see Plugin API 1.0.
The host loads a plugin’s code only when you first use something it adds.
The promise for plugin authors, the version numbers and the SDK docs are in Plugin API 1.0. Follow the changelog for when plugins leave the experimental stage.