DSH Plugins · Community project

dsh-genui

dsh-genui renders allowlisted interactive interfaces inside DeepSeek Harness replies, including charts, forms, quizzes, Mermaid diagrams, 3D scenes, session panels, and actions that return structured events to the model when needed.

722 StarsMITTypeScriptUpdated 1 months ago
01

Project overview

dsh-genui is built for people already using DSH Web. A model emits allowlisted dsh-ui JSON in its reply, and the plugin turns that description into a clickable interface. Charts, forms, quizzes, and a persistent session panel stay inside the conversation. Actions that need model involvement can return structured payloads to the current session. The plugin depends on DSH browser and session services, and installation must use the exact scoped package name.

dsh-genui session panel with tabs and controls inside DSH
A real DSH interface shown by the repository. The GenUI session panel can retain and update interactive content inside a conversation.View repository image
02

Core capabilities

01

Inline interactive rendering

Converts dsh-ui fences into layouts, tables, forms, quizzes, charts, Mermaid diagrams, and 3D scenes, with completed components appearing during streamed replies.

02

Local state and session panels

Retains input values, answers, and submission state by session and content fingerprint, and provides a session panel that can update in place. Persistence is capped at 200 blocks.

03

Model action loop

Interactive components with an action can send structured events to the current session. State changes that can be completed locally do not call the model.

04

Validation and repair feedback

The plugin registers render_ui by default and always exposes validate_dsh_ui. It can send a limited number of same-turn correction messages when a final fence cannot render.

05

Standalone export

Exports a self-contained HTML artifact or GenUI JSON containing the normalized specification, safe interaction state, language, and theme.

03

Installation and usage

Add the exact scoped package to the DSH web profile, restart dsh web, and hard-refresh the browser. Running npm install alone does not register the plugin with DSH.

AI AGENT INSTALL

Let an AI Agent install it

Send this prompt to Codex, Claude Code, or another AI agent that can work with your local environment.

Help me install https://github.com/omdsh-dev/dsh-genui. First confirm that the DSH and Node.js versions match package.json and inspect the current web profile. Then run `dsh plugin --profile web add @changfenhuang/dsh-genui`. Keep the @changfenhuang scope and do not install the unrelated unscoped package. Restart `dsh web`, hard-refresh the browser, and verify it in a new session with the README's minimal prompt. Ask before handling credentials, granting extra permissions, downloading additional software, or overwriting configuration.
01Before you start
  • A working DeepSeek Harness within ^0.2.0-rc.1 or ^0.2.1-rc.1
  • Node.js ^22.19.0 or 24 and later
  • Access to restart DSH Web and inspect the browser console
02Copy the install command or configuration
dsh plugin --profile web add @changfenhuang/dsh-genui
03Complete the setup steps
  1. 1
    Check host versions

    Confirm that DSH, Node.js, and pnpm fall within the ranges declared in package.json.

  2. 2
    Install into the web profile

    Run the dsh plugin command with the scoped package, restart DSH Web, and hard-refresh the page.

  3. 3
    Verify client activation

    Check for the client active console message and use the README dashboard prompt to confirm that the fence becomes an interactive interface.

How to verify the setup

Start a new session and ask it to use dsh-ui to draw a metrics dashboard with a sortable service table. The reply should become an interface instead of a code block, and the console should include [genui] client active; fence-channel=dom.

Before using it
  • The exact package name is @changfenhuang/dsh-genui
  • npm install alone does not register the DSH plugin
  • Reload the plugin after changing render_ui or fence feedback settings
04

Use cases

SCENARIO 01

Actionable data summaries

Put service status, metrics, or comparisons into sortable tables and charts instead of making readers scan a long text reply.

SCENARIO 02

Forms inside a conversation

Collect choices and text input, then send a structured action only when the model must continue the task.

SCENARIO 03

Practice and quizzes

Grade answers, show explanations, and retry locally in the browser, with an optional model-driven next step.

05

Assessment

The repository documents its component schema, host integration, retained state, and model action boundary in unusual detail. CI covers two DSH prerelease lines as well as tests, builds, and installation from a packed tarball. It is a strong fit for users willing to follow DSH's fast release cadence. Live output still depends on the prompt, model, and host version. This assessment is based on public evidence and did not include installation or a functional run.

Why it may be useful

  • Clear installation, activation log, and minimal verification steps
  • Allowlisted components and local-first interactions reduce arbitrary script risk
  • CI covers compatibility, tests, builds, and packed installation

What to know first

  • Depends on DSH prereleases and browser host structures
  • Remote media and actions require a separate data-flow review
  • No live installation or model interaction was performed for this publication
06

README

dsh-genui


Overview

dsh-genui renders allowlisted interactive interfaces inside DeepSeek Harness replies, including charts, forms, quizzes, Mermaid diagrams, 3D scenes, session panels, and actions that return structured events to the model when needed. GenUI for DeepSeek Harness: interactive UI components rendered inline in assistant replies via the dsh-ui fence.

Getting started

  • Add the exact scoped package to the DSH web profile, restart dsh web, and hard-refresh the browser. Running npm install alone does not register the plugin with DSH.
  • The plugin detects dsh-ui fences in assistant messages and mounts its own React interface inside the DSH conversation DOM.
  • The component schema is allowlisted. Models cannot use it to insert arbitrary HTML or scripts, and plot expressions are parsed without eval.
  • Start a new session and ask it to use dsh-ui to draw a metrics dashboard with a sortable service table. The reply should become an interface instead of a code block, and the console should include [genui] client active; fence-channel=dom.

Configuration

dsh plugin --profile web add @changfenhuang/dsh-genui
Read the complete README on GitHub →