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-yh-olap

v1.0.2

Published

永辉 OLAP 面板(库表/收藏树、SQL 编辑器、执行日志/结果/历史/下载中心)+ olap 模型工具,DeepSeek Harness 静态 Cordis 插件。olap 工具 parameters 改为标准 JSON Schema(根 type: object),适配严格网关(commandcode)。

Readme

dsh-yh-olap

DeepSeek Harness(DSH)插件:在右侧详情面板复刻永辉 OLAP 工具——库表/收藏树、SQL 编辑器(补全/多光标/注释/缩进)、执行日志、结果、历史、下载中心;同时注册 olap 模型工具,让模型可以直接读取、编辑、运行指定会话面板里的 SQL。

安装(dsh 指令在线安装)

要求:已安装 DSH CLI 与 pnpm

dsh plugin --profile web add dsh-yh-olap

然后重启 DSH 并刷新页面,右侧即可在会话详情看到 OLAP 面板开关。

本地 link 安装(开发用)

dsh plugin --profile web add link:/path/to/dsh-yh-olap/installable

功能

  • 库表树:数据源 → 库 → 表 → 字段三级懒加载浏览,表名/字段名补全
  • SQL 编辑器:语法高亮、6 类补全(关键字/库/表/函数/字段/别名)、Tab 缩进、Cmd+/ 注释、Cmd/Ctrl+点击 多光标、多标签
  • 执行:运行/停止、执行日志、结果表格(sticky 表头)、历史记录、快速下载 / 全量工单下载、下载中心
  • 收藏:目录/文件树、右键新建/重命名/删除、保存当前 SQL 到收藏
  • 账号:多账号保存与切换(凭据只存本机,见下)
  • /olap 模式/olap 激活后模型按内联指引用 olap 工具读写/运行面板 SQL,支持 @olapN / @TabN 引用面板标签

数据与安全

  • 账号凭据保存在本机 ~/.config/yh_bigdata/accounts.json,会话缓存 ~/.config/yh_bigdata/session.json(6h TTL)。
  • 插件不向任何远程发送账号密码;OLAP API 走 https://prokongbigdata.yonghui.cn,请求头仅带 token: JSESSIONID=...orgCode

目录结构

installable/
├── package.json        # npm 包清单:exports(./host + ./client) + dsh.bundle/dsh.client
├── cordis.patch.yml    # bundle patch:把插件行插入 profile composition
└── src/
    ├── host.js         # Host 半入口:/api/yh-olap/rpc + olap 模型工具 + OLAP API 网关
    └── client.js       # Client 半入口:details 面板 UI + 会话状态 + @olap 引用 source

开发

src/*.js 后无需重新安装:

  • Host 侧:node --check src/host.js,然后重启 DSH 进程
  • Client 侧:node --check src/client.js,然后刷新页面

发布

npm publish