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

@diffpulse/cli

v0.2.0

Published

DiffPulse CLI — PR risk intelligence and governance

Downloads

799

Readme

@diffpulse/cli

Deterministic checks for git diffs and pull requests.

DiffPulse evaluates changes against .diffpulse/policy.yaml — diff size, sensitive paths, test presence, lockfiles, and more — and returns structured findings with a verdict. It runs on local git state. No hosted AI. No GitHub App required for local review.

What DiffPulse is not

  • Not an AI reviewer (does not call OpenAI, Anthropic, or other LLM providers)
  • Not a GitHub App dependency for local workflows
  • Not a code generator

Install

npm install -D @diffpulse/cli

Or run without installing:

npx @diffpulse/cli <command>

Command aliases: diffpulse, diffp, dpulse.

Quick start

npx @diffpulse/cli init
npx @diffpulse/cli doctor

git checkout -b my-change
# ... edit, commit ...
npx @diffpulse/cli check

By default, check auto-detects the diff target: staged → unstaged → branch vs detected base. When staged changes exist, DiffPulse reviews what you are about to commit.

For pre-commit hooks, use diffpulse check --staged or the diffpulse:check:staged npm script added by diffpulse init.

Example commands

diffpulse check                           # auto-detect target
diffpulse check --staged                  # staged changes only
diffpulse check --unstaged                # unstaged changes only
diffpulse check --all-local               # all local changes
diffpulse check --base main               # branch target vs main
diffpulse check --target branch --base main
diffpulse check --format markdown
diffpulse check --format json             # machine-readable source of truth

Commands

| Command | Description | |---------|-------------| | diffpulse init | Scaffold .diffpulse/policy.yaml and .github/workflows/diffpulse.yml | | diffpulse check | Evaluate git diff against base ref | | diffpulse config validate | Validate the policy file | | diffpulse doctor | Check local environment and configuration | | diffpulse version | Print version |

check options

| Option | Description | |--------|-------------| | --target <target> | Diff target: staged, unstaged, all-local, or branch | | --base <ref> | Base git ref for branch target (implies --target branch) | | --staged / --unstaged / --all-local | Shorthand for --target | | --policy <path> | Policy file path (default: .diffpulse/policy.yaml) | | --format <format> | text (default), json, or markdown | | --output <path> | Write report to file | | --fail-on <verdict> | Exit non-zero at warn or block level (default: block) |

Secrets redaction

The secrets_in_diff check scans added diff lines for likely credentials. Secret values are never printed in full — CLI text, JSON, and Markdown output use redacted snippets only.

Exit codes

| Code | Meaning | |------|---------| | 0 | pass (or below --fail-on threshold) | | 1 | warn | | 2 | block | | 3 | error |

Cursor / MCP workflow

  1. Configure @diffpulse/mcp in .cursor/mcp.json
  2. Stage your changes (or check out a feature branch for branch review)
  3. Ask: "Review my staged changes with DiffPulse before I commit."
  4. Cursor calls DiffPulse MCP; DiffPulse returns structured findings; Cursor explains and fixes them

DiffPulse analyzes local git diffs only — staged, unstaged, all-local, or branch vs base. It does not read GitHub or Azure DevOps PR APIs. Hosted PR targets are future work.

{
  "mcpServers": {
    "diffpulse": {
      "command": "npx",
      "args": ["-y", "@diffpulse/mcp"]
    }
  }
}

| MCP tool | Purpose | |----------|---------| | diffpulse_review_diff | Review local branch diff (primary) | | diffpulse_check | Alias for diffpulse_review_diff | | diffpulse_policy_summary | Summarize policy checks and thresholds | | diffpulse_explain_report | Deterministic report explanation |

See MCP Setup.

Links

License

MIT