baihui-ai/a2ui-render-in-dsh
a2ui-render-in-dsh renders A2UI (Agent-to-UI) v0.9 interactive cards inside the DSH web conversation: the agent calls a2ui_render to draw quizzes, forms, wizards, dropdowns, date pickers, product cards, sortable tables, ECharts charts, China map choropleths, math plots, Mermaid diagrams, KaTeX formulas and signature pads, a2ui_update patches a rendered card in place by surfaceId, the catalog loads on demand from a2ui_catalog, and submissions return as plain-language user messages through dsh's own prompt channel.
a2ui-render-in-dsh renders A2UI (Agent-to-UI, a declarative protocol) v0.9 interactive cards inside the DSH web conversation - quizzes, forms, multi-step wizards, dropdowns, date pickers, product cards, sortable/filterable tables, ECharts charts, China map choropleths, math function plots, Mermaid flowcharts and mind maps, KaTeX formulas, Markdown long-form, image uploads, signature pads and step-by-step algorithm animations. The host registers a slim always-visible a2ui_render tool plus a2ui_update to patch a rendered card in place by surfaceId and a2ui_catalog loaded on demand (roughly 350 always-visible tokens for 44 components), the model decides prose versus card against UI's act/browse/understand/feedback purposes, cards stream in progressively while the model is still emitting JSON, answers return as plain-language messages (photos and signatures arrive as real image parts), forms lock after first submit with records persisted, and a right-edge session navigator surfaces to-submit and submitted task groups and a clickable map of every user message.
Install
dsh plugin --profile web add a2ui-render-in-dshCopied verbatim from the README's Installation block; the README notes the web profile must be initialized first (run dsh web once before installing) and also documents an --registry https://registry.npmjs.org form.
Compatibility
One npm package is a dsh bundle with a host half (three agent tools) and a client half that renders via Ant Design X's official @ant-design/x-card engine over the A2UI v0.9 protocol. The display stack is fully self-contained - ECharts 6, Mermaid 11, KaTeX (woff2 fonts as data URIs) and the China province geoJSON are bundled (~5.5MB, served locally, loaded once), so there are no CDN requests and it works offline, following the page's light/dark theme. Function plotting uses a whitelist shunting-yard expression evaluator with no eval, and submissions travel through dsh's own session.prompt RPC as ordinary user messages, so no custom server channel is required.
Details
- Repo: baihui-ai/a2ui-render-in-dsh
- Category: Web UI Enhancements
- Stars: 5
- Version: GitHub repo baihui-ai/a2ui-render-in-dsh (5*); npm package a2ui-render-in-dsh at 0.2.0 (registry check 2026-10-15; the registry repository field resolves back to this repo). Requires @deepseek-ai/dsh >= 0.1.1-rc.1 with an initialized web profile. English README with a README.zh.md Chinese translation.
Alternatives
0lidaxiang/dsh-plugin-greet · 147228/dsh-black-whale · 15828148/dsh-portable-launcher