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

v0.1.1

Published

Pi extension that runs configurable, staged code verification checks.

Readme

pi-verify

Pi extension that adds one configurable verification tool for staged code checks. It replaces the Claude Code verify and check-di skills with an npm-installable Pi extension.

Install

pi install npm:pi-verify

For project-local installation:

pi install -l npm:pi-verify

During local development in this repository:

npm install
npm run build
pi -e /absolute/path/to/pi-verify

Tool

  • verify_code — detects the project/profile and runs configured conditional stages.

verify_code accepts optional paths. If omitted, it uses git changed/untracked files. Use mode: "all" for full project verification. To run a single configured stage, pass stage, for example "go.di".

Built-in profiles

Go (go.mod)

  1. go test ./... -count=1
  2. go build ./...
  3. go vet ./...

Python (pyproject.toml)

  1. uv run pytest
  2. uv build when [project] or [build-system] exists
  3. uv run ruff check .
  4. uv run mypy . when [tool.mypy] exists

Frontend (package.json)

Uses Bun, pnpm, Yarn, or npm based on the lockfile:

  1. package-manager run test when scripts.test exists
  2. package-manager run build when scripts.build exists
  3. package-manager run lint when scripts.lint exists

Java Maven (pom.xml)

  1. mvn test
  2. mvn checkstyle:check when checkstyle is configured

Configuration

Place config in either:

  • .pi-verify.json
  • .pi/verify.json

User profiles merge with built-ins by id. A stage with the same id overrides built-in fields; a new stage is appended. Set top-level replaceDefaults: true to disable built-ins.

Each stage may define files and condition; the tool picks matching stages automatically and executes them sequentially.

See examples/.pi-verify.json.

Config shape

{
  "version": 1,
  "defaults": {
    "stopOnFailure": true,
    "timeoutMs": 120000,
    "outputMaxLines": 400,
    "outputMaxBytes": 16384
  },
  "profiles": [
    {
      "id": "go",
      "label": "Go",
      "markers": ["go.mod"],
      "files": ["**/*.go", "go.mod", "go.sum"],
      "stages": [
        {
          "id": "test",
          "label": "Go tests",
          "command": "go",
          "args": ["test", "./...", "-count=1"],
          "timeoutMs": 600000
        },
        {
          "id": "build",
          "label": "Go build",
          "command": "go",
          "args": ["build", "./..."],
          "timeoutMs": 600000
        },
        {
          "id": "lint",
          "label": "go vet",
          "command": "go",
          "args": ["vet", "./..."],
          "timeoutMs": 300000
        }
      ]
    }
  ]
}

A stage can use either command + args or run:

{ "id": "lint", "run": "pnpm eslint ." }

Supported stage conditions:

{
  "condition": {
    "exists": ["pyproject.toml"],
    "contains": { "path": "pyproject.toml", "regex": "^\\s*\\[tool\\.mypy\\]", "flags": "m" },
    "command": { "command": "test", "args": ["-f", "some-file"] }
  }
}

Also supported: all, any, and not nested conditions.

Publishing

npm version patch
npm publish

The package manifest contains:

{
  "keywords": ["pi-package"],
  "pi": { "extensions": ["./dist/index.js"] }
}