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

quality-intelligence-engine

v2.2.24

Published

**Deterministic Test Failure Classification & Analysis for Playwright**

Readme

Quality Intelligence Engine

Deterministic Test Failure Classification & Analysis for Playwright

A rule-based intelligent system that automatically classifies test failures, provides root cause analysis, and delivers actionable insights—without relying on AI black boxes.


🎯 Overview

The Quality Intelligence Engine analyzes Playwright test failures and classifies them into:

  • API_BUG: Backend/API failures (authentication errors, data mismatches, server errors)
  • UI_BUG: Frontend/UI issues (visibility problems, rendering failures, element issues)

Each classification comes with:

  • Confidence score (0-100%) - How certain we are about the classification
  • Root cause analysis - What went wrong and why
  • Evidence - Signals that led to the classification
  • Diagnosis - Step-by-step breakdown of the failure
  • Suggested actions - Concrete next steps to fix the issue

🚀 Quick Start

Installation

npm install

Run Analysis

# Run Playwright tests
npx playwright test

# Run Quality Intelligence Engine
npm start

The engine will:

  1. Read test results from playwright-report/report.json
  2. Classify failures using the taxonomy
  3. Generate detailed analysis reports
  4. Output results to output/ directory

📁 Project Structure

quality-intelligence-engine/
├── src/
│   ├── intelligence/         # Classification algorithms
│   ├── pipeline/             # Data processing
│   ├── utils/                # Utilities
│   ├── types.ts              # Type definitions
│   ├── normalizer.ts         # Input normalization
│   ├── configLoader.ts       # Configuration
│   └── reporter.ts           # Output generation
├── tests/                    # Example test cases
├── config/                   # Configuration files
└── playwright.config.ts      # Playwright configuration

⚙️ Configuration

Edit config/agent.config.json:

{
  "engine": {
    "mode": "standard",
    "confidenceThresholds": {
      "fail": 0.85,
      "passRisk": 0.6
    }
  }
}

🏷️ Taxonomy System

Tests are tagged with their expected failure type:

test('Data | NUMERIC_MISMATCH | inventory count wrong', async ({ page }) => {
  // Test code...
});

📊 Confidence Scoring

Deterministic, explainable confidence calculations:

  • Base Confidence: 0.6 - 0.95
  • Adjustments: +0.05 - +0.1 based on signals
  • Maximum: 0.95 (never 100% certain)

🔧 Development

# Run tests
npx playwright test

# Type check
npx tsc --noEmit

Version: 1.0.0 (Refactored)
Last Updated: 2026-01-29