Home / Claude Code mods / Security / diagram-preview

diagram-preview

diagram-preview is a Claude Code mod by cbruyndoncx that show Obsidian vault diagrams (.canvas, Excalidraw, draw.io, BPMN) as SVG in Claude Desktop side panes, with landscape/portrait and zoom.

Updated 2026-10-03

What is diagram-preview?

diagram-preview is a Claude Code mod by cbruyndoncx that show Obsidian vault diagrams (.canvas, Excalidraw, draw.io, BPMN) as SVG in Claude Desktop side panes, with landscape/portrait and zoom. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authorcbruyndoncx
Repositorycbruyndoncx/claude-diagrams-renderer-mod
Popularityno public popularity data yet
CategorySecurity
SecurityReview before installing (76/100)
Rank#2,839 of 5,272 Claude Code mods; #327 in Security
LicenseMIT
Last commit2026-10-03
Hooks4 events
SeesWrite|Edit calls, mcp__diagram-preview__open calls
Draws onPane

Is diagram-preview safe to install?

diagram-preview scores 76/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.statreads files
$.process.runruns processes
$.state.get
$.state.set
$.tool.registerdrives Claude
$.ui.closedraws interface
$.ui.opendraws interface
$.ui.panesdraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install diagram-preview?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/cbruyndoncx/claude-diagrams-renderer-mod
    claude plugin validate ./claude-diagrams-renderer-mod/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/cbruyndoncx/claude-diagrams-renderer-mod && claude --plugin-dir ./claude-diagrams-renderer-mod/.

Or ask Claude to set it up

Paste this into Claude Code and it installs diagram-preview for you:

Install the "diagram-preview" Claude Code mod from https://github.com/cbruyndoncx/claude-diagrams-renderer-mod. Run claude plugin validate on it first and show me what it can access before you enable it.