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

@sarva-varadi/playwright

v1.0.2

Published

Playwright adapter for Sarva-Varadi test reporter

Readme

@sarva-varadi/playwright

Playwright adapter for Sarva-Varadi — captures test results, steps, attachments, and browser info, and generates beautiful interactive reports with historical trend tracking.


Installation

npm install --save-dev @sarva-varadi/core@latest @sarva-varadi/playwright@latest

Quick Setup

1 — Add reporter to playwright.config.ts

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

export default defineConfig({
  reporter: [
    ['list'],
    ['@sarva-varadi/playwright', {
      outputFolder: 'sarva-report',
      title: 'My Test Report',
    }]
  ],

  use: {
    screenshot: 'only-on-failure',
    video: 'retain-on-failure',
    trace: 'on-first-retry',
  },
});

2 — Run tests

npx playwright test

Report generated at sarva-report/index.html.

open sarva-report/index.html   # macOS
start sarva-report/index.html  # Windows
xdg-open sarva-report/index.html  # Linux

What Gets Captured

| Data | Captured | |---|---| | Test pass / fail / skip / flaky | ✅ Automatic | | Duration | ✅ Automatic | | Error message & stack trace | ✅ Automatic | | Browser name & version | ✅ Automatic | | Test steps | ✅ Automatic | | Screenshots | ✅ Via use.screenshot config | | Videos | ✅ Via use.video config | | Traces | ✅ Via use.trace config | | Retry / flaky detection | ✅ Automatic |


Advanced Configuration

['@sarva-varadi/playwright', {
  outputFolder: 'sarva-report',
  title: 'E2E Tests',
  environment: 'QA',           // Shown as a badge in the report

  history: {
    enabled: true,
    maxRuns: 30,               // Keep last 30 runs
    retentionDays: 90,         // Auto-delete runs older than 90 days
  },

  trends: {
    enabled: true,
    showInMainReport: true,    // Embed trend data in index.html SPA
  },

  notifications: {
    enabled: true,
    slack: {
      enabled: true,
      webhookUrl: process.env.SLACK_WEBHOOK_URL,
      channel: '#test-results',
    },
  },

  // Sensitive data masking
  maskSensitiveData: true,
  sensitiveEnvVars: ['PASSWORD', 'EMAIL', 'API_TOKEN'], // env var names — values are masked in step titles
  maskAllFills: false,   // set true to mask every Fill/Type step value unconditionally
}]

Notifications

Send Slack, Teams, or Email notifications after each run. See NOTIFICATIONS.md for full configuration options.


Full Integration Guide

For the complete step-by-step guide see the Playwright Integration Guide in the main README.


License

MIT