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

@piwitests/reporter

v0.63.0

Published

Playwright reporter that streams results, traces and HTML reports to a Piwi Dashboard instance

Readme

Piwi Dashboard Reporter

A custom Playwright reporter that sends your test results to a Piwi Dashboard server — run history, HTML reports, traces and performance metrics, streamed live as tests execute. With the optional capture fixtures it also unlocks locator healing, slow-endpoint analysis, Web Vitals, console capture and failure-time ARIA snapshots.

📖 Full documentation · 🎮 Live demo

Installation

npm install --save-dev @piwitests/reporter

Set up in one command

From your Playwright project, npx @piwitests/reporter init installs the reporter, wraps your playwright.config, creates the capture-fixtures file, and records the connection in .env.example:

npx @piwitests/reporter init --server-url http://localhost:3000 --project my-project

Every step is idempotent (safe to re-run); a config shape it will not rewrite is reported as manual with the exact change to make, never mangled. Add --dry-run to preview or --json for a machine-readable plan an agent can act on. It also installs the Piwi agent skills so your coding agent can investigate failures, heal locators, and stabilize flaky tests. Run npx @piwitests/reporter init --help for all options, or wire it up by hand with the steps below.

The package is @piwitests/reporter; its command is piwi. Invoke it through the package name (npx @piwitests/reporter <command>) so npx resolves this package — npx piwi would fetch an unrelated piwi from npm. Once the reporter is a project dependency, npx piwi <command> resolves the local binary and works too.

Quick start

wrapConfig is the recommended setup. It injects the reporter and a global setup step (so the run shows up as "initializing" while your globalSetup runs), and defaults use.screenshot / use.trace to 'only-on-failure' / 'retain-on-failure' when unset so failure evidence is captured (pass defaultCapture: false to opt out):

import { defineConfig } from '@playwright/test'
import { wrapConfig } from '@piwitests/reporter'

export default wrapConfig(defineConfig({}), {
  serverUrl: 'http://localhost:3000',
  projectName: 'my-project',
})

Run npx playwright test — results are uploaded automatically.

Piwi rebuilds the run from the data it collects, so you don't also need Playwright's built-in html reporter — running it alongside Piwi just repeats the end-of-run report generation. Keep it only if you want Playwright's standalone report uploaded too.

Recommended: enable the capture fixtures. One small file unlocks the dashboard's richest features:

// tests/fixtures.ts
import { test as base, expect } from '@playwright/test'
import { piwiFixtures } from '@piwitests/reporter'

export const test = base.extend(piwiFixtures)
export { expect }

Import test from this file in your specs instead of @playwright/test. A spec that imports from @playwright/test directly still runs and reports fine — it just isn't captured. extendPiwiFixtures(base) is an equivalent one-line spelling. See the capture fixtures guide for the full feature matrix and composition patterns.

What you get

  • Run history, statuses, errors, traces, reports and live streaming — with no test-code changes.
  • Capture fixtures add slow-endpoint analysis, Web Vitals, console capture, failure-time ARIA snapshots and locator healing.
  • AI steps (page.piwiLocator(...) / page.piwiRun(...)) drive flows in plain English, compiled once and replayed deterministically with zero LLM calls in CI — see AI steps.
  • CI-aware — auto-detects the run label, branch and commit, publishes the run URL back to the pipeline, and shards into a single run. See CI & sharding.

Configuration

Most options can also be set via a PIWI_* environment variable (config wins over env, except for PIWI_VERBOSE). The full option and env-var reference lives in Reporter options; authentication for CI is covered under API keys.

Requirements

  • Node.js 20 or higher (the reporter runs inside your test project — the dashboard server itself targets Node 22+, or use its Docker image)
  • Playwright Test 1.61.1 or higher
  • A running Piwi Dashboard server

Contributing

Source layout, the collect-and-submit data flow and the public/internal split are documented in ARCHITECTURE.md. Build with npm run reporter:build (or reporter:dev for watch mode) from packages/reporter/, or add -w packages/reporter to run it from the repository root.

License

MIT