rakutek/dsh-intelligent-ui ↗★ 0

@rakutek/dsh-intelligent-ui

Intelligent UI for DeepSeek Harness: the model writes markdown with component tags, expressions, and mermaid diagrams, and the chat renders them in place as live, interactive UI.

包名
@rakutek/dsh-intelligent-ui
兼容性
待验证
Harness 依赖范围
>=0.2.0-rc.1 <0.3.0-0
Cordis 依赖范围
~4.0.4 || >=4.0.5-alpha.0 <4.1.0-0
版本
0.1.0
许可证
MIT
最近更新
2026年10月12日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:rakutek/dsh-intelligent-ui

🪄 Intelligent UI for DeepSeek Harness

English | 日本語 | 中文

npm version License: MIT DeepSeek Harness

Turn LLM responses into live, interactive mini-apps directly inside DeepSeek Harness.

Intelligent UI is a plugin for DeepSeek Harness (Desktop & Web UI) inspired by ChatGPT's Intelligent UI and Claude Artifacts. Instead of generating static walls of text, the model writes markdown embedded with interactive component tags, reactive expressions, and beautiful Mermaid diagrams. The chat interface renders them in-place in real time as the response streams in.


📸 Screenshots

🧮 Interactive Cost Simulator⚖️ Interactive Tech Stack Comparison

LLM API cost estimator with sliders, KPI tiles, and a bar chart

|

Database stack comparison with a deployment switch, a recommendation card, a table, and score bars

|

🎨 Themed Mermaid Diagrams with Rounded Nodes & Semantic Role Colors

Mermaid flowchart of an autonomous canary deployment pipeline with role colors and title-and-detail labels


✨ Key Features

  • ⚡ Real-Time Interactive Mini-Apps: Sliders, number inputs, dropdowns, and toggles recompute formulas, statistics, and charts instantly inside your browser—no backend round-trips needed.
  • 📊 Rich UI Component Library: Over 20 built-in components including KPI tiles (stat), bar/line/pie charts (chart), responsive layouts (box, row, grid), progress bars, data tables, badges, and segmented controls.
  • 🎨 Beautiful Themed Diagrams: Automatically transforms ```mermaid fences into styled diagrams with rounded cards, dark/light theme harmony, and hierarchy-aware typography.
  • 🔁 Bidirectional Interaction: Action buttons (GenUI.issueNewTurn(...)) let you send configured values back to the agent as your next prompt with a single click.
  • 🧠 Context-Aware Triggering: The model intelligently uses UI only when helpful (e.g., calculations, comparisons, workflows) and answers simple questions in clean plain text.
  • 🔒 Secure by Design: Expressions execute inside a sandboxed AST interpreter without eval, DOM access, or network permissions. Form state stays strictly within your local browser session.

🚀 Installation

Requires DeepSeek Harness 0.2.x or later (Desktop app or dsh web).

Option 1: Web UI / Desktop App (Easiest)

  1. Open DeepSeek Harness.
  2. Navigate to Plugins → Click Add plugin.
  3. Enter either package name or repository URL:
    @rakutek/dsh-intelligent-ui
    
    or
    https://github.com/rakutek/dsh-intelligent-ui
    
  4. Click Install. The plugin is ready to use immediately without restarting!

Option 2: CLI Installation

Run the following command in your terminal:

# For Desktop app profile (make sure to quit Desktop first):
dsh plugin --profile desktop add @rakutek/dsh-intelligent-ui

# For Web server profile:
dsh plugin --profile web add @rakutek/dsh-intelligent-ui

Note: To temporarily return to plain-text replies, simply toggle off the plugin in Plugins.


💡 Example Prompts to Try

Once installed, prompt the model naturally with questions that benefit from interactivity:

  • Simulators & Estimations:

    "Create a SaaS pricing simulator where I can adjust team seats and billing frequency (monthly vs. annual) and see the discount impact."

  • Product Comparisons:

    "Compare MacBook Pro M3, ThinkPad X1 Carbon, and Dell XPS 13 for battery life, weight, price, and developer workflows with interactive filters."

  • Workflow & Architecture Diagrams:

    "Draw a flowchart showing how a GitHub pull request goes through CI checks, code review, and deployment."

  • Financial & Planning Calculators:

    "Build a mortgage repayment calculator with loan amount, interest rate slider, and amortization chart."


🛠️ How It Works (What the Model Writes)

The plugin injects concise instructions into the system prompt. The model writes standard Markdown enhanced with JSX-like component tags and reactive state declarations:

{@body const [seats, setSeats] = useState(25)}
{@body const [price, setPrice] = useState(1200)}

  Team Plan Estimator
  
  
  
  
  
    
    
  
  
   GenUI.issueNewTurn(`Please review quote for ${seats} seats at ¥${price}/mo`)}>
    Submit this configuration
  

Supported Components & Syntax

CategoryAvailable Elements
Layout & Structure, , , , `
`
Typography & Data, , , , , , ``, `
`
Tables & Collections, , ``
Data Visualization``, Themed Mermaid diagrams
Interactive Controls, , , , , , ,
Expressions & Logic{expression}, {#if condition}...{/if}, {#each item in list}...{/each}, {@body ...}

🛡️ Security & Privacy

  • Sandboxed Execution: Expressions are evaluated via a safe AST interpreter. There is no eval(), new Function(), access to window/document, or network fetch access.
  • Local State Privacy: Interactive input state is saved per message in your browser's local storage. Values are never sent to the model until you explicitly click an action button.
  • Safe Resources: External links open via DeepSeek Harness's native safe URL handler. External images only load from model-specified HTTPS URLs.

📋 Compatibility

  • DeepSeek Harness: v0.2.0-rc.1 or later
  • Tested Models: Claude 3.5 Sonnet / 3.7 Sonnet, GPT-4o / GPT-6.1, DeepSeek-V3 / R1

📄 License

This project is licensed under the MIT License.

Distributed client bundles package mermaid and zod. See THIRD_PARTY_NOTICES.md for full licensing disclosures.