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

gewu-tools

v1.0.0

Published

格物审视面插件:gewu_prep(HTML 逐页截图 + subagent_vision 简报契约生成,宿主直起 Chrome)+ gewu_locate(真值核验:文字定位到页码/行号)。让无视觉能力的主脑经 subagent_vision 完成视觉检验。

Readme

格物 gewu-tools

格物审视面:让 DSH 中无视觉能力的模型,通过视觉子代理完成需要「亲眼检查」的任务。

格物:《大学》「格物致知,考察事物而后知」——先把东西看仔细,再下结论。 English: README.en.md

它解决什么问题

DSH 的会话主脑通常是纯文本模型——它读不了渲染出来的页面,自然回答不了「这页方案好不好看、挤不挤、图连对没有」。视觉子代理(如 subagent_vision,mimo-v2.5 等)看得见,但有两个短板:

  1. 没有会话上下文:它不知道客户铁律、业务标记语义(比如 ⭐ 是「核心能力」不是装饰 emoji),会把有意设计误报成缺陷;
  2. 会看错:OCR 级误读(字认错)、页码归属被截图边界带偏。

格物把 2026-08-16 在 24 页售前方案上实测收敛的三步流水线做成两个工具:

① gewu_prep    截图 + 简报:HTML 逐页渲染 PNG,并生成一份完整的视觉子代理简报契约
               (纪律声明 / 伪影声明 / 页码归属规则 / 输出要求)
② 视觉子代理   派发:把 briefing 全文作为 prompt 调 DSH 原生视觉子代理(subagent_vision 等)
③ gewu_locate  真值核验:把审阅发现中的文字/数字定位回 HTML 源码(页码 + 行号),
               count=0 即 OCR 误读,不采信

实测收益:误报率显著下降(简报提供上下文)、关键数字零差错上会(源码核验)、整稿叙事线/密度/跨页一致性可审(子代理多图能力)。

模型无关性声明

本插件在视觉子代理 mimo-v2.5(稳) 与 qwen3.7-plus(洞察强、误报略多) 上实测验证。实测结论:模型档位不决定审阅结果的可信度——

  • **简报契约(上下文)**消除无上下文误报:例如把业务标记 ⭐(核心能力)误判为装饰 emoji,实测在无简报的插件模式下系统性发生;
  • **真值核验闭环(gewu_locate)**把 OCR 误读与页码偏移挡在采信之外:实测 qwen3.7-plus 的 3 个核心新论断中 2.5 个经不起源码核验,全部被核验环节拦截。

档位差异只体现在审阅风格(高挡洞察更锐、稳挡结论更保守),不体现在结果对错上。无论接入何种档位的视觉模型,本流水线产出均可信、可审计——这也是格物把「核验」固化为流水线第三步的原因。

安装

前置:Windows + Chrome/Edge + Node 24+(仅脚本验证用)。

方式一:社区通道(若已接入 awesome-dsh-plugins 生态)

pwsh <workspace>\.dsh\setup\install-community-plugins.ps1 -Install

方式二:独立脚本(推荐,随项目分发)

pwsh gewu\scripts\install-gewu-plugins.ps1 -Install    # 幂等
pwsh gewu\scripts\install-gewu-plugins.ps1 -Verify     # 只验证
pwsh gewu\scripts\install-gewu-plugins.ps1 -Uninstall  # 卸载

安装脚本做的事:在 DSH 的 agent preset(默认 pre-sales,可用环境变量 GEWU_PRESET 覆盖)里追加 gewu-tools 挂载行,指向 <workspace>\.dsh\gewu-tools(安装位,项目目录的 Junction)。

安装后必须重启 DSH 会话(host 插件无热更新)。验证:install-gewu-plugins.ps1 -Verify 应三绿(preset 挂载行 / junction 链 / import 加载)。

使用(主代理视角)

1. gewu_prep(html_path="output\<客户>\<客户>_方案_vN.html",
             client="<客户>",
             background="<项目定位/关键决策/业务标记语义,如 ⭐=核心能力>")
   → 返回 { pages: [...], briefing: "..." }

2. 把 briefing 全文作为 prompt 调视觉子代理(subagent_vision):
   → 逐页问题清单 + 整体结论

3. 对每条关键发现调 gewu_locate(html_path=..., needle=<发现中的文字/数字>)
   → 页码 + 行号;count=0 说明视觉模型 OCR 误读,该发现不采信

gewu_prep 参数

| 参数 | 说明 | |---|---| | html_path | 方案 HTML 路径(必填) | | client / background | 写入简报的客户名与背景(强烈建议提供,上下文决定审阅质量下限) | | focus | 关注问题清单(默认:版式/规范一致性/密度/图表可读性/核心论断/跨页一致性) | | out_dir | 截图输出目录(默认 <工作区>/_tmp_vision_test/<文件名>_shots) | | width / height | 视口尺寸(默认 1280x900) | | nav_offset | sticky 顶导航偏移(默认 64,无 sticky 导航设 0) |

gewu_locate 参数:html_path、needle(待核验文字/数字)、max_matches(默认 8)。

工作原理

  • 截图:读 HTML 的 <section> 锚点(优先 v2-page 类),逐页用 headless Chrome 视口截图;sticky 导航经 iframe 上移推出画面;无锚点自动降级整页长截图。宿主进程直起 Chrome——不受 DSH 受限沙箱对子进程命名管道的限制。
  • 简报契约(内置在 briefing 里,实测三坑的对应解法):
    • 纪律声明:子代理跳过入口协议、不向用户提问、用 read_image 读图(防卡死);
    • 伪影声明:固定视口截图会串页,底部出现下一节标题是截图伪影不是设计问题;页码归属按「视口内下一节内容归下一页」;
    • 输出要求:逐页「页码|问题|严重度|修改建议」,只报可见问题。
  • 真值核验:needle 在源码中逐次定位,返回所在 section 页码 + 行号 + 脱标签摘录。

测试

# 冒烟(不经 DSH,直接跑核心逻辑):需 Chrome + node
node gewu\index.js <任意带锚点的 HTML 路径> [输出目录]
# 预期:mode=anchors ok=true pages=N failed=-

目录结构

gewu/
├── index.js                # 插件本体(cordis + defineTool,含 standalone 冒烟入口)
├── package.json            # @gewu/dsh-tools
├── README.md / README.en.md
├── CHANGELOG.md
├── LICENSE                 # MIT
├── docs/TESTING.md         # 实测方法与结论摘要
└── scripts/install-gewu-plugins.ps1   # 安装脚本(Install/Verify/Uninstall/DryRun)

兼容性

  • DSH 0.1.0-rc.6(cordis 插件 + defineTool 接口)
  • 依赖:仅 @deepseek-ai/dsh-tools(peer,经工作区 AiBridge 解析)
  • 浏览器:自动探测 Chrome/Edge(Program Files / LocalAppData),无需配置

维护与许可

  • 版本:1.0.0(2026-08-16 初始发布);变更见 CHANGELOG.md
  • 许可证:MIT
  • 临时文件:wrapper 与 Chrome profile 自动清理