dsh-splash-gojo: DeepSeek Harness Fullscreen Boot Animation (Host Injection)

Preface

When DeepSeek Harness (DSH) starts, the official HARNESS / Loading plugins… splash screen appears by default. If you want to show a custom full-screen view before the application UI is mounted, browser-side plugins often can’t make it in time: they must wait for all plugin entries to activate before running, by which point the official splash has already been drawn; the official practice documentation also forbids plugins from appending nodes to document.body or replacing the app root node.

oumaekumiko0821/dsh-splash-gojo (package name dsh-boot-splash) takes a different route: it implements only the host side, injecting styles, overlay structure, and hand-off scripts while the host renders the boot HTML, with a JPEG inlined as a data URI and zero runtime npm dependencies. The following sections describe what it does, how to install it, and how to tune its parameters.

What Is This

An open-source DSH boot animation plugin by maintainer oumaekumiko0821 on GitHub, categorized as “Fun Theming” in the community directory SkillHub. Current repository version 1.0.0 (see package.json); code is licensed under MIT; the default splash image assets carry a separate source notice and are outside the MIT scope (see the repository NOTICE).

In one sentence: it turns a single image into a full-screen boot sequence — the first frame is in place immediately, during startup the image slowly scales down, a horizontal light band sweeps across, a central glow and HUD progress appear, and when the application finishes mounting it flashes once and fades out.

Core Features

Visuals and Interaction

  • Full-screen hero visual: the image fills the screen with cover, slowly easing down from about 1.14× to 1.005×.
  • Horizontal light band: a glowing scan band sweeps from left to right.
  • Central glow: a purple halo in the center brightens from dark, with a breathing rhythm paused mid-cycle.
  • HUD: a wordmark in the lower-left (default DEEPSEEK HARNESS, with tightened letter spacing and a deblurred fade-in), a subtitle, a progress bar (self-advancing to 88% first, then filling to complete when ready), stage text (Initializing kernel → Loading plugins → Restoring session → Ready), and a percentage in the top-right corner.
  • Skip: click anywhere on the screen, or press Esc / space / Enter; after about 1.5 seconds a “Click to skip” hint appears in the lower-right corner.
  • Language: follows the host’s <html lang>, showing Chinese in a Chinese environment and English otherwise.
  • Accessibility: when prefers-reduced-motion: reduce is set, displacement animations are disabled and only fade transitions remain.

Why a Host Plugin

The boot animation must appear before the application UI. This plugin listens for webserver/index-inject and pushes three lines every time the boot HTML is rendered:

Line Position Content
style <head> All animation CSS + failsafe animation
html After <body> Overlay structure + image inlined as a data URI
script Same body group Ready / max-duration / skip hand-off logic

There is no client side and no imports of other modules; the overlay sits before <div id="root">, so React’s hydrateRoot never touches it.

Readiness detection: mounting is considered complete when the frontend load card [data-dsh-boot] is taken over and replaced by React; the appearance of non-load-card child nodes under #root serves as a fallback.

Three-layer exit (to prevent the UI from being stuck):

  1. Ready signal → fade out (~620ms + flash).
  2. Hard cap maxShowMs (default 9s) → the script fades out on its own.
  3. Pure CSS failsafe: dshs-failsafe sets visibility to hidden at maxShowMs + 1.5s, so the interface is revealed even if all scripts fail.

Installation and Activation

The plugin runs with the permissions of the current dsh process; read the repository source code and licenses (including the splash image NOTICE) before installing.

dsh plugin --profile <profile> add <absolute path to this directory>

On Windows you must use an absolute path (a bare directory name will be treated as an npm package name). Because dsh.bundle is declared, the manager also writes into dsh.profile.bundles.

  • New plugins require a host restart: the animation is embedded in the boot HTML, so it only appears on the first page load after a restart.
  • The desktop profile on desktop (Electron) is exclusive to the application; the global dsh CLI will refuse it. Installation must go through the application’s bundled CLI or the in-app plugin management page.

Uninstallation and Pausing

Uninstall:

dsh plugin --profile <profile> remove dsh-boot-splash

Pause (without uninstalling): add a line to the profile’s cordis.patch.yml, effective after a restart:

- id: dsh-boot-splash
  disabled: true

Configuration

Modify values in the config: block of the same patch entry; changes take effect on the next page load — no host restart required:

- id: dsh-boot-splash
  name: dsh-boot-splash
  disabled: false
  config:
    minShowMs: 2000      # Opening animation duration; also drives the progress bar's self-advancement
    maxShowMs: 6000      # Hard cap; auto-closes on timeout
    wordmark: 'DEEPSEEK HARNESS'
    allowSkip: true
    enabled: true        # false = no lines are injected at all

Values are clamped to safe ranges (minShowMs 200–30000, maxShowMs 500–120000), and wordmark is HTML-escaped.

Replacing the Splash Image

Replace assets/boot-splash.jpg (any JPEG size), then run a build; the image will be re-inlined into lib/index.js:

npm install
npm run build

The repository includes tests (requires jsdom):

npm test

tests/verify.mjs follows the real host path: collecting injected lines → rendering with jsdom and executing the script → asserting the overlay, exit timing, and cleanup. To verify that the host actually writes the lines into the HTML, you can use an isolated profile cold-start probe (the README contains steps such as dsh --profile splash-probe --no-open --port 0).

Use Cases and Notes

Suitable for: scenarios where you want to show a branded or playful boot animation before DSH’s first screen, and accept the semantics that it plays on every page load (including refresh).

Boundaries (from the README):

  • When not needed, set disabled: true in the patch or config.enabled: false.
  • During startup the overlay intercepts pointer events (enabling “click to skip”); after readiness the node is removed with no residue.
  • No brightness/theme adaptation; the default dark overlay has a “title sequence” feel under light themes.
  • The image is inlined into the HTML, costing about 400KB of local transfer per load.
  • The overlay has z-index: 100000 and exists only during startup.

The DSH ecosystem philosophy is “everything is a plugin”; community directories such as SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer.

Links

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

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

Xiaoye