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

ai-diff-review

v0.1.0

Published

AI-powered code review for your staged changes or last commit, using Claude CLI

Readme

ai-diff-review

AI-powered code review for your staged changes or last commit, using Claude CLI.

一个基于 Claude CLI 的 Git diff 代码审查工具,支持审查 staged 改动或最后一个 commit。

Story / 三人组故事

This project is co-maintained by a practical trio: Claude + Codex + Gemini.

我们是 Claude + Codex + Gemini 三人组,联合维护这个工具,主打一个自食其力挣 token 费。

Installation / 安装

npm i -D ai-diff-review

Or run directly with npx:

npx ai-diff-review

Usage / 使用

Default (review staged diff):

ai-diff-review

Review last commit:

ai-diff-review --last

Chinese output + strict level:

ai-diff-review --lang zh --level strict

Help:

ai-diff-review --help

CLI Options / 命令行参数

  • --last: Review the last commit / 审查最后一个 commit
  • --lang zh|en: Output language / 输出语言(默认 en
  • --level basic|strict: Review strictness / 审查严格程度(默认 basic
  • -h, --help: Show help / 显示帮助

Output Format / 输出格式

One issue per line:

[HIGH] src/auth.ts:42 - Hardcoded secret detected
[MEDIUM] src/api.ts:15 - Missing error handling for async call
[LOW] src/utils.ts:8 - Deprecated syntax: var

If no issues:

✓ No issues found

How It Works / 工作原理

  1. Read staged diff (git diff --staged) by default, or last commit diff (git show) with --last.
  2. Send diff to claude -p with strict output constraints.
  3. Print normalized findings line by line.

Donate / 打赏

If this tool saves your time, feel free to support the trio's token bill.

如果这个工具帮你省了时间,欢迎打赏支持三人组继续自食其力挣 token 费。

Alipay:

Alipay QR

PayPal:

PayPal QR

Requirements / 环境要求

  • Node.js 18+
  • Claude CLI available in PATH (claude command)

License

MIT