dsh-mermaid-render
Verified@ch4acko3/dsh-mermaid-render · v0.1.1 · MIT · Web UI
Safe Mermaid diagram rendering service for DeepSeek Harness Web plugins
Install
dsh plugin add @ch4acko3/dsh-mermaid-render Confirm the layer applied with dsh --profile default --dump-config — see the install guide.
Source
Published to npm without a public repository. Inspect the package contents before installing.
Tags
Readme
@ch4acko3/dsh-mermaid-render
A browser-side Cordis service that renders untrusted Mermaid definitions as sanitized SVG diagrams.
export const inject = ['mermaidRenderer']
export async function apply(ctx) {
const result = await ctx.mermaidRenderer.render({
source: 'graph TD\n Parse --> Render',
})
console.log(result.html)
}
Mermaid runs with securityLevel: 'strict'; the generated SVG is sanitized again before it is returned. The service provides rendering only and does not ship a ChatView card or diagram editor.