lj970926/dsh-plugin-mermaid
DeepSeek Harness web client plugin: render mermaid code blocks with a chart/source toggle.
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, follows DSH dark/light theme automatically, 500ms debounce so streaming tokens don't thrash the renderer, native DSH code-block banner integration (buttons sit next to the built-in Copy button; source view keeps Shiki highlight and copy), zero build step (hand-written factory-form CJS as DSH's client-modules service expects).
Install
dsh plugin --profile web add github:lj970926/dsh-plugin-mermaidGitHub install per README (recommended — ships prebuilt lib/ and declares dsh.bundle, no prepare build step, no pnpm allowBuilds prompt): dsh plugin --profile web add github:lj970926/dsh-plugin-mermaid, then restart dsh web + hard-refresh (Cmd+Shift+R). Pin a revision: append #<commit-or-tag>. Legacy install.sh and manual copy also documented. npm package dsh-plugin-mermaid 1.1.0 exists (registry-verified 2026-08-26) but the README documents the github install.
Compatibility
DeepSeek Harness web profile (dsh v0.1.0-rc.6 badge). Mermaid v11 loaded on demand from CDN — no bundle bloat.
Details
- Repo: lj970926/dsh-plugin-mermaid
- Category: Coding & Development
- Stars: 4
- Version: GitHub source per README; npm dsh-plugin-mermaid 1.1.0 registry-verified
- Last push: 2026-08-14
- First seen: 2026-08-14
Recent updates
v1.1.0: on-demand Mermaid v11; chart/source toggle; theme-following; 500ms debounce; native banner integration.
FAQ
- Does it bloat the bundle?
- No — Mermaid v11 is loaded on demand from a CDN only when a mermaid block is present.
- How do I pin a version?
- Append a commit SHA or tag: dsh plugin --profile web add github:lj970926/dsh-plugin-mermaid#<commit-or-tag>.
- Does it need a build step?
- No — the package ships prebuilt lib/ files and has no prepare script, so no pnpm allowBuilds authorization is required.
Alternatives
AKS1st/dsh-mermaid · omdsh-dev/dsh-tool-markdown · omdsh-dev/dsh-toolkit