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

@gtheys/pi-review

v0.2.0

Published

Pi extension — /review, /sonarqube, and /pr-quality commands powered by GitHub and SonarCloud

Downloads

256

Readme

pi-review

Pi extension providing code-review commands powered by GitHub and SonarCloud.

Extensions

| Entry | Description | |---|---| | review/review.ts | /review — agent-driven code review | | sonarqube/sonarqube.ts | /sonarqube — SonarCloud coverage and quality analysis | | pr-quality/index.ts | /pr-quality — combined PR thread triage + SonarCloud |


/review

Agent-driven code review. Supports multiple targets:

/review                     — pick mode interactively
/review pr <number>         — review a specific PR

Modes: uncommitted changes, base branch diff, specific commit, pull request, folder diff, or custom instructions.

When reviewing a pull request, if tuicr and herdr are on PATH and the session is running inside Herdr (HERDR_ENV=1), /review also opens a tuicr pr <n> TUI in a Herdr pane on the right, and asks the agent to add its findings into that session via tuicr review add (see the tuicr skill).


/sonarqube

Fetches SonarCloud coverage metrics and quality issues for a PR, generates a sonarqube-report.md in the repo root, then sends the report to the agent.

Prerequisites

| Requirement | How to set up | |-------------|---------------| | SONARQUBE_TOKEN | export SONARQUBE_TOKEN=<token> from https://sonarcloud.io/account/security | | SonarCloud project | sonar-project.properties with sonar.projectKey and sonar.organization, or SONAR_PROJECT_KEY + SONAR_ORGANIZATION env vars |

Usage

/sonarqube                             — auto-detect PR from current branch
/sonarqube 283                         — explicit PR number
/sonarqube 283 --severity=BLOCKER,CRITICAL
/sonarqube 283 --types=BUG,VULNERABILITY
/sonarqube 283 --files=src/auth/*

/pr-quality

Combined command: CI guard → GitHub unresolved threads + SonarCloud data (fetched in parallel) → structured agent prompt.

Prerequisites

Same as /sonarqube above, plus gh CLI authenticated (gh auth login).

Usage

/pr-quality          — auto-detect PR from current branch
/pr-quality 283      — explicit PR number

What it does

  1. CI guard — exits early if any check is QUEUED or IN_PROGRESS.
  2. Parallel fetch — GitHub GraphQL (unresolved review threads) + SonarCloud (coverage + issues).
  3. Agent prompt — three tasks:

| Task | What the agent does | |------|---------------------| | A — Triage comments | Classifies threads VALID/INVALID, auto-resolves INVALID via GitHub GraphQL | | B — SonarCloud issues | Addresses issues in severity order (BLOCKER → CRITICAL → MAJOR) | | C — Action plan | Writes pr-quality-plan.md with checkbox lists |