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

snapshot-checker-consumer-demo

v0.0.2

Published

独立示例:通过 npm registry 安装 snapshot-checker,并组合调用库接口与包内 commands

Readme

snapshot-checker 消费者示例(独立 Node 项目)

本目录模拟已发布到 npm 之后的业务项目:通过 npm install snapshot-checker 安装依赖,再:

  • 从包入口导入运行 API:resolveScenariorunScenarioGroups 等(对应源码 src/index.ts 的导出);
  • 从子路径导入一个或多个内置场景(发布产物中的 commands/*.js),用于生成 groups / defaultGroupOrder

使用方式(npm 仓库)

确保 package.json 中依赖版本与 npm 仓库已发布版本一致,然后在本目录执行:

npm install
npm run context
npm run forkall
npm run forkall -- --execute   # 可选:真实执行 hdc 相关命令
npm run report                 # 预览 report 场景(resolveScenario)
npm run report -- --execute    # 可选:真实执行 report(Windows/hdc/hstack 等)

说明(report 示例)npm run report 会加载 snapshot-checker/commands/report。若报错找不到 dist/commands/report.js,说明当前从 registry 安装的版本尚未包含该场景;可在仓库根目录执行 npm run build 后,在本 demo 目录用 npm install ../../ 临时联调本地包,或发布包含 report 的新版本后再升级依赖。