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

proof-pr

v1.0.0

Published

CLI for ProofPR, an AI PR intake gate for maintainers and teams.

Readme

proof-pr

ProofPR 是给开源维护者和团队 reviewer 使用的 AI PR 初审门禁。它只回答一个问题:这个 PR 现在值不值得维护者投入人工 review?

它不是个人开发者的 git 工作树工具,也不是 AI code reviewer。它不依赖大模型,不上传代码,只基于 diff、PR 描述和配置做确定性判断。

如果你只是个人项目,自己写、自己测、自己合并,通常不需要它。它更适合外部贡献、AI 生成 PR、依赖/Workflow/secret 等高风险改动较多的仓库。

快速使用

确认 latest 版本:

npx proof-pr@latest --version

当前应输出 1.0.0

不知道怎么开始时:

npx proof-pr@latest
# 或
npx proof-pr@latest guide

npx proof-pr@latest --help 会显示中文命令说明,底部也会给出常用复制命令。 各子命令的 --help 默认只显示常用参数,高级参数仍可使用;普通接入不需要先理解完整参数表。

正式接入只用两步。

接入 GitHub PR 自动检查:

npx proof-pr@latest init

这个命令会生成 .proofpr.yml.github/workflows/proofpr.yml.github/pull_request_template.md,默认配置已经可用,提交后打开 PR 即可看到报告。 重复运行时已有文件会被保留;需要刷新模板时使用 npx proof-pr@latest init --force

体检接入是否正确:

npx proof-pr@latest doctor

doctor 会检查配置文件、workflow、PR 模板、Action 版本、PR 权限和本地 diff 是否可读,并直接给出下一步建议。

本地模拟 PR 初审:

npx proof-pr@latest check

check 会自动选择常见主分支作为 base,并纳入已提交分支 diff、staged、unstaged 和未跟踪新文件。 本地运行时通常没有 PR 标题和描述上下文,报告会提示这一点;打开 PR 后会结合 PR 标题和描述重新评估证据。需要本地模拟 PR 描述时,可以把描述写入 pr.md 后运行 npx proof-pr@latest check --pr-body-file pr.md;这个命令也会出现在 check --help 的常用复制里。 如果当前没有可扫描 diff,它会直接输出短提示,不会再打印完整空报告;刚接入但还没有业务改动时不用处理。

只生成可以发给贡献者的补证请求:

npx proof-pr@latest request

如果当前没有可扫描 diff,它会直接输出短提示,不会生成误导性的补证评论;刚接入但还没有业务改动时不用处理。

需要让本地补证请求参考 PR 描述时,可以运行:

npx proof-pr@latest request --pr-body-file pr.md

这个命令也会出现在 request --help 的常用复制里。

也可以写入文件:

npx proof-pr@latest request --output proofpr-request.md

默认输出是短评论。如果需要完整补证模板:

npx proof-pr@latest request --full

辅助命令

先看效果,不改仓库:

npx proof-pr@latest demo workflow --locale zh-CN

想自动修复常见接入问题:

npx proof-pr@latest doctor --fix

它只会创建或刷新 ProofPR 自己的接入文件,不会改业务代码。

已接入仓库单独补 PR 模板:

npx proof-pr@latest template

查看所有内置案例:

npx proof-pr@latest demo --list

生成独立 HTML 可视化报告:

npx proof-pr@latest check --format html --output proofpr-report.html

HTML 报告支持筛选风险、搜索规则/文件/详情,并复制补证清单。

运行 benchmark:

npx proof-pr@latest benchmark --cases benchmarks/cases

GitHub Action

- uses: linsk27/[email protected]
  with:
    fail-on: high
    comment: "true"
    annotations: "true"

输出什么

  • 风险等级:lowmediumhigh
  • 证据评分:0-100 分。
  • 审查门禁:常规审查、重点审查、先补证据、风险处理前不要合并。
  • 风险雷达:把风险发现归并成证据、供应链、Workflow、密钥和审查范围。
  • 审查行动清单:维护者可直接执行的 checklist。
  • Contributor Request:一段可直接发给贡献者的补证请求,可用 proof-pr request 单独输出。
  • 可选输出:GitHub annotations、SARIF、benchmark report、可筛选并可复制补证清单的独立 HTML 可视化报告;CLI 可用 --output 直接写文件。

常用预设

  • open-source-maintainer:开源仓库推荐。
  • security-strict:安全敏感项目。
  • ai-generated-pr:AI 生成 PR 较多的仓库。
  • mcp-security:关注 MCP / agent 配置。
  • dependency-careful:关注依赖、锁文件和供应链变化。

完整中文文档、截图和从 0 到 1 教程见仓库 README:

https://github.com/linsk27/proof-pr