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

playvision-report

v1.0.9

Published

AI-powered HTML reporter for Playwright with intelligent error analysis

Readme

🚀 PlayVision Reporter

Intelligent, AI-Powered Playwright Test Reporter

PlayVision is a modern, high-performance Playwright reporter that goes beyond simple logs. It leverages local and cloud LLMs to analyze test failures, providing root cause analysis and actionable fix suggestions directly in a premium, React-based HTML report.


✨ Key Features

  • 🤖 AI Forensics - Automatic error categorization and root cause analysis using Ollama (Local) or OpenAI.
  • 📄 Source Traceability - Test cards show the exact file and line number where the test is defined.
  • 🔗 VS Code Integration - Open any test file at the exact line of failure directly from the report via vscode:// deep links.
  • 📊 Executive Summary - Export professional PDF reports and detailed Excel failure data.
  • Native Performance - Optimized React SPA shell with data injection for instant report loading.
  • 📸 Rich Evidence - Seamlessly embeds screenshots (base64 for PDF support), videos, and trace files.
  • 🔍 Advanced Filtering - Search by test title, suite, spec file name, or directory path.

🛠️ Quick Start

1. Installation

# Install dependencies
npm install

2. Configuration (playwright.config.ts)

Add PlayVision to your Playwright configuration:

import { PlayVisionConfig } from 'playvision-reporter';

const config: PlaywrightTestConfig = {
  reporter: [
    ['playvision-reporter', {
      outputFolder: 'playvision-report',
      aiAnalysis: true,
      aiMode: 'premium', // 'premium' (Local LLM + Cloud Fallback), 'smart', or 'basic'
      exportPdf: true,
      exportExcel: true
    } as PlayVisionConfig]
  ],
};

3. Build & Run

# Build the reporter
npm run build

# Run tests in your test project
cd test-project
npm test

🏗️ Architecture

PlayVision is built with separation of concerns at its core:

  • Collector: Manages test execution events and asset gathering.
  • AI Engine: Orchestrates failure analysis across multiple providers (Ollama, OpenAI, Heuristics).
  • Report UI: A modern React-based dashboard injected with test data for maximum speed.
  • Export Manager: Handles post-processing for PDF and Excel generation.

📖 Deep Dives

For more detailed information, check the documentation in the document/ folder:


🔒 Security & Environment

Create a .env file in the root to configure your AI providers:

OPENAI_API_KEY=your-api-key-here
OPENAI_API_URL=https://api.openai.com/v1/chat/completions
OPENAI_MODEL=gpt-4o

Note: The .env file is gitignored to protect your credentials.

🤝 Contributing (Releasing)

This project uses Semantic Release for automated NPM publishing and version management.

  1. Create a Feature Branch: Branch off master (e.g., feat/new-ui, fix/parsing-error).
  2. Raise a PR: Open a Pull Request to master. A GitHub Action will automatically run to build and validate your code.
  3. Merge with Conventional Commits: When merging into master, strictly use the Conventional Commits format for your commit message. This determines the next version number.
    • feat: added summary feature -> Minor Release (1.1.0)
    • fix: resolved crashing bug -> Patch Release (1.0.1)
    • feat!: completely redesigned API -> Major Release (2.0.0)

Once merged to master, a GitHub Action will automatically bump the version, generate release notes, and publish to NPM.


📝 License

MIT © Vignesh8205