DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

FeiZhuNiU-INFJA /

FeiZhuNiU-INFJA/dsh-stock-ticker

Verified

dsh-plugin: floating semi-transparent market ticker for DeepSeek Harness — 上证指数 / 创业板指 / 科创50 / 恒生科技

★ 4 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@e5c2923d

🧩 dsh-stock-ticker

DeepSeek Harness 的一个底部行情栏插件:在窗口底部显示一条半透明 bar,实时展示 A 股与港股核心指数。

MIT License dsh-plugin

📸 预览

dsh-stock-ticker 底部行情栏

✨ 功能

  • 固定在窗口底部的全宽行情 bar,半透明背景跟随 DeepSeek Harness 主题色(85% 透明度 + 背景模糊)
  • 每 5 秒自动刷新
  • 可收起为右下角小胶囊,点击展开,不遮挡输入区
  • 每个指数只显示两项:当前点位 + 涨跌幅(红涨绿跌、锐利配色)
  • 横向排列,窄屏自动横向滚动

显示的指数:

指数 代码
上证指数 000001
创业板指 399006
科创50 000688
恒生科技 HSTECH

🚀 安装

作为常驻 bundle 安装,随 DSH 启动自动加载、重启不消失:

dsh plugin --profile web add github:FeiZhuNiU-INFJA/dsh-stock-ticker

装完重启 DSH(或选择「立即重启」),页面底部即出现行情 bar。

结构遵循社区 dsh-plugin 约定:dsh.bundle.patch 指向 cordis.patch.yml,Host 入口 lib/index.js 注册同源路由 /dsh-stock-ticker/quotes(内部用 shell + curl 抓取腾讯行情),Client bundle lib/client.js 渲染底部行情栏并每 5 秒轮询该路由。

🗂️ 代码结构

dsh-stock-ticker/
├── lib/index.js    # Host 包入口:注册 /dsh-stock-ticker/quotes 路由
├── lib/client.js   # Client bundle:底部行情栏 UI + 5s 轮询
├── host.js         # 动态插件形式的 Host 半区(可选)
├── client.js       # 动态插件形式的 Client 半区(可选)
├── package.json    # 包清单(dsh bundle + client 声明)
├── cordis.patch.yml  # bundle patch:插入插件行
├── assets/screenshot.png  # README 预览截图
├── LICENSE
└── README.md

🔌 数据源

  • 接口:https://qt.gtimg.cn/q=sh000001,sz399006,sh000688,hkHSTECH
  • 免费、无需鉴权,返回纯文本的 ~ 分隔行
  • Host 侧通过 shell 服务执行 curl 抓取(DSH 默认部署未注册 web fetch provider,因此不走 web.fetch)

🧪 动态插件(可选,临时体验)

不落盘、临时载入的动态插件方式,适合快速体验:

  1. 让 agent 用动态插件工具 cordis_define 创建插件:

    • code.host 填 host.js 的整段内容
    • code.client 填 client.js 的整段内容
  2. cordis_run 激活;客户端首次运行需要在审批卡片里点「允许」。

  3. 刷新页面后窗口底部即出现行情 bar。

两个文件里的代码就是 cordis_define 的 code.host / code.client 函数体,直接整段复制即可。

📄 License

MIT

—/ 5

No ratings yet

Verified DSH bundle

Commit e5c2923d64b6

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout