Foreword¶
DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture. The desktop version primarily loads app.asar at runtime. Directly modifying this file leads to issues such as being overwritten during updates, corrupted installations due to repackaging, or difficulty in rolling back. The dsh-boot-anim plugin utilizes the webserver/index-inject mechanism via the host-side plugin contract to achieve injection, providing customization of the boot experience without touching the original source code.
What is this¶
dsh-boot-anim is a boot animation plugin designed for the DSH desktop version.
* Maintainer: gxpppp
* Category: Fun Customization
* License: MIT
* Core Value: Provides a SteamOS-style seven-stage boot animation, as well as a UI entrance transition effect that moves from outside to inside in layered rings.
Core Features¶
- SteamOS-style Seven-Stage Boot Animation: Includes stages such as black screen, whale emergence, double-line convergence, outline sketching, center line expansion, white drop, and layered UI entrance.
- UI Entrance Transition: Adopts a layered entrance method moving from outside to inside in rings, divided into three waves: outer three columns, main blocks within columns, and content blocks within main blocks.
- Host-side Injection: The plugin is injected via
webserver/index-inject, acting as a host-side plugin without modifying the source code. - Zero Dependencies: Does not rely on any additional third-party libraries.
- Official Assets: Uses vector data for the whale and brand wordmark from
@deepseek-ai/dsh-client-ui-primitives. - Safety Nets: Supports
prefers-reduced-motion, key-press skipping, exception catching, and graceful degradation.
Installation and Activation¶
- Install the Plugin
Use a single command to add the plugin to the desktop profile:
dsh plugin --profile desktop add github:gxpppp/dsh-boot-anim
Note: This command only writes dependencies and will not automatically modify the `bundles` configuration.
- Configure Bundles
The plugin must be present indsh.profile.bundlesto take effect. Add the package name to the configuration file:
"dsh": { "profile": { "bundles": [ /* ... */ , "dsh-boot-anim" ] } }
- Restart
Restart DeepSeek Harness desktop to apply the changes.
Local Development and Debugging¶
If you need to modify the animation or quickly verify the code, it is recommended to install from local:
git clone https://github.com/gxpppp/dsh-boot-anim.git
cd dsh-boot-anim
powershell -ExecutionPolicy Bypass -File install.ps1
This script creates a junction to node_modules. After modifying files under lib/, simply refresh the page to see the effects.
Technical Details¶
- Positioning Mechanism: Since the DSH frontend uses CSS Modules without stable class names, this plugin locates UI sections using the
[data-shell-overlay]semantic anchor and sorts columns usinggetBoundingClientRect().left. - Whale Rendering: Reuses the vector paths of the official component directly, and uses SVG’s
vector-effect: non-scaling-stroketo resolve the issue of thinning strokes when scaled down. - Transition Logic: All animations are centralized in the
Ttable ofboot-anim.jsand implemented via the Web Animations API.
Notes¶
- Package Name Consistency: The plugin package name must match the repository name (
dsh-boot-anim), otherwise the loader will silently skip the bundle. - Runtime Permissions: The plugin runs under the current DSH process permissions. Please check the source code and license before installation.
- Dependencies: Depends on the official component
dsh-client-ui-primitives.
Conclusion¶
dsh-boot-anim provides a solution to deeply customize the DSH desktop boot experience without repackaging. Through host-side injection and vector animations, it achieves a visual experience close to native SteamOS. For more details, please refer to the GitHub repository.