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

@fole/pingu

v0.3.0

Published

AI-powered test failure analysis. Triages results from any framework, detects flaky and trending patterns.

Readme

pingu

AI-powered test failure analysis. Feed it results from any test framework, get categorized diagnoses and historical pattern detection.

npx pingu-cli analyze results.xml --triage   # analyze JUnit XML with AI
npx pingu-cli analyze report.json --triage    # analyze JSON results with AI
npx pingu-cli history                         # view past runs and patterns

Why

Tests failed. You open CI logs, scroll through red, and spend 20 minutes figuring out which failures are real bugs, which are flaky, and which are your test data being wrong.

Pingu does that for you. Feed it test results from any framework (JUnit XML or JSON), and get a categorized diagnosis of every failure -- plus historical pattern detection across runs.

How It Works

test results  ->  analyze  ->  AI triage  ->  history patterns  ->  CI integration
 (JUnit/JSON)    (parse)     (categorize)    (flaky/trending)     (PR comment, issues)
  1. Analyze results from any test framework -- JUnit XML, pingu JSON
  2. Triage failures with Claude AI or offline heuristics (status code mapping)
  3. Detect patterns across runs -- flaky tests (pass/fail alternation), trending failures (consecutive failures since commit X)
  4. Act -- post a PR comment with results, file GitHub issues, write JUnit XML

Install

npm install -g pingu-cli

Requires Node.js 18+. For AI triage: ANTHROPIC_API_KEY or OPENAI_API_KEY.

Usage

Analyze test results

# From pytest
pytest --junitxml=results.xml
pingu analyze results.xml --triage

# From Jest
jest --reporters=jest-junit
pingu analyze junit.xml --triage

# From Go
go test -v ./... 2>&1 | go-junit-report > results.xml
pingu analyze results.xml --triage

# Full CI pipeline
pingu analyze results.xml --ci   # --triage --comment --remedy --junit

Failure categories

Each failure is categorized as:

| Category | What it means | Retryable? | |----------|-------------|-----------| | api_bug | Bug in the API (500, unexpected response) | No | | test_bug | Bug in the test (bad request, wrong assertion) | No | | config_issue | Auth/config problem (401, 403) | No | | infra_issue | Infrastructure (timeout, connection refused) | Yes | | transient | Temporary (502, 503, 504, 429) | Yes |

History and patterns

Every pingu analyze run is saved to .pingu/runs/. After a few runs, pingu detects:

  • Flaky tests -- tests that alternate pass/fail across recent runs
  • Trending failures -- tests that started failing N runs ago, correlated with commit SHA
pingu analyze results.xml --triage --sha abc1234  # tag run with commit
pingu history                                      # view past runs
pingu history --last 20                            # more history

CI integration

pingu analyze results.xml --ci

This enables: AI triage, PR comment with results, GitHub issue filing for non-retryable failures, and JUnit XML output.

Requires GITHUB_TOKEN and GITHUB_REPOSITORY environment variables (set automatically in GitHub Actions).

Options

analyze <file>        Path to JUnit XML or JSON report
  --format <fmt>      Force input format: junit, json (auto-detected)
  --url <url>         Base URL label for the report
  --triage            Analyze failures with AI
  --provider <name>   LLM provider: anthropic, openai (default: anthropic)
  --model <model>     Model name
  --json              Output as JSON
  --junit <path>      Write JUnit XML report
  --comment           Post results as PR comment
  --remedy            File GitHub issues for failures
  --sha <sha>         Git SHA to associate with this run
  --ci                Shorthand for --triage --comment --remedy --junit

history
  --last <n>          Number of recent runs (default: 10)

License

MIT