dsh-d2-diagrams: Real-Time D2 Diagram Preview in DeepSeek Harness

dsh-d2-diagrams is a DSH Web client plugin maintained by KorionCN that provides three views for .d2 files in the right sidebar: diagram-only, code-only, and split-screen. It renders SVG in real time by invoking the local D2 CLI with a 450 ms debounce, and supports zooming, theme following, source-code copying, and SVG download. Agents can call `d2_render` to inline the same preview block within a conversation. The installation command is `dsh plugin --profile web add github:KorionCN/dsh-d2-diagrams`; the host must have D2 pre-installed. Preview edits are non-persistent and do not write back to the file. Licensed under MIT, version 0.1.0.

Read More