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

prism-pr-review

v0.1.10

Published

AI-powered interactive PR review reports for Claude Code — refracts your diff into clear insights

Readme

🔮 prism

AI-powered interactive PR review reports for Claude Code.

Prism refracts your git diff into a structured HTML report — classifying changes by risk, mapping them to components, and assessing test coverage — then commits it alongside your branch and deploys it to GitHub Pages so reviewers get a link automatically.


Installation

Prerequisites: Node.js 18+, Claude Code, GitHub CLI (required for /ship)

npx prism-pr-review install

This copies slash commands to ~/.claude/commands/, the pre-PR hook to ~/.claude/hooks/, and registers the MCP server in ~/.claude.json:

{
  "mcpServers": {
    "prism": {
      "command": "npx",
      "args": ["-y", "prism-pr-review"]
    }
  }
}

Restart Claude Code after installing.

npx prism-pr-review uninstall   # to remove

Commands

/review-pr [target-branch]

Analyses the current branch against target-branch (default: main), generates .pr/index.html, and opens it in your browser. Offers to commit the report at the end.

/ship [target-branch] [--draft]

Full pipeline: generate report → commit → push → open GitHub PR with AI-generated title and body.

/ship master --draft

/setup-repo

One-time setup for a repo. Copies .github/workflows/pr-report.yml, verifies Actions permissions, and guides you through enabling GitHub Pages.


How it works

/ship
    │
    ├─ MCP: get_pr_data("master")        ← git diff, log, stat
    │
    ├─ Claude analyses the diff          ← risk, components, coverage
    │
    ├─ MCP: generate_report(analysis)    ← writes .pr/index.html
    │
    ├─ git commit + push + gh pr create  ← PR opened with AI summary
    │
    └─ GitHub Actions                    ← deploys report to Pages
           ├─ posts link as PR comment   ← reviewers get it automatically
           └─ or prompts to run /ship    ← if report is missing

The report includes an executive summary, expandable change cards with risk badges and diffs, impacted component mapping, test coverage assessment, and the full commit list.

MCP server (src/) exposes two tools over stdio: get_pr_data (git diff/log/stat) and generate_report (writes HTML, opens browser). Registered in ~/.claude.json, it starts automatically with Claude Code.

Slash commands + hook (plugin/) are markdown files in ~/.claude/commands/ and ~/.claude/hooks/. Claude is the AI brain; the MCP tools are the hands.


GitHub Pages integration

After /setup-repo, every PR that ships a fresh .pr/index.html via /ship gets a report link posted as a PR comment.

The gh-pages branch is created on the first workflow run. After that:

  1. Go to Settings → Pages
  2. Set Source to Deploy from branch → gh-pages → / (root)
  3. Save — all future PRs get report links automatically

Note: GitHub Actions must be enabled. Check Settings → Actions → General → Allow all actions if the workflow doesn't run.

The workflow uses git diff between the base and head SHA to confirm .pr/index.html was actually modified in this PR, preventing stale reports from a previous branch deploying under the wrong PR number.


Development

npm install
npm run build       # compile TypeScript → dist/

To test locally, add to ~/.claude.json:

{
  "mcpServers": {
    "prism": {
      "command": "node",
      "args": ["/absolute/path/to/prism-pr-review/dist/index.js"]
    }
  }
}

After changing src/, run npm run build and restart Claude Code (or /reload). After changing plugin/, re-run npx prism-pr-review install to copy updated files to ~/.claude/.

Key files:

  • src/index.ts — CLI entry + MCP server registration
  • src/install.ts — install/uninstall logic
  • src/template.ts — self-contained HTML report template
  • plugin/commands/ — slash command prompts
  • plugin/hooks/ — pre-PR hook

License

MIT