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-signal

v0.3.3

Published

A deterministic PR intake brief for maintainers and coding agents.

Readme

PR Signal

PR Signal turns a GitHub Pull Request into a deterministic intake brief that tells maintainers and coding agents where to look first.

It is not an AI reviewer. It does not use AI at runtime, does not send code to external APIs, does not decide whether a PR should be merged, and does not comment on PRs by default.

Before reading the diff, read the brief.

What It Does

PR Signal fetches GitHub Pull Request metadata, changed files, diff metadata and GitHub CI status/checks when available. It then classifies the PR with deterministic rules and writes a compact brief.

The brief highlights observable review context:

  • PR size and changed-file categories;
  • tests present or absent;
  • dependency, CI, automation, Dockerfile and release changes;
  • auth/security, migration/schema and persistence/data-format signals;
  • GitHub CI status/check results when available;
  • priority files and a suggested next review action.

The recommended action is review orientation, not a verdict.

Validation

The current deterministic core was evaluated on two separate 10,000-PR public GitHub datasets at commit f79678e.

The usage-realistic run uses a broad public PR sample intended to approximate realistic PR Signal usage. It answers: "What should users expect when running PR Signal on a broad public PR stream?"

| Metric | Usage-realistic 10k | |---|---:| | PRs sampled | 10,000 | | Crash rate | 0.02% | | Strict pass rate | 94.49% | | Human-useful briefs | 99.23% | | Agent-useful briefs | 97.13% | | Wrong-action rate | 2.69% | | Security false-positive rate | 0.00% | | Attention too high | 0.49% | | Attention too low | 2.21% | | Non-trivial orientation rate | 71.60% | | Useful/action-correct among non-trivial orientations | 95.99% |

PR Signal did not simply default to normal review. In the usage-realistic run, it produced a non-trivial review orientation on 71.60% of PRs.

| Recommended action | Share | |---|---:| | normal_review | 28.38% | | ask_for_tests | 19.25% | | security_review | 17.75% | | wait_for_ci | 15.78% | | request_split | 12.44% | | dependency_review | 4.26% | | ask_for_clarification | 1.62% | | migration_review | 0.50% |

The most common usage-realistic signals were missing tests, configuration changes, tests changed, dependency manifests, large PRs, docs changes, empty descriptions and failed CI.

Security-oriented signals were common in this public sample. The security_review action appeared on 17.75% of PRs and explicit_security_advisory appeared on 10.87%. These figures should not be read as the average rate of real security problems on GitHub; they reflect the sampled public PR stream, including dependency/security-advisory metadata, bot updates, CI/config changes, and security-looking maintenance work.

The stratified stress test intentionally overrepresents difficult review surfaces such as dependencies, CI automation, Docker/build/release changes, auth/security/permissions, migrations/schema/database changes, large mixed PRs, tests-heavy changes, docs-only changes and normal code changes.

| Metric | Stratified stress test 10k | |---|---:| | PRs evaluated | 10,000 | | Crash rate | 0.00% | | Strict pass rate | 87.32% | | Human-useful briefs | 97.37% | | Agent-useful briefs | 96.88% | | Wrong-action rate | 3.62% | | Security false-positive rate | 1.17% | | Attention too high | 3.16% | | Attention too low | 3.91% | | Non-trivial orientation rate | 56.17% |

These metrics measure review guidance quality, not merge correctness. PR Signal does not decide whether a PR should be merged, and these results do not mean PR Signal found bugs or proved PR correctness.

The strict pass rate is the clean-pass rate. Briefs outside strict pass can still be useful, which is reflected by the human-useful and agent-useful rates.

The two evaluations answer different questions and should not be merged. Evaluation used an external ChatGPT 5.5 evaluator with xhigh reasoning effort outside the product; PR Signal itself remains deterministic and does not call an LLM. Full methodology, top signals and limitations are documented in docs/evaluation.md.

Current Usage

The CLI is available on npm. Node.js 20 or newer is required.

npx pr-signal pr https://github.com/org/repo/pull/123

You can also install it globally:

npm install -g pr-signal
pr-signal pr https://github.com/org/repo/pull/123

Set GITHUB_TOKEN or GH_TOKEN for private repositories or a higher GitHub rate limit. The token is only sent as an Authorization header and is never included in output.

Useful options:

pr-signal pr <url> --out ./brief
pr-signal pr <url> --format md
pr-signal pr <url> --format json --no-agent
pr-signal pr <url> --config pr-signal.yml
pr-signal pr <url> --quiet

Use --dry-run to validate URL parsing without network access:

pr-signal pr https://github.com/org/repo/pull/123 --dry-run

When working from a local checkout, you can still build and run the repository directly:

npm install
npm run build
node dist/cli/index.js pr https://github.com/org/repo/pull/123

Outputs

PR Signal writes:

pr-signal-output/
  review-brief.md
  review-brief.json
  agent-context.md

Terminal output is intentionally short:

PR Signal: org/repo#123
Attention: high
Action: request_split
Size: 5 files, +920 / -140
CI: pending (0 failed, 2 pending)
Signals: large_pr, tests_changed, docs_changed
Outputs: pr-signal-output/review-brief.md, pr-signal-output/review-brief.json, pr-signal-output/agent-context.md

PR Signal does not print or write the full diff. Reports contain facts, signals, GitHub CI state when available and evidence references.

GitHub Action

This repository includes a non-intrusive GitHub Action. It writes a step summary and uploads brief artifacts by default, exposes useful workflow outputs, and can be configured for JSON-only or artifact-free integration. It does not comment on PRs and does not support fail-on review policies.

See docs/github-action.md.

More Docs

Examples

The examples/ directory contains five real public PR examples with generated outputs:

  • 01-docs-only
  • 02-dependency-change
  • 03-ci-change
  • 04-auth-security
  • 05-large-mixed

Each example includes source.md, terminal output, review-brief.md, review-brief.json and agent-context.md.

Non-Goals

PR Signal does not:

  • review code for you;
  • prove correctness;
  • use AI in the runtime;
  • send code to external APIs;
  • approve or reject PRs;
  • auto-comment on PRs by default;
  • assign a numeric quality score;
  • replace human review.

License

Apache-2.0.