Weihong-Liu/dsh-html-live-preview ↗★ 0

dsh-html-live-preview

在对话中提供沙箱化的HTML实时预览卡片 适合需要让模型直接生成、渲染并交互操作HTML/JS网页的用户。

套件
dsh-html-live-preview
相容性
待驗證
Harness 依賴範圍
^0.1.7-rc.2 || ^0.2.0-rc.1
版本
1.0.1
授權
MIT
最近更新
2026年9月30日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Weihong-Liu/dsh-html-live-preview

Usage

Ask for something visual, in any wording:

"Draw a bar chart of this week's latency" "Mock up a login page and make the button do something" "Animate how quicksort partitions this array"

The model calls render_html({ html, title?, height? }). The card offers four controls on hover: show the HTML source, copy it, re-run scripts, and expand the height (the frame is capped at 620px by default so a single preview cannot swallow the transcript).