npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-leekbox

v0.8.5

Published

韭菜盒子 LeekBox — A股看盘助手:实时行情、毫秒级全市场搜索(代码/名称/拼音首字母+实时价格)、大盘指数、个股详情弹窗(同花顺式K线·前复权)、自选股、条件选股(评分选股+多策略交叉选股)、三源聚合7x24快讯、市场情绪温度计(连板梯队/炸板率/涨跌家数)、ETF/可转债/LOF。Runs as a DSH web client plugin.

Readme

韭菜盒子 LeekBox 🥬

License: MIT

English | 简体中文

A-share 看盘助手 —— DeepSeek Harness (DSH) Web 客户端插件。

在 DSH Web 界面的左侧边栏出现 🥬 入口,点击打开行情面板:

| Tab | 功能 | | --- | --- | | 📊 大盘 | 上证 / 深成 / 创业板 / 科创50 实时指数,30 秒自动刷新;顶部市场情绪温度计——半圆分段仪表盘呈现综合情绪温度 0~100°(市场宽度 40% + 涨停强度 25% + 封板率 20% + 连板高度 15%,数据缺失自动按剩余权重归一),冰点→沸腾五档弧段当前档位高亮、游标点平滑转动,右侧无框数据行:涨跌家数(红绿占比微条)/ 涨跌停 / 炸板 / 封板率 / 最高板 | | 💹 行情 | 股票/ETF/转债/LOF 搜索(代码/名称/拼音首字母,本地索引毫秒级返回,带实时价格涨幅的下拉结果卡)+ 多池榜单(沪深A股/主板/非主板/ETF·场内基金/可转债/LOF,按涨幅/成交额/换手/主力净流入)+ 板块榜 + 龙虎榜 | | ⭐ 自选 | 自选股实时行情(持久化在 $DSH_HOME/.leekbox-watchlist.json),支持分组、一键 JSON 备份 / CSV 导出、从 JSON/CSV/文本导入(合并或覆盖) | | 🔍 选股 | 两种模式:评分选股(按价格/涨跌幅/换手率筛选 + 13 项技术信号勾选 + 加权评分排序)和 多策略交叉选股(7 个预设策略的并行交集,个股需同时命中多个策略,按命中数排序)| | 📰 快讯 | 新浪 / 东财 / 金十 三源聚合 7×24 快讯,来源可筛选,重要资讯红色高亮,60 秒自动刷新,可点相关股票直达详情 |

行情页顶部保留连板梯队(2板/3板/…及最高板数),可展开涨停池列表(点击直达个股详情)。

点击任意股票(自选里点股票名称即可)会弹出独立的个股详情窗口(类似同花顺):大字现价 + 涨跌、15 项实时指标、日/周/月/5分/30分 K 线(前复权,蜡烛图 + MA5/10/20 均线 + 成交量 + 十字光标),一键加自选。不含当日分时图。详情窗口可拖动、可同时打开多个,ESC 或点击遮罩逐层关闭。

数据源

  • 实时行情 / 指数 / 分时 / K线:腾讯财经(qt.gtimg.cn / web.ifzq.gtimg.cn / ifzq.gtimg.cn)
  • 榜单 / 选股:东方财富(push2.eastmoney.com,多镜像自动回退)
  • 搜索:本地全市场索引(东方财富 push2 clist 快照,约 8 千只标的,缓存 6 小时)+ 腾讯 smartbox 全拼兜底 + 批量实时行情(qt.gtimg.cn);索引未就绪时自动回退东方财富 searchadapter
  • 7×24 快讯:新浪财经直播流(zhibo.sina.com.cn)+ 东方财富快讯(np-listapi.eastmoney.com)+ 金十数据(jin10.com);重要资讯 = 各源官方标记(金十星标 / 新浪焦点)+ 关键词兜底(突发/重磅/重大/紧急/超预期);跨源自动去重——同一事件多家源措辞不同(截断/扩写/换措辞)也按归一化文本 + 10 分钟时间窗内相似度合并为一条,保留信息最全的副本

所有数据由插件服务端(web profile 内的 cordis 插件)代理抓取并标准化,浏览器端同源调用 /api/leekbox/*,仅限本机 loopback 访问。数据仅供研究参考,不构成投资建议。

环境要求

  • DeepSeek Harness (DSH) ≥ 0.1.1-rc.1(声明于 package.jsondsh.engines.dsh
  • 仅运行于 web profiledsh.client.platform: "web"):服务端路由随宿主进程运行,浏览器端经同源 /api/leekbox/* 访问(仅限本机 loopback)

安装

# 1. 把包链接进 web profile 的 node_modules(或 pnpm add file:...)
mklink /J "$DSH_HOME\profiles\web\node_modules\dsh-leekbox" "<本包路径>"

# 2. 在 $DSH_HOME/profiles/web/cordis.patch.yml 追加:
# - insert:
#     - id: leekbox
#       name: 'dsh-leekbox'

# 3. profile 配置文件 watcher 会在 ~1s 内热重组合,无需重启(服务端立即生效);
#    浏览器刷新页面后侧边栏出现 🥬 入口。
#    若修改了 lib/index.js(服务端代码),需要重启 DeepSeek Harness 进程生效。

结构

  • lib/index.js — 服务端 cordis 插件:/api/leekbox/* 路由 + 自选股持久化
  • lib/search-index.js — 本地全市场搜索索引(代码/名称/拼音首字母毫秒匹配)
  • lib/client.js — 浏览器端 bundle:侧边栏入口 + 行情面板(React)
  • cordis.patch.yml — 插件行注册(dsh.bundle.patch

免责声明

本插件仅聚合公开免费行情接口,数据可能有延迟或缺失;所有内容仅供学习研究,不构成任何投资建议。股市有风险,入市需谨慎。