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

@supatest/playwright-reporter

v0.0.7

Published

Supatest Playwright reporter - stream test results to Supatest dashboard

Readme

@supatest/playwright-reporter

Playwright reporter that streams test results to Supatest in real-time. Captures comprehensive test data including steps, errors, attachments, and CI/Git context.

Install

pnpm add -D @supatest/playwright-reporter

Configuration

Add to your playwright.config.ts:

import { defineConfig } from '@playwright/test';

export default defineConfig({
  reporter: [
    ['@supatest/playwright-reporter', {
      apiKey: process.env.SUPATEST_API_KEY,
      projectId: process.env.SUPATEST_PROJECT_ID,
    }]
  ]
});

Environment Variables

| Variable | Description | |----------|-------------| | SUPATEST_API_KEY | Required. Your Supatest API key | | SUPATEST_PROJECT_ID | Required. Your project identifier for organizing test runs | | SUPATEST_API_URL | Optional. Custom API endpoint | | SUPATEST_DRY_RUN | Optional. Set to true to enable dry-run mode |

Features

Test Data Collection

  • Test Results: Status, duration, retry info, flaky detection
  • Test Steps: Nested step hierarchy with timing and status
  • Errors: Source location, stack traces, and failure details
  • Console Output: stdout/stderr captured during test execution
  • Attachments: Screenshots, videos, and traces metadata

Environment & Context

  • OS Info: Platform, release, architecture, CPU count, RAM
  • Node.js Version: Runtime environment details
  • Playwright Config: Version, workers, retry strategy, parallel mode
  • Browser Projects: Browser type, viewport, locale, timezone per project
  • Sharding Info: Current shard and total shards
  • CI Provider Detection: GitHub Actions, GitLab, Jenkins, CircleCI, Travis, Buildkite, Azure
  • Git Context: Branch, commit, message, repository, author

Performance & Reliability

  • Non-Blocking Uploads: Test execution continues while uploads happen in background
  • Concurrent Uploads: Configurable concurrency control (default: 5 parallel)
  • Retry Logic: Exponential backoff with configurable attempts
  • Error Handling: Graceful degradation—reporting failures don't block tests
  • Signed URL Uploads: Direct S3 uploads via signed URLs from API

Development

Running Tests

Unit Tests:

pnpm test              # Run tests in watch mode
pnpm test:run          # Run tests once
pnpm test:coverage     # Run tests with coverage

Integration Tests:

pnpm test:integration  # Build reporter and run full E2E test suite

This will:

  1. Build the reporter package (pnpm build)
  2. Run the Playwright test suite in reporter-test-suites/playwright-saucedemo/
  3. Verify data flows to your local API (requires API running on http://localhost:9090)

Quick Development Loop:

# Terminal 1: Start local API
cd api && pnpm dev

# Terminal 2: Build reporter, run integration tests
cd playwright-reporter
pnpm test:integration

Test Suite Configuration

The integration test suite uses .env configuration:

# reporter-test-suites/playwright-saucedemo/.env
SUPATEST_API_URL=http://localhost:9090
SUPATEST_API_KEY=sk_test_...
SUPATEST_PROJECT_ID=proj_local_swaglabs
SUPATEST_DRY_RUN=false

Verifying Integration Tests

After running pnpm test:integration, you should see:

  • [supatest] Run <run-id> started (X tests across Y files, Z projects)
  • [supatest] Waiting for N pending uploads...
  • [supatest] Run <run-id> completed: passed/failed

Check your local API dashboard at http://localhost:3000 to see the test results.