dsh-wallpaper-engine: Wallpaper Engine Workshop Sidebar Browser

Introduction

In the development and usage scenarios of DeepSeek Harness (DSH), it is sometimes necessary to access Steam Workshop wallpapers directly in the sidebar without switching to a browser. The dsh-wallpaper-engine plugin provides this connector: it allows anonymous searching and browsing of Workshop content, supports keyword search, type filtering, and paginated browsing, and provides Steam login status detection along with steam:// subscription links.

Prerequisites

Browsing and searching for Workshop wallpapers does not require a Steam login. However, to download wallpapers locally or use them within DSH, the following three conditions must be met:

  1. Steam Client: Downloading Workshop content requires an active Steam session; Wallpaper Engine itself can only be installed via Steam.
  2. Logged into a Steam Account: Steam responds to anonymous download requests with {"success":15,"message":"No user"}.
  3. Wallpaper Engine (Paid): The only program capable of rendering scene wallpapers and applying wallpapers to the desktop.

The plugin automatically detects these three prerequisites and lists any missing items item-by-item at the top of the panel.

Core Features

The plugin primarily provides the following capabilities:

  • Browsing & Filtering: Browse Top/Latest/Rating/Subscription charts, supporting keyword search and filtering across 14 categories.
  • Pagination Control: Supports page navigation, displays total item count and total pages, and provides a jump-to-page function.
  • Details View: Clicking a card pops up a details modal displaying subscription count, favorites, view count, size, tags, and description.
  • Subscription Link: Clicking the subscribe button triggers the steam:// protocol, handing control directly to the Steam client.
  • Thumbnails: Loads wallpaper thumbnails directly from the Steam CDN.
  • Pre-check: Detects the Steam client and login status, guiding users through configuration.

Capability Boundaries

Please note the following limitations before use:

  • Scene Wallpapers Cannot Be Rendered: Wallpaper Engine has two types of wallpapers. DSH can only handle Video/Image types (mp4/webm/jpg). Scene types (.pkg) contain private binary packages and rendering pipelines that cannot be restored by the browser; they can only be used by Wallpaper Engine after downloading.
  • No Account Credentials Read: The plugin only reads the nickname from Steam’s loginusers.vdf to determine login status. It does not read tokens or initiate requests requiring login; downloads are completed by the Steam client.
  • Adult Content Filtering: Adult content tags are invisible under anonymous requests. The filter switch is based on tags, but blind spots may exist.

Installation

Use the official installation command to add the plugin:

dsh plugin --profile web add dsh-wallpaper-engine

Or install directly from the GitHub repository:

dsh plugin --profile web add github:HaydenSmith1121/dsh-wallpaper-engine

After installation, you need to restart DSH or enable the profile’s patchReload: live.

Configuration

The configuration file is located at $DSH_HOME/storages/dsh-wallpaper-engine/config.json; it is not written to DSH’s shared settings.yaml.

Field Default Value Description
sort trend Default sorting method
showAdult false Toggle for displaying adult content
proxy "" Proxy address; reads from environment variables if left empty

Usage Examples

Common usage scenarios include:
1. Browsing Workshop wallpapers and filtering by specific types.
2. Searching for wallpaper keywords and viewing the details modal.
3. Clicking the subscribe button to trigger the Steam client via steam://.
4. Configuring a proxy address to resolve network connectivity issues.

Structure

The plugin contains the following main source files:

  • src/index.js: Host half-entry, responsible for registering the plugin.
  • src/host/net.js: HTTP request module with a built-in CONNECT tunnel, not relying on Node’s fetch.
  • src/host/store.js: Atomic read/write for configuration documents.
  • src/host/workshop.js: Workshop scraping and parsing logic.
  • src/host/steam.js: Reads loginusers.vdf to report login status.
  • src/host/routes.js: Route distribution.
  • src/shared/constants.js: URL construction, HTML parsing, and configuration specifications shared by both halves.
  • src/client.js: Sidebar panel UI.

Conclusion

dsh-wallpaper-engine is a connector between DSH and Wallpaper Engine, solving the need to access the Steam Workshop directly within the DSH environment. For more details and source code, please refer to the GitHub repository.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye