dshbase

Plugin directory / Developer / dsh-visualize

dsh-visualize

Verified · install-tested on dsh Nagi-ovo

✓ Actively maintained 2 contributors Builds on 8 official DSH packages Pure TypeScript

View on GitHub ↗ ← Back to plugin directory

275Stars
5Forks
2Open issues
TypeScriptLanguage
2026-09-25Last push
Cross-platformPlatform

What it does

In-chat generative UI: interactive HTML cards

✅
Our take
Recommended — verified working and popular

In-chat generative UI: interactive HTML cards It installs cleanly and boots without issues in our testing. With 275+ stars it's a community-endorsed, low-risk pick.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

dsh-visualize

dsh-visualize

简体中文 | English

dsh-visualize 在 dshfind 插件目录上的展示卡

让 DSH 不只回答一段文字。模型调用 visualize 后,Web UI 会在对话里直接出现一张可交互卡片,用来做模拟器、图表、对比面板或 UI mockup。

DSH 对话内生成交互式可视化演示

安装

推荐用 npm 装到 DSH 的 web profile:

dsh plugin --profile web add @nagi-ovo/dsh-visualize
# 如果 dsh web 正在运行,重启后刷新页面

也可以从 GitHub 安装:dsh plugin --profile web add github:Nagi-ovo/dsh-visualize。可以运行 dsh --profile web --dump-config 确认插件已经进入最终配置。需要修改源码时,克隆仓库并在仓库目录运行 dsh plugin --profile web add .;构建产物已经提交,不需要额外构建。使用社区 plugin-registry 的用户也可以从「设置 → 插件」安装。

兼容 DSH 0.1.1-rc.2 到 0.1.7-rc.2。

怎么用

直接告诉模型你想看什么,例如「做一个能调参数的排序算法可视化」。模型会写出一份 HTML fragment,再调用 visualize(path, title?, mode?) 把它放进对话。适合并排比较的内容可以使用 mode: "wide"。

卡片会跟随 DSH 的明暗主题和鲸鱼蓝配色。会话重放时,页面从持久化的工具结果恢复,不依赖原始 fragment 文件仍然存在。

DSH 默认会把已完成回合的工具过程折叠起来。折叠时,这一轮画出的卡片会再显示在最终回答下方,不用展开过程也能看到;「工作步骤展示」选「完全展开」时则只在原位显示。

安全

卡片运行在不透明来源的 sandboxed iframe 中,不能接触宿主页面。CSP 会阻止网络请求、嵌套页面和表单提交,只允许从固定 CDN 加载静态资源。单个 fragment 默认上限为 1000000 字节,可以通过 maxFragmentBytes 调整。

限制

目前只在 Web UI 中渲染交互卡片,TUI 和 headless 客户端会显示普通工具结果。卡片内的按钮暂时不能向主对话发送 follow-up 消息。

灵感来自 Codex 桌面端的 /visualize;skill 的分层 reference 和 Chart.js 优先路线借鉴了 himself65/finance-skills。

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-visualize for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:Nagi-ovo/dsh-visualize

Headless (CLI) profile:

dsh plugin --profile headless add github:Nagi-ovo/dsh-visualize

Test report

Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.

When to use it

Render interactive HTML cards inside chat — charts, tables, forms — so the agent can answer with a UI instead of a wall of text.

Who it's for

Users who want the model's output as live, clickable artifacts for data, config, or decision views.

For developers — extending it

Add card types to the component library — new chart styles, form widgets, or mermaid variants the model can emit.

✓ Low risk static scan · 25 files · 2026-09-27

Share this badge

More in Developer

Browse all 7797 plugins →