返回目錄

dsh-genui

編輯精選維護狀態: 活躍

omdsh-dev/dsh-genui

在助手回覆中內聯渲染可互動 UI 元件,支援圖表、表單、測驗、Mermaid 圖、3D 場景和模型動作事件。

前往 GitHub專案首頁
$ dsh plugin --profile web add git+https://github.com/omdsh-dev/dsh-genui.git

436

星數

43

Fork

TypeScript

語言

MIT

授權條款

2026-08-13

建立於

2026-09-11

最近推送

MIT 授權的 DeepSeek Harness(dsh)GenUI 外掛:以 `dsh plugin --profile web add` 安裝,模型透過 `dsh-ui` 區塊在回覆中內嵌渲染圖表、表單與測驗等互動元件。

DSH 整合

相容

作者聲明

安全稽核

未稽核

最後核實

2026-08-21

授權條款

MIT

01它能幫你完成什麼?

  • Show interactive dashboards, charts and data panels inside DeepSeek Harness answers

    Clickable stat cards, trend charts, tables and monitoring panels rendered inline as the model streams — drag sliders, hit refresh, and the model regenerates the data

    dsh web users who want analysis results as live interactive UI instead of plain text

  • Build self-grading quizzes and interactive forms inside dsh sessions

    Quiz scores, per-question right/wrong and explanations shown instantly in the UI with zero model round-trips; inputs and submission locks persist across refreshes

    Educators, trainers and builders assembling practice quizzes or intake forms in DeepSeek Harness

02如何將外掛接入 DeepSeek Harness?

先決條件

  • dsh installed (any open-source build works — the plugin picks its rendering channel at startup)
  • `pnpm` on your PATH: the `dsh plugin` command depends on it. If missing: `corepack enable` (or `npm i -g pnpm`), then open a new terminal and confirm `pnpm -v` prints a version

安裝步驟

  1. 01

    Run `dsh plugin --profile web add git+https://github.com/omdsh-dev/dsh-genui.git` (public GitHub install, works without an npm account)

    $ dsh plugin --profile web add git+https://github.com/omdsh-dev/dsh-genui.git

  2. 02

    Or clone and use the one-click script: `git clone https://github.com/omdsh-dev/dsh-genui.git && cd dsh-genui && ./scripts/install.sh` — it checks the prerequisites, performs the install, and prompts you to restart

    $ git clone https://github.com/omdsh-dev/dsh-genui.git && cd dsh-genui && ./scripts/install.sh

  3. 03

    Restart dsh web + hard refresh the browser

驗證整合成功

  • In a new session say "use dsh-ui to draw a stats dashboard"
  • Successful activation prints `[genui] client active; fence-channel=registry|dom` in the browser console

復原

  • Run `dsh plugin --profile web remove @omdsh-dev/dsh-genui`

03DSH 整合程度與能力邊界

DSH 整合相容

Installed as a dsh web profile plugin (`dsh plugin --profile web add <git URL>`) that renders `dsh-ui` fences inline in assistant replies via the host's fence-registry extension point or a DOM fallback channel — no host source patch required

  • Streaming `dsh-ui` fence rendering (registry + DOM channels)

    model replies containing `dsh-ui` JSON fencescomponents rendered inline as the model writes them — the first finished component shows up immediately, via the host's fence-registry pipeline or the DOM fallback channel

    On hosts without the fence-registry extension point, the DOM channel observes the session DOM and mounts its own render tree
  • 30+ interactive components with an action event loop to the model

    `dsh-ui` component specs (cards, tables, charts, forms, tabs, plots, quizzes, mermaid, 3D scenes)inline interactive UI; clicks or blur events on `action`-bearing components are sent back to the model, which updates the UI

    component actions send click/blur events back to the modelsame-name actions are debounced with a 300 ms trailing edge
  • Local-first quiz grading and state persistence

    quiz / form specs with `answer`, `submit`, `action` fieldsinstant local grading with zero model round-trips; answers, submission locks and input values restored after refresh or reopen

    user state is persisted in the browser per "session + content fingerprint" (LRU cap of 200 blocks)
  • Whitelisted, eval-free rendering with self-healing spec guards

    any `dsh-ui` spec from the modelsanitized render — bad nodes silently dropped, numbers clamped, strings truncated; the whole tree capped at 200 nodes / 8 nesting levels

