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

pi-sonar

v0.1.0

Published

SonarQube integration for pi coding agent — tools, skills, and workflows for finding and fixing sonar issues

Readme

pi-sonar

SonarQube integration for pi coding agent. Gives AI tools to find and fix sonar issues, with /sonar command for common workflows.

What it adds

Tools (for AI)

| Tool | What it does | |------|-------------| | sonar_list_issues | List project issues — filter by severity, branch, or PR | | sonar_verify_file | Check a specific file after editing | | sonar_analyze_secrets | Scan for hardcoded secrets |

Skill

sonar-cli — loaded automatically when you ask about sonar issues. Teaches AI the full CLI reference and fix workflows.

Command

/sonar — manual trigger for common workflows:

/sonar status              — show detected sonar config
/sonar list                — list all open issues
/sonar list CRITICAL       — filter by severity
/sonar fix                 — fix all open issues (AI-driven)
/sonar pr <id>             — issues introduced by a PR
/sonar branch <name>       — issues on a branch
/sonar secrets             — scan for hardcoded secrets

Install

# Global install
pi install git:github.com/yourusername/pi-sonar

# Project-local
pi install -l git:github.com/yourusername/pi-sonar

Or during development (from this directory):

pi install ./

Project Configuration

The extension auto-detects your sonar project from:

  1. sonar-project.properties — reads sonar.projectKey, sonar.host.url, sonar.organization
  2. .sonarcloud.properties — reads sonar.projectKey, sonar.organization

If neither exists, pass the project parameter directly to the tools, or create one:

# sonar-project.properties
sonar.projectKey=my-project-key
sonar.host.url=https://my-sonarqube.io   # omit for SonarQube Cloud
sonar.organization=my-org-key             # required for SonarQube Cloud

Authentication

Authenticate once with the sonar CLI:

# SonarQube Cloud
sonar auth login -o my-org

# Self-hosted
sonar auth login -s https://my-sonarqube.io --with-token squ_abc123

Check status:

sonar auth status

Requirements

Typical Workflows

Before a commit

/sonar secrets          → scan for secrets
/sonar list             → check for new issues

During a PR review

/sonar pr 42            → see issues introduced by PR #42
                        → AI offers to fix them

Fix everything

/sonar fix              → AI lists all issues, fixes each file, verifies each fix

Natural language

Just ask pi directly — the skill auto-loads:

  • "Fix all the sonar issues on this branch"
  • "Are there any critical sonar issues in this project?"
  • "Check if src/auth.ts has sonar issues after I just edited it"