Download queue with aria2 and optional Xunlei engines, magnet links, and a per-session history; aria2 is not bundled and must be installed separately, and the Xunlei engine needs its own SDK and API key. Built mainly for Windows.
Install
# from npm (prebuilt)
dsh plugin --profile web add @philomelcc/dsh-downloads
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:philomelcc/dsh-workbench#path:/packages/download-center
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
This plugin publishes its README in Chinese only.
工作台模块:一个真正的下载队列——进度、暂停/继续/取消、磁力链接、Chrome 默认下载接管,以及每个会话下载过什么的记录。
安装
dsh plugin --profile web add @philomelcc/dsh-workbench
dsh plugin --profile web add @philomelcc/dsh-downloads
重启 Web UI,模块会加出下载标签。
引擎
| 来源 | 引擎 |
|---|---|
磁力 / .torrent |
aria2(DHT + LPD,--seed-time=0) |
| HTTP / HTTPS | 配了 API Key 时走迅雷 P2SP,否则 aria2 16 连接 |
本包不自带 aria2(GPLv2,5 MB 的二进制)。自己装好后模块会自动找到:
- 环境变量
ARIA2C_PATH指向可执行文件,或 - 缓存副本
~/.dsh/download-center/bin/aria2c[.exe],或 winget install aria2.aria2/scoop install aria2后重启。
没有 aria2 时页面照样能开;磁力会给出可读错误,/wb/downloads/health 会说明原因。
迅雷引擎是可选的,也不是依赖(它带一个需要构建批准的原生模块)。有 API Key 就自己装:
npm i @xunlei-open/dlsdk @xunlei-open/dlsdk-native-windows-x64
凭据放在 ~/.dsh/secrets/xunlei.txt。没装 SDK 时磁力/HTTP 走 aria2,迅雷引擎给出可读错误,不影响页面。
端点
| 方法 | 路径 | 请求体 |
|---|---|---|
| GET | /wb/downloads/list |
—(任务 + 统计) |
| GET | /wb/downloads/history |
—(会话记录) |
| GET | /wb/downloads/health |
—(引擎路径、默认目录) |
| POST | /wb/downloads/create |
{ url, dir?, fileName?, backend? } |
| POST | /wb/downloads/pause · resume · cancel · remove |
{ id } |
| POST | /wb/downloads/open |
{ id, kind: 'file' | 'dir' } |
| POST | /wb/downloads/register |
{ … } —— 供 fast_download 工具登记 |
所有路由只接受回环访问。
结构
index.js Host:上面的路由
client.js Client:页面 + registerView('downloads')
lib/tasks.js 任务表、状态机、持久化、历史记录
lib/engines.js aria2 / 迅雷子进程引擎与进度解析
lib/xunlei*.mjs 迅雷 worker(独立进程,dll 崩了不带走 host)
chrome-extension/ 可选的 Chrome 默认下载接管扩展
test/ client 侧冒烟测试
MIT。aria2 和迅雷 SDK 保持各自许可。
Links
More in this category
DayuanJiang/next-ai-draw-io#dsh-plugin★ 36802
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
Tencent/WeKnora#dsh-weknora★ 36302
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
superdesigndev/treg★ 7042
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 5074
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
sixtysevenlf/dsh-blender-plugin★ 1575
Lets a DSH agent drive a local Blender over a direct TCP channel with 15 tools: viewport frames, custom-angle renders, Python execution, headless and job offload, transaction rollback, and a planning layer of 228 ops across 34 families.
TencentCloudBase/CloudBase-AI-Toolkit#dsh-plugin★ 1155
Tencent CloudBase backend for DeepSeek Harness — scaffold and deploy full-stack apps from chat, render query results as table cards with paging, sorting and CSV export, preview a deployment on its domain, and call the CloudBase MCP toolset (`mcp__cloudbase__*`) with device-code login.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.