04適合誰?何時不該用?

適合

  • dsh web users who want analysis results as live interactive UI instead of plain text
  • Educators, trainers and builders assembling practice quizzes or intake forms in DeepSeek Harness

不適合

  • On very old dsh builds the chat UI can go blank when rendering a `dsh-ui` fence — the README says to update dsh first, then reinstall the plugin.
  • The `dsh plugin` command requires `pnpm` on PATH, and a freshly cloned directory must be installed via the git URL — `link:` skips the plugin's dependencies (mermaid / three / react) and breaks the renderer.

05相容性、維護與安全提醒

  • On very old dsh builds the chat UI can go blank when rendering a `dsh-ui` fence — the README says to update dsh first, then reinstall the plugin.
  • The `dsh plugin` command requires `pnpm` on PATH, and a freshly cloned directory must be installed via the git URL — `link:` skips the plugin's dependencies (mermaid / three / react) and breaks the renderer.
  • The mermaid and three.js engines are not inlined; they load on demand the first time they're used through the plugin's self-registered HTTP routes — hosts without those asset routes degrade to source/load-error hints.
2026-08-132026-08-17v0.8.6

MIT · actively maintained (latest release v0.8.6, 2026-08-16)

06常見問題

如何把 dsh-genui 安裝到 DeepSeek Harness?

確認已安裝 dsh 且 `pnpm` 在 PATH 中,執行 `dsh plugin --profile web add git+https://github.com/omdsh-dev/dsh-genui.git`,重新啟動 dsh web 並強制重新整理瀏覽器;也可 clone 儲存庫後執行 `./scripts/install.sh`,腳本會檢查前置條件、完成安裝並提示重新啟動。

它是 dsh 原生功能還是 MCP 工具?

它是 dsh web 的 profile 外掛,不走 MCP,也不需要修改宿主原始碼:較新的 dsh 建置透過宿主的 `fence-registry` 擴充點註冊渲染;標準 DSH 與舊版建置則自動切換到 DOM 通道,觀察會話頁面並掛載自己的渲染樹。

安裝需要哪些前置條件?

已安裝 dsh(任何開源建置皆可),且 PATH 中有 `pnpm`(`corepack enable` 或 `npm i -g pnpm`,之後開新終端機確認)。注意:不要對剛 clone 的目錄使用 `link:`——它不會安裝 mermaid/three/react 相依套件,渲染器會壞掉。

我的互動與資料會去哪裡?

本機優先:測驗計分、重設與輸入值的保存全都在瀏覽器本機完成,以「工作階段 + 內容指紋」儲存(LRU 上限 200 塊);只有明確帶 `action` 的點擊或失焦事件才會回傳給模型。GenUI 絕不索取或保存密碼、API 金鑰等機密資訊。

有哪些已知限制?

dsh 版本太舊時,渲染 `dsh-ui` 區塊可能造成聊天畫面空白——請先更新 dsh 再重新安裝外掛。mermaid/three 引擎不內嵌,首次使用時透過外掛自註冊的 HTTP 路由按需載入。

08資料與來源

  • 作者聲明github.com7ac881b8e351…

    dsh plugin --profile web add git+https://github.com/omdsh-dev/dsh-genui.git

  • 作者聲明github.com7ac881b8e351…

    🔌 Ecosystem: the repo carries the `#dsh` · `#dsh-plugin` topics — welcome to be listed by @dsh-plugin.

此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-21。發現錯誤?提交更正。

🏆

最佳 DeepSeek Harness 外掛

從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。

DSH Plugins 是獨立的 DeepSeek Harness 外掛市集,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。