DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

dsh-inline-media-viewer-plugin

W

dsh-inline-media-viewer-plugin

Manifest valid★ 4

Renders image, video, and audio paths and URLs from DSH conversations inline, with workspace-confined local reads and an optional ComfyUI proxy.

UI (client)hasBundlePatch

dsh-inline-media-viewer

Inline image, video, and audio previews for DeepSeek Harness Web

Latest tag License Top language Optional ComfyUI

English · 简体中文

Turn media paths and URLs mentioned in a DSH conversation into secure inline previews—without copying them out of the chat log.

https://…/view?filename=frame.png  →  <img>
exports/demo.mp4                   →  <video controls>
audio/sound.mp3                    →  <audio controls>

Contents

Features

FeatureDescription
Inline renderingDisplays images, videos, and audio directly below the chat turn that mentions them.
Workspace-safe readsResolves local paths with realpath and rejects traversal, out-of-workspace paths, and symlink escapes.
Optional ComfyUI proxyFetches recognized ComfyUI media URLs server-side from the configured origin, including for remote users and HTTPS pages.
Bounded transfersLimits each file or response to 48 MiB and remote requests to 20 seconds.
User controlsProvides auto-render, per-turn item limit, media height, and optional ComfyUI origin settings.

[!NOTE] ComfyUI is not required. Workspace files and regular HTTP(S) media URLs work when ComfyUI is not installed or running; its proxy is activated only for recognized ComfyUI URLs.

Supported media

TypeExtensions
Imagespng, jpg, jpeg, webp, gif, avif, bmp, svg
Videomp4, webm, mov, m4v, mkv, avi, ogv
Audiomp3, wav, m4a, aac, ogg, oga, flac, opus

Installation

Targets DSH v0.1.3-alpha.1+ APIs. Host startup and the settings section were verified on v0.1.5-rc.1. End-to-end media playback on v0.1.5-rc.1 has not been verified.

From npm

Install and activate the bundle in your Web profile:

dsh plugin --profile web add @wisdoverse/dsh-inline-media-viewer@1.0.11

Restart the Web profile after installation.

From source

  1. Clone the plugin into a location available to your Web profile:

    git clone https://github.com/Wisdoverse/dsh-inline-media-viewer-plugin.git \
      /path/to/local-plugins/dsh-inline-media-viewer
    
  2. Add the bundle to profiles/web/package.json:

    {
      "dependencies": {
        "@wisdoverse/dsh-inline-media-viewer": "link:/path/to/local-plugins/dsh-inline-media-viewer"
      },
      "dsh": {
        "profile": {
          "bundles": ["…", "@wisdoverse/dsh-inline-media-viewer"]
        }
      }
    }
    
  3. Rebuild or restart the Web profile.

The plugin mounts its host RPC channel, client projection, and settings section through cordis.patch.yml.

Configuration

Open Settings → 媒体预览 / Media preview.

The navigation label and all setting copy follow DSH's active UI language and switch live between English and Chinese.

SettingDefaultAllowed values
Auto-render detected mediaOnOn / off
Maximum items per turn121–30
Maximum media height380 px160–1200 px
ComfyUI origin (optional)Emptyhttp(s)://host[:port]

Settings are stored in the DSH settings document. Writes are available only on loopback connections; remote browsers can read settings but cannot persist changes.

ComfyUI origin

  • Skip this setting entirely if you do not use ComfyUI.
  • Leave the field empty to use http://127.0.0.1:8188.
  • Accepted forms are http://host[:port], https://host[:port], and bare host[:port] (http is assumed).
  • The default port is 8188 for HTTP and 443 for HTTPS.
  • Credentials, paths, query strings, and fragments are rejected.
  • The origin must be reachable from the DSH host process. For a containerized host, use the address visible from inside the container.

Local aliases (127.0.0.1:8188 and localhost:8188) and the configured origin are recognized as ComfyUI sources. A non-empty invalid address fails explicitly instead of silently falling back to another target.

Security

The plugin is designed as a local trust helper, not a general-purpose file or network proxy:

  • Local reads are confined to the active session's workspace and known media extensions.
  • Remote reads can target only the configured ComfyUI origin; redirects are refused.
  • Local files and remote responses are capped at 48 MiB.
  • Settings writes are restricted to loopback connections.
  • The browser receives media as data: URLs rather than filesystem paths.

See SECURITY.md for the complete trust model and known limitations.

Development

Commands

CommandPurpose
node test.mjsRun the dependency-free unit tests directly.
npm testRun the same unit test suite through npm.
npm run lintSyntax-check the host modules and test file.

Project structure

PathResponsibility
index.jsHost RPC channel, ComfyUI proxy, and settings registration.
lib.jsPure, dependency-free helpers.
client/client.jsTurn projection, media renderer, and settings UI.
cordis.patch.ymlBundle mounting and integration points.
test.mjsUnit tests for the pure helpers.

The running Web profile serves a bundled copy. Rebuild or restart it after changing the source files.

License

Released under the MIT License.

Compatibility

DSH 0.2.1-rc.4: failedDSH 0.2.1-alpha.5: failedDSH 0.2.1-rc.1: failed

Versions

Latest versionPublishedSize
1.0.1——
1.0.2——
1.0.3——
1.0.5——
1.0.6——
1.0.7——
1.0.8——
1.0.9——
1.0.10-alpha.1——
1.0.10——
1.0.11——
1.0.12——
1.0.13——

Comments

Loading…

Similar plugins

dsh-media-preview

by xiaokaizhou

Renders local audio/video paths as inline, playable previews in DSH chat: replaces paths with <audio>/<video> players backed by same-origin /api/media-preview/* route, with explicit error statuses.

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 0

MIT

JavaScript

Sep 21, 2026

dsh plugin --profile web add media-preview

by OrderG-X

Inline video and audio playback inside DeepSeek Harness: a play_video tool plus a native player at the turn tail, served by a signed Range-capable streaming route.

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 2

↓ 295/wk

MIT

JavaScript

Oct 27, 2026

dsh plugin --profile web add dsh-video-preview

by seeingrain

All-in-one inline media previewer for img/video/audio fences with streaming playback, ffmpeg transcoding fallback, lightbox, and trust-fenced LAN/mobile access.

UI & ExperienceTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

Sep 12, 2026

dsh plugin --profile web add dsh-media-inline-preview

by condaThinker

DSH plugin: show_image tool that renders an image inline into the web chat flow (QQ/WeChat style) — path text in the message, image bytes never enter model context.

Tools & CapabilitiesManifest valid

★ 2

JavaScript

Aug 30, 2026

dsh plugin --profile web add dsh-image-inline
dsh-md-preview

No screenshots

Dockable Markdown preview for the DSH Web UI: side-by-side with the conversation, a per-session recently-read .md list, local relative-path images render in place, and clicking an in-chat .md referenc

Themes & SkinsDevelopment & InfrastructureManifest valid

★ 0

dsh plugin --profile web add dsh-md-preview

by 3403473060

Render local image paths from assistant replies inline in the message body (9 formats, click-to-zoom lightbox, adjustable size).

Development & InfrastructureTerminal & ClientsSessions & MessagesManifest valid

★ 5

MIT

JavaScript

Aug 14, 2026

dsh plugin --profile web add dsh-inline-images