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

prscore

v0.7.0

Published

AI-powered deploy risk analyzer for Pull Requests

Readme

prscore

Use AI to detect how potentially dangerous is to merge this PR.

Why?

Is it better than traditional linters/code review approach?

It's a good option for tight, fast-paced teams where proper, detailed and qualified code review is a luxury. You still need tests, good typings and skilled engineers.

But if most of your code reviews are LGTM at best - try this instead.

Examples

  • Big PRs (too many things at once to keep focus on)
  • Breaking changes or changes in specific files (probably more edge-cases than we thought)
  • Too much time between first and last commit (heuristically, the longer it takes the more focus is shifting towards "just ship it already")
  • Incomplete error handling (The owls are not what they seem)
  • and more

Installation

Required Claude API account

  1. Add ANTHROPIC_API_KEY="your-key" to secrets
  2. Install dependency
npm install --save-dev prscore
  1. (optional) Create your custom config locally if needed
npm install -g prscore && prscore init

Usage

Local CLI

# Analyze a PR locally
export ANTHROPIC_API_KEY="your-key"
prscore --base main --head feature-branch

GitHub Action Setup

Check our setup

  1. Add ANTHROPIC_API_KEY to repository secrets
  2. Comment /prscore on any PR to analyze scoring

Access Control

By default, only users with write, maintain, or admin permissions can trigger /prscore analysis. This prevents unauthorized token usage.

To add additional trusted users:

  1. Go to your repository Settings → Secrets and variables → Actions → Variables
  2. Create a new repository variable named PRSCORE_TRUSTED_USERS
  3. Set the value to a comma-separated list of GitHub usernames:
    user1,user2,user3

Example:

PRSCORE_TRUSTED_USERS: alice,bob,charlie

When an unauthorized user tries to run /prscore, they'll receive a comment explaining the restriction.

Risk Scoring

prscore calculates an overall risk score (0-10) based on:

| Factor | Weight | What it checks | | ---------------- | ------ | -------------------------------------------------- | | Breaking Changes | 7 | API changes, removed exports, schema modifications | | Fatal Errors | 10 | Runtime crashes, null errors, white screens | | PR Size | 8 | Lines changed (>2000 = critical) | | Migrations | 7 | Database schema changes | | Config Changes | 5 | Environment, Docker, infrastructure files | | Time Span | 1 | Multi-day PRs (stale code risk) |

Risk Levels:

  • low (0-2.9): Safe to merge
  • medium (3-4.9): Review carefully
  • high (5-7.4): Risky, needs senior review
  • critical (7.5-10): Dangerous, split or extend testing

Example Output

=== Deploy Risk Analysis ===

Overall Risk: 7.8/10 (CRITICAL)

Breakdown:
  PR Size: 8.5/10
  Breaking Changes: 9.0/10
  Fatal Errors: 7.0/10
  Migrations: 7.0/10
  Config Changes: 0/10
  Time Span: 3.0/10

Recommendations:
  • ⚠️ CRITICAL RISK: Require multiple senior reviewers
  • Document all breaking changes in PR description
  • Review database migration with DBA
  • Consider splitting this PR into smaller changes

Cost

Spend it wisely

Uses Claude Sonnet 4.5 API. Average cost per PR analysis:

  • Small PR (<200 lines): ~$0.02
  • Medium PR (200-500 lines): ~$0.02
  • Large PR (500-1000 lines): ~$0.02
  • Huge PR (>2000 lines): ~$0.03

Typical team (50 PRs/day): $1-1.50/day = ~$40/month

License

MIT