lj970926/dsh-plugin-mermaid ↗★ 1
dsh-plugin-mermaid
DeepSeek Harness web client plugin that renders ```mermaid code blocks with a chart/source toggle.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lj970926/dsh-plugin-mermaid说明文档
阅读完整 README ↗dsh-plugin-mermaid
A DeepSeek Harness (DSH) web
client plugin that renders ```mermaid code blocks in chat messages, with a
chart ↔ source toggle and live theme switching.
- Mermaid v11 loaded on demand from a CDN (no bundle bloat).
- Follows DSH dark/light theme automatically.
- 500 ms debounce so streaming tokens don't thrash the renderer.
- Native DSH code-block banner integration: buttons sit right next to the built-in Copy button; source view keeps Shiki highlight and copy.
- Zero build step — the browser entry is hand-written factory-form CJS exactly
as DSH's
client-modulesservice expects.
Install
From GitHub (recommended)
This package ships prebuilt lib/ files and declares dsh.bundle, so it can
be installed directly into the DSH web profile:
dsh plugin --profile web add github:lj970926/dsh-plugin-mermaid
Then restart dsh web and hard-refresh the browser (Cmd+Shift+R).
To pin a revision for reproducibility, append a commit SHA or tag:
dsh plugin --profile web add github:lj970926/dsh-plugin-mermaid#
Because the published files are already in
lib/, this package has nopreparebuild step and does not require pnpmallowBuildsauthorization. If you fork the repository and add a build step, follow DSH's packaging docs and add the package key underallowBuildsin the profile'spnpm-workspace.yamlwhen prompted.
From a local checkout
If you are developing the plugin, install the checkout as a linked bundle:
dsh plugin --profile web add /absolute/path/to/dsh-plugin-mermaid
Legacy copy script
The repository also keeps for copying files directly into an existing web profile: