{"_id":"@ch4acko3/dsh-mermaid-render","_rev":"3-f9c2be659558ab0cc4d76c1f6fdfe42a","name":"@ch4acko3/dsh-mermaid-render","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@ch4acko3/dsh-mermaid-render","version":"0.1.0","keywords":["deepseek-harness","dsh","dsh-plugin","mermaid","diagram","svg"],"license":"MIT","_id":"@ch4acko3/dsh-mermaid-render@0.1.0","maintainers":[{"name":"ch4acko3","email":"ch4acko3@outlook.com"}],"homepage":"https://github.com/CH4ACKO3/dsh-render-engine#readme","bugs":{"url":"https://github.com/CH4ACKO3/dsh-render-engine/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime"],"platform":"web","immediately":true},"plugin":{"summary":{"en":"Renders untrusted Mermaid definitions as sanitized SVG diagrams.","zh-CN":"将不受信任的 Mermaid 定义渲染为经过清洗的 SVG 图表。"},"category":"development","displayName":{"en":"Mermaid Render","zh-CN":"Mermaid 图表渲染"},"schemaVersion":1}},"dist":{"shasum":"4c001325ad0855494ebdb131132049980832b54a","tarball":"https://registry.npmjs.org/@ch4acko3/dsh-mermaid-render/-/dsh-mermaid-render-0.1.0.tgz","fileCount":16,"integrity":"sha512-yYJM5ZToIdLJ6jj0/bZNIjiEIkfF4dOIgJtoKl8U6FPMbwvVJPd+Cun9Z/as7H23KmJUYv0TcBGotiJcRLdegg==","signatures":[{"sig":"MEUCIQCNXGM4q5dM1JqibnUzT8mtsqusU3Mx/zbXKJLtu8e0pQIgUamzz+9oo1enMhdVw8po5gOme1riB0gPkIdyWksy/iA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18665905},"main":"./lib/index.js","type":"module","_from":"file:/tmp/dsh-mermaid-render-0.1.0.tgz","types":"./lib/index.d.ts","engines":{"node":"^22.22.3 || >=24.11.1"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./client":{"types":"./lib/client/index.d.ts","default":"./lib/client.js"},"./package.json":"./package.json"},"scripts":{"test":"tsc -p tsconfig.test.json && node --test .test-build/test/*.test.js","build":"pnpm run build:client && pnpm run build:host","typecheck":"tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit","build:host":"tsc -p tsconfig.json","build:client":"tsdown --config-loader unrun && tsc -p tsconfig.client.build.json"},"_npmUser":{"name":"ch4acko3","email":"ch4acko3@outlook.com"},"_resolved":"/tmp/dsh-mermaid-render-0.1.0.tgz","_integrity":"sha512-yYJM5ZToIdLJ6jj0/bZNIjiEIkfF4dOIgJtoKl8U6FPMbwvVJPd+Cun9Z/as7H23KmJUYv0TcBGotiJcRLdegg==","repository":{"url":"git+https://github.com/CH4ACKO3/dsh-render-engine.git","type":"git","directory":"packages/mermaid-render"},"_npmVersion":"11.19.0","description":"Safe Mermaid diagram rendering service for DeepSeek Harness Web plugins","directories":{},"_nodeVersion":"24.16.0","dependencies":{"mermaid":"^11.17.0","dompurify":"^3.4.14"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^29.1.1","@types/jsdom":"^28.0.3"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-client-runtime":"0.1.0-rc.8"},"_npmOperationalInternal":{"tmp":"tmp/dsh-mermaid-render_0.1.0_1787313526109_0.38846289123991773","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@ch4acko3/dsh-mermaid-render","version":"0.1.1","keywords":["deepseek-harness","dsh","dsh-plugin","mermaid","diagram","svg"],"license":"MIT","_id":"@ch4acko3/dsh-mermaid-render@0.1.1","maintainers":[{"name":"ch4acko3","email":"ch4acko3@outlook.com"}],"homepage":"https://github.com/CH4ACKO3/dsh-render-engine#readme","bugs":{"url":"https://github.com/CH4ACKO3/dsh-render-engine/issues"},"dsh":{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime"],"platform":"web","immediately":true},"plugin":{"summary":{"en":"Renders untrusted Mermaid definitions as sanitized SVG diagrams.","zh-CN":"将不受信任的 Mermaid 定义渲染为经过清洗的 SVG 图表。"},"category":"development","displayName":{"en":"Mermaid Render","zh-CN":"Mermaid 图表渲染"},"schemaVersion":1}},"dist":{"shasum":"79ff6062a87a667e32099d1b0cc8cc068049a2eb","tarball":"https://registry.npmjs.org/@ch4acko3/dsh-mermaid-render/-/dsh-mermaid-render-0.1.1.tgz","fileCount":16,"integrity":"sha512-xAwrL/LmQlPvDljwfY2T2e2u4cXpiLiGP4xrUABfDIfP6uEw7w0ToG2ybFHeHSQn8itB2mrVC9Uao9Kh2J5B2g==","signatures":[{"sig":"MEYCIQDKLd4j1XCyAiR0PhJpf//+Rrdr0QCgXEnAU2xaLEVp4wIhAOS0QYKun6C7g2x5lI6PXSrr0bHDROf1SnJLbLGw/aDA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ch4acko3%2fdsh-mermaid-render@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18665907},"main":"./lib/index.js","type":"module","_from":"file:/home/runner/work/_temp/dsh-mermaid-render.tgz","types":"./lib/index.d.ts","engines":{"node":"^22.22.3 || >=24.11.1"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./client":{"types":"./lib/client/index.d.ts","default":"./lib/client.js"},"./package.json":"./package.json"},"scripts":{"test":"tsc -p tsconfig.test.json && node --test .test-build/test/*.test.js","build":"pnpm run build:client && pnpm run build:host","typecheck":"tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit","build:host":"tsc -p tsconfig.json","build:client":"tsdown --config-loader unrun && tsc -p tsconfig.client.build.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:201cae40-a98a-4e77-b98c-33eea068a3c0"}},"_resolved":"/home/runner/work/_temp/dsh-mermaid-render.tgz","_integrity":"sha512-xAwrL/LmQlPvDljwfY2T2e2u4cXpiLiGP4xrUABfDIfP6uEw7w0ToG2ybFHeHSQn8itB2mrVC9Uao9Kh2J5B2g==","repository":{"url":"git+https://github.com/CH4ACKO3/dsh-render-engine.git","type":"git","directory":"packages/mermaid-render"},"_npmVersion":"11.19.0","description":"Safe Mermaid diagram rendering service for DeepSeek Harness Web plugins","directories":{},"_nodeVersion":"24.11.1","dependencies":{"mermaid":"^11.17.0","dompurify":"^3.4.14"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^29.1.1","@types/jsdom":"^28.0.3"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-client-runtime":">=0.1.0-rc.8"},"_npmOperationalInternal":{"tmp":"tmp/dsh-mermaid-render_0.1.1_1787438752229_0.7985016782566134","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"_id":"@ch4acko3/dsh-mermaid-render@0.1.2","dsh":{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":[],"platform":"web","immediately":true},"plugin":{"summary":{"en":"Renders untrusted Mermaid definitions as sanitized SVG diagrams.","zh-CN":"将不受信任的 Mermaid 定义渲染为经过清洗的 SVG 图表。"},"category":"development","displayName":{"en":"Mermaid Render","zh-CN":"Mermaid 图表渲染"},"schemaVersion":1}},"bugs":{"url":"https://github.com/CH4ACKO3/dsh-render-engine/issues"},"dist":{"shasum":"4cb7380d9a17439fa168f5e8540eade7a397ba85","tarball":"https://registry.npmjs.org/@ch4acko3/dsh-mermaid-render/-/dsh-mermaid-render-0.1.2.tgz","fileCount":16,"integrity":"sha512-lSO4sXPqyXW9hP4BxCsBU9FhBWe9JNb+7nJjPv/8IBJNOSb/VvD0+FTCPe1X7VCDcHLb0asEfwIproq+r4b3PQ==","signatures":[{"sig":"MEQCIB+GWm2Fub/5O5HKH3xJ7A0OJDfvRBd+RDTYddKFEb28AiBO92UAqUgwdmUwBDJyOeK8U5slgB9ik0e/W0UA+pgMlg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDuVCO9lYTggC29V6FMd0pWuo5PWi669vFTzZYmOWIqYAiA/PZE+bT7CCXQpuIIfwt3nTR+FzXqUHk3q8vg5S0+f1Q=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ch4acko3%2fdsh-mermaid-render@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":18665797},"main":"./lib/index.js","name":"@ch4acko3/dsh-mermaid-render","type":"module","_from":"file:/home/runner/work/_temp/dsh-mermaid-render.tgz","types":"./lib/index.d.ts","engines":{"node":"^22.22.3 || >=24.11.1"},"exports":{".":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"./client":{"types":"./lib/client/index.d.ts","default":"./lib/client.js"},"./package.json":"./package.json"},"license":"MIT","scripts":{"test":"tsc -p tsconfig.test.json && node --test .test-build/test/*.test.js","build":"pnpm run build:client && pnpm run build:host","typecheck":"tsc -p tsconfig.json --noEmit && tsc -p tsconfig.client.json --noEmit","build:host":"tsc -p tsconfig.json","build:client":"tsdown --config-loader unrun && tsc -p tsconfig.client.build.json"},"version":"0.1.2","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:201cae40-a98a-4e77-b98c-33eea068a3c0"}},"homepage":"https://github.com/CH4ACKO3/dsh-render-engine#readme","keywords":["deepseek-harness","dsh","dsh-plugin","mermaid","diagram","svg"],"_resolved":"/home/runner/work/_temp/dsh-mermaid-render.tgz","_integrity":"sha512-lSO4sXPqyXW9hP4BxCsBU9FhBWe9JNb+7nJjPv/8IBJNOSb/VvD0+FTCPe1X7VCDcHLb0asEfwIproq+r4b3PQ==","repository":{"url":"git+https://github.com/CH4ACKO3/dsh-render-engine.git","type":"git","directory":"packages/mermaid-render"},"_npmVersion":"11.19.0","description":"Safe Mermaid diagram rendering service for DeepSeek Harness Web plugins","directories":{},"maintainers":[{"name":"ch4acko3","email":"ch4acko3@outlook.com"}],"_nodeVersion":"24.11.1","dependencies":{"mermaid":"^11.17.0","dompurify":"^3.4.14"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jsdom":"^29.1.1","@types/jsdom":"^28.0.3"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh-mermaid-render_0.1.2_1789825660413_0.3501977317828491"}}},"time":{"created":"2026-08-21T11:58:45.951Z","modified":"2026-09-19T13:47:40.943Z","0.1.0":"2026-08-21T11:58:46.342Z","0.1.1":"2026-08-22T22:45:52.463Z","0.1.2":"2026-09-19T13:47:40.652Z"},"bugs":{"url":"https://github.com/CH4ACKO3/dsh-render-engine/issues"},"license":"MIT","homepage":"https://github.com/CH4ACKO3/dsh-render-engine#readme","keywords":["deepseek-harness","dsh","dsh-plugin","mermaid","diagram","svg"],"repository":{"url":"git+https://github.com/CH4ACKO3/dsh-render-engine.git","type":"git","directory":"packages/mermaid-render"},"description":"Safe Mermaid diagram rendering service for DeepSeek Harness Web plugins","maintainers":[{"name":"ch4acko3","email":"ch4acko3@outlook.com"}],"readme":"# @ch4acko3/dsh-mermaid-render\n\nA browser-side Cordis service that renders untrusted Mermaid definitions as sanitized SVG diagrams.\n\n```ts\nexport const inject = ['mermaidRenderer']\n\nexport async function apply(ctx) {\n  const result = await ctx.mermaidRenderer.render({\n    source: 'graph TD\\n  Parse --> Render',\n  })\n  console.log(result.html)\n}\n```\n\nMermaid 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.\n","readmeFilename":"README.md"}