DeepSeek Harness Plugin

TomContral/dsh-plugin-crypto-ticker

Stars ★ 1 Category UI Enhancements Added 2026-12-01

Live crypto price ticker for the DSH right sidebar with Binance WebSocket, REST fallbacks and carousel float windows.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:TomContral/dsh-plugin-crypto-ticker

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README


A DeepSeek Harness plugin that adds a Markets tab to the right sidebar, streaming live USDT prices and 24h change for major coins.

Features

  • Live feed — connects to the Binance combined ticker WebSocket first; price ticks flash green/red.
  • Resilient fallback — if the socket delivers nothing within 8s or drops, it falls back to a REST polling chain: Binance (5s) → OKX (5s) → CoinGecko (15s). A supplement loop backfills any pair the stream never delivers, so no row stays stuck.
  • Carousel floats — multi-select coins and float them in a single window that rotates through them (default every 5s). Dots show the current position; click a dot to jump.
  • Switch interval — set the rotation interval (1–120s) in the sidebar Manage coins panel; it applies to all carousel floats instantly and persists.
  • Per-window opacity — each float has a 20–100% opacity slider, remembered per window.
  • Manage coins — add/remove coins from the gear panel; Binance/OKX pairs are derived automatically (SYM+USDT / SYM-USDT). The feed rebuilds live.
  • Master power switch — stop all real-time fetching (socket, polling, supplement) with one click; prices freeze, state persists across restarts.
  • Floats are draggable, position-persisted, and keep streaming even when the sidebar is collapsed. UI follows the DSH language (English / 中文).

Install

From a plugin market / index (recommended): enable Plugins → Experimental plugins → Custom plugin indexes, open Discover, Add index source, and paste the index URL:

https://tomcontral.github.io/dsh-plugin-crypto-ticker/index.json

Manual (Git): install the bundle from this repository in the DSH Plugins page, or add it to your web profile:

github:TomContral/dsh-plugin-crypto-ticker#v0.1.0

Data sources

Binance WebSocket → Binance REST → OKX REST → CoinGecko REST. If all sources fail it shows Offline with a retry button and retries every 30s.

Known limitations

  • Colors follow the international crypto convention (green up / red down).
  • Direct Binance access may be blocked on some networks (e.g. mainland China); the plugin automatically falls back to OKX / CoinGecko. A system proxy may be needed if all sources are unreachable.

Development

File Role
package.json dsh.bundle.patch + dsh.client (platform: web) declaration
cordis.patch.yml Inserts one host Loader row crypto-ticker
lib/index.js Host half: empty apply (placeholder Loader row)
lib/client.js Browser half: hand-written factory-style CJS bundle; registers the tab type + slot body + float layer
docs/index.json Plugin-market index (served via GitHub Pages)
docs/icons/crypto-ticker.svg Market / repo icon

lib/client.js follows the @deepseek-ai/dsh-client-modules bundle protocol (window.__ModuleLoader__.load({ id, factory })) — no build step. It only requires react, react/jsx-runtime, react-dom/client from the platform base. Singletons: coinStore (watchlist), feedManager (refcounted feed), floatStore (float windows), intervalStore (global rotation interval), and FloatLayer (an independent React root on document.body).

The market index lives in docs/, so GitHub Pages (main branch /docs) serves it at https://tomcontral.github.io/dsh-plugin-crypto-ticker/index.json.

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.