dsh-ui-background: Adding Local Wallpapers and Token-Level Frosted Glass to the DSH Web Client

Preface

The DeepSeek Harness (DSH) web client interface defaults to a solid color or the theme’s built-in background. If you want to use local images or short videos as wallpaper while making the sidebar and main frame exhibit a semi-transparent frosted glass effect, the common approach is to overlay a background div on the page and add backdrop-filter to each panel individually. This often involves DOM scanning or MutationObserver, and style residue is easily left behind after disabling the plugin.

dsh-ui-background, published by community maintainer ai-yue-love, is designed for the DeepSeek Harness Web Client: it adds a fixed background layer at the bottom and achieves a full-interface frosted glass effect by overriding official theme tokens, rather than scanning the DOM. The following sections introduce what it does, how to install it, and the limitations you must accept when using it.

What is this

In short: dsh-ui-background is a plugin for the DSH web client that provides local image/video backgrounds and token-based frosted glass UI.

  • Maintainer: ai-yue-love
  • License: MIT (see repository LICENSE)
  • npm package name: dsh-ui-background (version 0.8.3 in package.json; the README states it was developed and verified on DSH 0.2.0-rc.2. Internal contracts may change during the RC phase, so re-validation is required after upgrading DSH).
  • Runtime requirement: Node >=22.19.0
  • Stars: Community directory clue shows 0 (subject to the directory site display).

The background layer consists of only a single position: fixed; z-index: -1 layer (images use pure CSS, videos use a <video> element). The frosted glass effect is achieved by rewriting tokens such as --dsw-alias-bg-base and --dsw-specific-sidebar-fill via ctx.theme.overrideTokens. Since DSH’s body, main frame, and sidebar inherently rely on these tokens for rendering, the plugin performs no DOM scanning, uses no MutationObserver, and does not attach backdrop-filter to individual panels. Disabling the background simply reverts the token layer, allowing the interface to return to its default style.

Core Features

The following capabilities are derived from the repository README. Please read the source code and license yourself before installing; the plugin runs with the current DSH Host process privileges and will read the local paths and uploaded files you configure.

  1. Background Source: Upload files or fill in local paths (read-only; files are not copied or moved).
  2. Video Background: Supports looping mp4 / webm; automatically pauses when switching to the background.
  3. Composition: cover / contain, scaling 50%–300%, horizontal/vertical positioning; adjustable directly via drag-and-drop in the settings page preview.
  4. Wallpaper Engine: Automatically scans Steam Workshop app 431960, listing only directly playable image or video items.
  5. Recent Usage: Up to 12 entries with thumbnails and composition parameters; one-click restore and single-entry deletion.
  6. File Management: Uploaded items can be deleted individually; if the currently used background is deleted, the background will automatically turn off.
  7. Privacy: The README states all processing is local, with no network connections or data collection.

State is persisted in $DSH_HOME/storages/dsh-ui-background/ (state.json and backgrounds/); uninstalling the plugin does not automatically delete this directory, so manual cleanup is required.

Installation and Activation

The installation command must use the original text from the official README (targeting the Web profile):

dsh plugin --profile web add dsh-ui-background

A Host restart is mandatory after installation: DSH’s module resolution table is built at startup, so newly installed packages cannot be imported in the current session.

After restarting, open DSH Settings and navigate to the “Background & Glass” panel to configure wallpaper and glass effects.

Typical Usage

  1. After installing and restarting the Host, upload images/videos or fill in local media paths in Background & Glass.
  2. Drag in the preview area to adjust position, and select “Fill” or “Fit” scaling modes and scale ratios as needed.
  3. If Wallpaper Engine is installed locally and you have subscribed to Workshop content for 431960, you can select from the playable items listed by the plugin (see limitations below for Scene wallpapers).
  4. For clear static images: The README suggests taking a screenshot with Win+Shift+S in Wallpaper Engine and using “Paste Screenshot” in the settings (example resolution 1920×1080).

The Host-side HTTP routes are loopback only; write operations will reject requests with sec-fetch-site: cross-site. Uploaded file names are sanitized, and path traversal is not accepted. The Host only reads local files explicitly specified in settings, as well as project.json, media, and preview images within the Steam Workshop directory.

Applicable Scenarios and Notes

Suitable for:

  • Users who want to use local images or short videos as DSH Web backgrounds and have the main interface become semi-transparent via tokens.
  • Users who change images frequently but want scaling and positioning saved in “Recent Usage” for one-click restoration next time.

Cannot do or requires attention:

Situation Description
Wallpaper Engine Scene scene.pkg requires WE’s proprietary engine for rendering; this plugin only handles image and video files.
Using WE preview images as large images The README tests show preview images are approximately 144–254 px; stretching to 1920 width will result in significant blurring.
mkv / mov Edge may fail to play these; mp4 / webm are recommended.
Global semi-transparency side effects Any area using the same set of base background tokens (e.g., code block headers, image placeholders, modal overlays) will become transparent. This is the trade-off of the token approach.

The DSH ecosystem advocates “Everything is a plugin”; the SkillHub Directory Page and GitHub repository are maintained by the community and have no official affiliation with DeepSeek / High-Flyer. Before installing any plugin, it is recommended to verify the source code, Issues, and CHANGELOG on the GitHub Repository.

Development and Self-Testing

The maintainer provides a local self-testing method in the README (not dependent on the full DSH interface):

node selftest.mjs

Description: Uses a simulated Cordis context to mount the host half-body and directly calls the plugin’s HTTP handlers. The lib side only depends on node:fs, node:path, and node:os, with no npm runtime dependencies.

Conclusion

dsh-ui-background binds the wallpaper layer and theme token overrides together: fewer DOM hooks, clean disablement, and composition saved in local history. If you primarily use DSH on the Web for long periods and are willing to accept the global semi-transparency caused by tokens, you can install it via the command above, restart the Host, and validate the effects in Background & Glass.

  • Directory Page: https://www.skillhub.cn/plugins/ai-yue-love/dsh-ui-background
  • GitHub: https://github.com/ai-yue-love/dsh-ui-background
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye