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

@wphealthkit/cli

v0.1.0

Published

CLI tool for WP HealthKit — audit WordPress plugins from your terminal

Readme

@wphealthkit/cli

CLI tool for WP HealthKit — audit WordPress plugins from your terminal.

Installation

# Global install
npm install -g @wphealthkit/cli

# Or run without installing
npx @wphealthkit/cli <command>

Authentication

Interactive login (recommended)

wphk login
# Enter your WP HealthKit API key when prompted
# Key is saved to ~/.wphkrc (chmod 600)

Environment variable

export WPHK_API_KEY=wphk_live_xxxxxxxxxxxx

Get your API key from wphealthkit.com/settings.

Commands

wphk audit <slug|file.zip>

Trigger an audit by WordPress.org plugin slug or local .zip file.

# Audit by wp.org slug
wphk audit woocommerce

# Audit a local plugin zip
wphk audit ./my-plugin.zip

Returns an auditId you can use to poll for results.


wphk report <audit-id>

Fetch the full audit report for a given audit ID.

wphk report aud_abc123

wphk findings <audit-id> [options]

List findings for an audit, with optional filters.

wphk findings aud_abc123
wphk findings aud_abc123 --severity critical
wphk findings aud_abc123 --category security
wphk findings aud_abc123 --severity high --limit 10

Options:

  • --severity <level> — Filter by severity: critical, high, medium, low, info
  • --category <name> — Filter by category: security, performance, compatibility, etc.
  • --limit <n> — Limit number of results

wphk check <slug>

Quick directory lookup for a plugin — grade, risk, active installs, last audit.

wphk check woocommerce

Example output:

WooCommerce v9.4.2
  Grade: A | Risk: low
  Findings: 3 | Standards: 94/100
  Active installs: 7,000,000
  Last audited: 2026-04-08
  https://wphealthkit.com/directory/woocommerce

wphk usage

Show your current plan usage for the billing period.

wphk usage

Example output:

Tier: pro
Audits: 12/100 this month
Can audit: yes

wphk login

Save your API key to ~/.wphkrc. The file is created with 600 permissions (owner read/write only).

wphk login

wphk --version / wphk -v

Print the CLI version.

Environment Variables

| Variable | Description | Default | |---|---|---| | WPHK_API_KEY | Your WP HealthKit API key | — | | WPHK_API_URL | Override the API base URL | https://wphealthkit.com/api/v1 |

CI/CD Integration

Use the CLI in GitHub Actions to audit plugins as part of your workflow:

name: Plugin Audit

on:
  push:
    paths:
      - "my-plugin/**"

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Install WP HealthKit CLI
        run: npm install -g @wphealthkit/cli

      - name: Build plugin zip
        run: zip -r my-plugin.zip my-plugin/

      - name: Trigger audit
        env:
          WPHK_API_KEY: ${{ secrets.WPHK_API_KEY }}
        run: |
          RESULT=$(wphk audit ./my-plugin.zip)
          echo "$RESULT"
          AUDIT_ID=$(echo "$RESULT" | jq -r '.data.auditId')
          echo "AUDIT_ID=$AUDIT_ID" >> $GITHUB_ENV

      - name: Wait for results (30s)
        run: sleep 30

      - name: Fetch report
        env:
          WPHK_API_KEY: ${{ secrets.WPHK_API_KEY }}
        run: wphk report $AUDIT_ID

License

MIT