dsh-opening-animation: Add optional opening animation to the DSH Web loading page

Introduction

Every time DeepSeek Harness (DSH) Web is opened, it undergoes host loading and plugin bundle evaluation before the interface becomes stable and usable. If you desire a controllable visual intro before entering the main interface—rather than immediately seeing a blank screen or the default loading splash—you need to overlay a full-screen mask on the client side and smoothly hand over control to #root after the playback finishes. The community plugin dsh-opening-animation (maintainer linke-e, categorized as “Fun & Dress-up”) addresses this need: it plays your chosen image animations or videos on a full-screen mask during every dsh web page load, then hands the screen back to the main interface with a configurable transition. It can be used in conjunction with dsh-custom-skin.

The following section covers the plugin’s positioning, capabilities, and installation/activation methods. For factual accuracy, please refer to the GitHub repository README; the community directory page is available at SkillHub.

What is this

dsh-opening-animation is an opening animation plugin for DeepSeek Harness Web. The current package version is 0.8.0, licensed under MIT. It does not alter the core logic of the Harness; instead, it injects a mask and controller into the Web client. Users can upload or select media, choose built-in animation engines and exit transitions, and optionally enable playback on every page load. Startup playback is disabled by default and must be manually enabled in the settings.

Image and Video Intros

Image Intros

Supports jpg / png / webp / gif / avif, with a single file limit of ≤20 MB. Decoding is tested upon import; images exceeding 32 million pixels (approx. 8K resolution) will be rejected. The media library has a limit of 8 entries. Capacity truncation or decoding failures will trigger clear notifications rather than silent discarding.

The playback order (Single / Sequence / Random, default: Single) determines which image plays at startup: Sequence mode progresses from the selected item through the list and wraps around at the end; Random mode ensures no immediate repetition of the previous image when there is more than one image. The preview always plays the currently selected media; this setting does not affect videos.

Built-in image animation examples listed in the README include 404, wipe-reveal, pool, grid-mouse, retro-boot, code-rain, constructivism1, etc. The complete list is subject to the repository documentation.

Video Intros

Supports mp4 / webm / mkv, with a single file limit of ≤256 MB. Decoding support is detected upon import. For automatic playback, the engine attempts to unmute upon the first playing event: if the browser permits audio autoplay, sound plays according to volume settings; if rejected, it falls back to muted to prevent stalling and displays a “Click to enable sound” prompt (this click does not skip the animation). Long videos are not truncated.

Fill modes include cover (fill screen, default) or contain (fit entirely); scale defaults to 1, with horizontal/vertical offsets defaulting to 0 (unit: percentage of screen width/height). Audio at the video end can fade out via an exponential curve (default 1.5s, 0 disables); audio at the start fades in linearly (default 1s, 0 disables), and also fades in when clicked to unmute.

Exit Transitions, Early Overlay, and Interaction

Exit transitions include cross-fade (default), dip-to-bg, and zoom-fade, with adjustable speeds of 0.5–2×. During animation, the main interface is held down by the mask (#root is suppressed by a pending attribute to avoid frame flashing) and is restored after the transition ends.

Startup screen early overlay uses a two-level mechanism: Level 1 is host index injection (for serve deployments, the webserver writes an inline script into the index.html head). It reads preferences during HTML parsing and, if the intro is enabled, darkens #root and the background before the official “HARNESS / Loading plugins…” screen appears. Level 2 is a client-side full-screen dark mask, acting as a fallback for deployments without index injection. Both levels share the removal chain; the client-level mask also has a 4-second fallback timer to prevent permanent black screens. If the injection level fails, the official loading screen will still display until bundle evaluation completes (approx. 1 second); the plugin cannot override this host loading period.

Skip anytime: Click anywhere or press Esc (the skip hint in the bottom right corner can be disabled; for tap-reveal, the first click starts the reveal, subsequent interactions are consistent with other animations).

Settings Page and Reliability

Settings entry: Personalization › Opening Animation. Users can switch the entire DSH Web interface language (Language at the top), upload/select/delete/clear media, switch animations and transitions, adjust advanced parameters, preview, and reset to defaults. When dsh-custom-skin is installed, advanced parameter controls can blend with the wallpaper theme. Optional integration with dsh-custom-skin is available (disabled by default): uploaded images can be copied unidirectionally to the wallpaper library without modifying skin preferences.

Safeguards and fail-open: The main interface is always available. Fatal errors (storage inaccessible, media missing, image loading failure, etc.) immediately remove the mask without transition. Three watchdogs—load timeout 8s (released after media is ready), image duration limit (default 15s, adjustable 3–120s, acts only as a forced exit safeguard; videos are not restricted), and video no-progress 10s—trigger a transitioned exit when activated. Write failures due to full storage quota are reported separately. Preview is not subject to the “play once per page” restriction.

Accessibility: During playback, the main interface is set to inert, decorative canvases are hidden from screen readers, and the skip prompt is readable. Original focus is restored after removal.

Installation and Activation

The plugin is installed with the DSH Web profile. The steps provided in the official README are as follows:

cd $DSH_HOME/profiles/web
pnpm add <local-directory-path-or-tarball>

Then, in the profile’s package.json, add dsh-opening-animation to the dsh.profile.bundles array.

Building from source requires Node ^22.19.0 or ≥24:

pnpm install
pnpm check   # typecheck + vitest + build

After installation, restart or reload dsh web, enter Personalization › Opening Animation, upload media, select animation and transition, enable startup playback, and save. You can click “Preview Opening” for manual regression testing if needed (the README recommends verifying the Canvas and media playback chain in a real browser).

Extending Animations (Developers)

Creating a new animation involves adding one engine file and a single line of registration in registry.ts. Once parameters are declared via paramsSchema, the settings page renders automatically; the playback chain requires no modifications (ADR-003). Refer to the repository documentation for details.

Use Cases and Notes

Suitable for developers and personal deployments wishing to display brand effects, fun GIFs, or short videos when DSH Web starts. The plugin runs under the permissions of the current dsh process. Before installation, read the source code and confirm compliance with the MIT license and constraints such as media size and pixel limits. The community directory SkillHub and GitHub have no official affiliation with DeepSeek or High-Flyer; this is an independent entry within the community ecosystem.

Conclusion

dsh-opening-animation turns “the first screen of every DSH Web opening” into a configurable asset: an image animation library, video intros, adjustable transitions, and fail-open watchdogs. It also suppresses the official loading screen as much as possible under serve deployments. By default, it does not disturb daily startups; simply enable it in the settings to use.

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

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

Xiaoye