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

@pr-impact/cli

v0.2.1

Published

CLI for pr-impact — analyze PRs for breaking changes, risk, and impact

Readme

@pr-impact/cli

Command-line interface for pr-impact -- analyze PRs for breaking changes, risk, and impact from your terminal or CI pipeline.

Install

npm install -g @pr-impact/cli

The CLI binary is called pri.

Commands

pri analyze

Run the full PR impact analysis -- breaking changes, test coverage, doc staleness, impact graph, and risk score.

pri analyze [base] [head] [options]

| Option | Description | Default | |---|---|---| | --format <type> | Output format: md or json | md | | --output <file> | Write report to file instead of stdout | -- | | --repo <path> | Path to git repository | cwd | | --no-breaking | Skip breaking change detection | -- | | --no-coverage | Skip test coverage analysis | -- | | --no-docs | Skip documentation staleness check | -- |

pri analyze
pri analyze main HEAD --format json --output report.json
pri analyze --no-breaking --no-docs

pri breaking

Detect breaking API changes. Exits with code 1 if any breaking changes are found at or above the specified severity.

pri breaking [base] [head] [options]

| Option | Description | Default | |---|---|---| | --severity <level> | Minimum severity: low, medium, high | low | | --format <type> | Output format: md or json | md | | --repo <path> | Path to git repository | cwd |

pri breaking
pri breaking --severity high
pri breaking --severity medium   # CI gate

pri risk

Calculate and display the weighted risk score with a full factor breakdown.

pri risk [base] [head] [options]

| Option | Description | Default | |---|---|---| | --threshold <n> | Fail (exit 1) if risk score >= this value | -- | | --format <type> | Output format: text or json | text | | --repo <path> | Path to git repository | cwd |

pri risk
pri risk --threshold 60          # CI gate
pri risk --format json

pri impact

Build and display the import-dependency impact graph.

pri impact [file] [options]

| Option | Description | Default | |---|---|---| | --depth <n> | Maximum dependency traversal depth | 3 | | --format <type> | Output format: text, json, or dot | text | | --repo <path> | Path to git repository | cwd |

pri impact
pri impact src/auth/login.ts
pri impact --format dot > impact.dot

pri comment

Run analysis and post/update a PR comment on GitHub. Auto-detects PR context from CI environment variables (GitHub Actions, GitLab CI, CircleCI).

pri comment [base] [head] [options]

| Option | Description | Default | |---|---|---| | --pr <number> | PR number | auto-detect from CI | | --github-repo <owner/repo> | GitHub repository | auto-detect from CI | | --token <token> | GitHub token | GITHUB_TOKEN env var | | --repo <path> | Path to git repository | cwd |

pri comment
pri comment --pr 42 --github-repo owner/repo --token $GITHUB_TOKEN

CI Integration

Use pri breaking and pri risk as quality gates:

# GitHub Actions example
- name: Check for breaking changes
  run: pri breaking --severity medium

- name: Check risk threshold
  run: pri risk --threshold 60

Exit codes:

  • 0 -- success / no issues found
  • 1 -- threshold exceeded (breaking changes found, risk too high)
  • 2 -- execution error

Requirements

  • Node.js >= 20

License

MIT