MorGogh/widget-dock 预览 preview

MorGogh/widget-dock

DSH 插件:可拖拽小组件面板(余额、代币、统计、命令、目标、成本),适用于 DeepSeek Harness

Project Overview项目介绍

This is a native plugin built exclusively for the DeepSeek Harness (DSH) web client. It adds a grid-aligned card-based workbench to the empty space on either side of the DSH conversation interface. It includes 27 different widgets that cover a wide range of utility functions, from API balance checking, token usage counting, conversation cost estimation, context status monitoring to task management and quick tool access. Widgets support spanning multiple columns based on their size and align strictly across rows, giving a clean and organized experience similar to iOS home screen widgets.

The plugin saves layouts independently for each conversation, so when you switch between conversations, your current card combination, size, and position are automatically retained, and all configurations remain intact even after restarting the DSH client. To add a new widget, click the "+ Add" button at the bottom of the workbench to open the sidebar, you can search or filter by category to find the widget you want, then click to add it quickly or drag it directly to any spot on the workbench. To reorder widgets, just hold the drag handle on the widget header and move it whenever you want, no need to enter a dedicated editing mode.

The plugin currently only supports the DSH web client and does not work with TUI or other DSH client variants at this time. You can install it directly via DSH's npm plugin command, or manually clone the repository and link it to your DSH profile. It is released under the open source MIT license, does not include a built-in API key, and all your configuration is stored only in your local browser's localStorage. For first-time use of the balance and cost estimation widgets, you will need to manually enter your DeepSeek API key.

这是一款专为 DeepSeek Harness (DSH) Web 客户端开发的原生插件,会在对话界面两侧空白区域添加一个网格对齐的卡片式工作台。目前内置了 27 款不同功能的小组件,覆盖 API 余额查询、Token 用量统计、对话成本估算、上下文状态监控、任务管理、工具快捷调用等多种实用功能。卡片支持按尺寸跨列排列,整体严格对齐,带来类似 iOS 系统桌面小组件的整洁使用体验。

插件支持每段对话独立保存布局,切换会话会自动保留当前的卡片组合、尺寸和位置,重启客户端后所有配置也不会丢失。用户可以点击工作台底部的「+ 添加」按钮打开侧栏,通过搜索或分类找到需要的卡片,点击快速添加,也可以直接拖动卡片放到工作台任意位置。日常使用时,按住卡片头部的拖动标识即可随时调整排序和位置,不需要进入专门的编辑排序模式。

插件目前仅支持 DSH Web 客户端,暂不支持 TUI 等其他客户端形态。安装可通过 DSH 的 npm 插件命令一键完成,也可手动克隆仓库链接配置。它采用 MIT 开源许可,不内置 API 密钥,首次使用余额卡和成本估算卡需要用户手动填入 DeepSeek API 密钥,所有配置仅保存在本地浏览器 localStorage 中。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add widget-dock

把 MorGogh/widget-dock 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

🐋 widget-dock · DSH 小组件面板

DeepSeek Harness (dsh) 客户端插件:在对话两侧空白区提供网格对齐的卡片工作台——余额、Token、成本、上下文、热度图、GitHub、推理强度、图片转述等 27 张卡片一眼掌握。

Widget dock plugin for DeepSeek Harness — a grid-aligned workbench of 27 mini-cards beside the conversation.

GitHub stars License DSH Plugin npm Release


✨ 功能 / Features

  • 网格对齐工作台:卡片按尺寸档位跨列(S=1 / M·L=2 / XL=3 列),任何组合的行都严格列对齐(iOS 小组件式)
  • 27 张卡片:余额、Token、成本、上下文压力/构成/水位/沙漏、会话统计、待办、目标、权限、计划、热度图、GitHub 仓库、推理强度、图片转述、便签、声音、彩蛋……(见下表)
  • 每对话独立布局:切换会话各自记住卡片组合、尺寸、位置
  • 添加面板重设计:搜索 + 分类标签 + 拖到任意位置添加(新卡霓虹高亮)+ 尺寸/换侧快捷操作
  • 随时拖动:按住卡片头部(⠿)拖动排序 / 跨侧换位,无需进入排序模式
  • 推理强度卡:拖动滑轨切换 reasoningEffort(带拖尾粒子、拉到顶紫色粒子渐散),内置模型选择框
  • 图片转述卡:贴图自动转视觉模型 → 文字描述注入输入框 → DeepSeek 纯文本理解(默认接本地 LM Studio)
  • 用量热力图:GitHub 风格 13 周每日用量(每会话分基线自记账,跨会话不丢不重)
  • 官方定价成本估算:DeepSeek 官方峰谷价,flash/pro 一键切换,单价可手动调整 / 一键恢复官方价
  • 估算诚实标注:估算值带 ≈,精确数据(余额/token/上下文)不混标
  • 持久化:布局、配置存入 localStorage(每对话分区),重启保留

🧩 内置小组件 / Widgets(27)

分类 卡片
数据 API 余额 · Token 用量 · 会话统计 · 成本估算 · 会话账单 · 双模对比 · 响应仪表 · 用量热力图
上下文 上下文压力 · 上下文构成 · 上下文水位 · 上下文沙漏
任务 目标进度 · 目标冲刺 · 计划模式 · 推理强度
图片 图片转述 · 图像限制
工具 工作区罗盘 · 会话时光机 · 权限模式 · GitHub 仓库
命令 快捷命令 · 自定义命令
趣味 声音提示 · 灵感速记 · 轮次彩蛋

🚀 快速开始 / Quick Start

推荐(npm 安装):

dsh plugin --profile web add widget-dock

或手动链接:

mkdir -p ~/.dsh/profiles/web/node_modules
ln -sfn "$(pwd)" ~/.dsh/profiles/web/node_modules/widget-dock
# 在 ~/.dsh/profiles/web/cordis.patch.yml 追加:
# - insert:
#     - id: widget-dock
#       name: 'widget-dock'
dsh web

重启后:对话两侧出现工作台。点击工作台底部「+ 添加」打开侧栏——搜索或按分类找卡片,点击快速添加,或拖到工作台任意位置(侧栏会变淡让位)。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-zcode-connector 下一个 Next dsh-pluginmanager →