DSH Plugins Marketplace

DSH Plugins

Plugins

/

Just for Fun

/

dsh-music

d

dsh-music

Manifest valid

Embeds the acgay music site as a DSH side panel with search, a global mini player, and optional import of missing tracks into acgay when an import token is configured. Its HTTP routes have no DSH acce

UI (client)hasBundlePatch

dsh-music

A DeepSeek Harness (DSH) plugin that embeds the online acgay.cn music site in a right-side drawer, with an optional import path for missing tracks.

Features

  • A small vinyl button in the DSH top-right corner opens a right drawer.
  • The drawer preloads behind the scenes and keeps its iframe mounted, so reopening is instant and the acgay login session is preserved.
  • The site header, footer and bottom navigation are hidden inside the drawer. Login is available at the top of the drawer.
  • Search queries acgay and an online catalog in parallel; acgay results are always listed first.
  • Online catalog rows can be imported into acgay, where they are published immediately (status = 1).
  • A compact top player controls play/pause, previous/next, progress, and shows the current cover/title.
  • The drawer and the surrounding workspace animate open/closed. Clicking outside closes it; Esc also closes it.

Requirements

  • DSH desktop with the profile patched to load this package.
  • ffmpeg and ffprobe on PATH for imports. Search and playback do not need ffmpeg.
  • Node.js 20+ (the DSH runtime is normally sufficient).

Install

Add the package to the DSH profile and patch the profile:

// ~/.dsh/profiles/desktop/package.json
{
  "dependencies": {
    "dsh-music": "link:/absolute/path/to/dsh-music"
  },
  "dsh": {
    "profile": {
      "bundles": ["dsh-music"]
    }
  }
}
# ~/.dsh/profiles/desktop/cordis.patch.yml
- insert:
    - id: dsh-music
      name: 'dsh-music'

Reload DSH after adding the package. If the client half does not appear on an already-running app, restart DSH once.

Import credential (optional)

Import is disabled when no credential is configured. Search, playback, login, and the mini player still work.

The host resolves the token in this order:

  1. ACGAY_IMPORT_TOKEN environment variable.
  2. config.importToken / config.token in the plugin row.
  3. ACGAY_IMPORT_TOKEN_FILE environment variable (path to a file).
  4. ~/.acgay-import-token.
  5. ~/.dsh/profiles/desktop/acgay-import-token (legacy location).

The file contains the raw token, one line. Import is enabled when a non-empty token is found.

When no token is set:

  • /dsh-music/state returns imports: false.
  • Per-row import buttons and the “抓取并入库” action are hidden.
  • A direct POST to /dsh-music/import returns HTTP 503.

Do not commit the token. It is a shared write credential for the acgay import endpoint.

Optional environment variables

VariableDefaultPurpose
ACGAY_BASE_URLhttps://www.acgay.cnUpstream site used by the proxy and the importer.
ACGAY_IMPORT_TOKENunsetEnables import.
ACGAY_IMPORT_TOKEN_FILEunsetRead the token from a custom path.
ACGAY_FFMPEGffmpegffmpeg executable.
ACGAY_FFPROBEffprobeffprobe executable.
DSH_ACGAY_NODE_BINprocess.execPathNode executable used for the import worker.

How import works

  1. The client asks acgay for online catalog candidates along with the normal site search.
  2. Clicking “导入”, or “抓取并入库”, calls the plugin host route POST /dsh-music/import with { query }; a catalog item id may be sent instead.
  3. The host starts scripts/import-one.mjs as a short-lived child process.
  4. scripts/import-direct.mjs selects one candidate, downloads it, converts it to 192 kbps mp3 with ffmpeg, and POSTs a multipart request to acgay’s /api/plugin/import with the token.
  5. acgay writes the audio/cover to OSS, inserts a published lab_music row and an lab_import_log row, and returns the production id. The drawer navigates to /sound/{id}.

Nothing is written to a local MySQL database or local OSS client.

Security notes

  • The shared import token grants upload + auto-publish permission. Never ship it in a public repository or client bundle.
  • The embedded acgay login session is kept in ~/.dsh/dsh-music-cookies.json (mode 0600) by the loopback proxy, so a DSH restart does not force a new acgay login. It contains a session cookie, not a password. Delete the file to drop the saved session locally; the acgay session expiry still applies server-side.
  • A shared token should only be used in a trusted self-hosted setup. For multi-user deployments, use per-user tokens or a rate-limited endpoint.
  • The plugin performs no database, OSS, or catalog account authentication itself; all privileged writes happen in the acgay server endpoint.

Development

  • index.js: DSH host half; proxy, state, import route.
  • client.js: DSH web client half; vinyl button, drawer, search panel, mini player.
  • assets/bridge.js: injected into proxied pages; forwards window.__ACGAY_PLAYER__ state and commands.
  • scripts/import-direct.ts: source for the importer.
  • scripts/import-direct.mjs: runtime bundle (generated from the TS source).
  • scripts/lib/*.ts / *.mjs: vendored catalog client used by the importer.

License

MIT

Comments

Loading…

Similar plugins

dsh-music-player

DeepSeek Harness Web 本地音乐播放器插件:会话视图「音乐」标签页,flac/mp3 等常见格式,单曲/列表循环,macOS Music 风格 UI

UI & ExperienceManifest valid

★ 2

MIT

JavaScript

dsh plugin --profile web add @heshuren/dsh-music-player

by xiaoqiezi-china

为Deepseek-Harness开发的音乐播放插件。允许用户播放本地与网易云音乐。支持通过Cookie解锁VIP歌曲。提供了丰富全面的skill允许Agent控制音乐播放,自定义播放器CSS层叠样式表。允许队列结束后自动通知AI来挑选新的歌曲。

Manifest valid

★ 0

↓ 244/wk

MIT

JavaScript

Aug 15, 2026

dsh plugin --profile web add dsh-music-player

by hey-ruomei

DeepSeek Harness music player plugin: search and stream legal music from Audius in the web UI, controllable by agent tools.

Terminal & ClientsManifest valid

★ 0

MIT

TypeScript

Aug 19, 2026

dsh plugin --profile web add dsh-music-player

by xiekai886

这是一个可以让你边对话边听歌的 DeepSeek Harness 插件:折叠/展开两种可自由拖动的悬浮窗口形态,利用 Meting API 等解析源接入网易云音乐,支持歌单导入和按歌名或歌手搜索单曲导入。Chat and listen at the same time.

Just for FunManifest valid

★ 4

MIT

JavaScript

Aug 16, 2026

dsh plugin --profile web add @dsh-external/dsh-music

by wilsonchengassistant

Plays video and audio files in the right Sidebar preview pane, streamed over an authenticated HTTP Range route so a remote browser can play and seek a large file without launching a native player on t

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Oct 21, 2026

dsh plugin --profile web add dsh-media-web-preview

by AKS1st

Media player for the DSH dock: plays audio (music player) and video (fullscreen) files, streamed over HTTP Range.

Development & InfrastructureTerminal & ClientsManifest valid

★ 0

MIT

TypeScript

Sep 11, 2026

dsh plugin --profile web add dock-media