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

testivai-playwright

v1.0.0

Published

A Playwright adapter for TestivAI visual diffing.

Readme

TestivAI Playwright Visual Diff Adapter

@testivai/playwright-visual-diff is a powerful adapter for Playwright that enables seamless visual regression testing, powered by AI. It provides a complete workflow for capturing screenshots, comparing them against baselines, and reviewing differences in a user-friendly local report.

Features

  • Simple API: A single testivai.checkpoint() function to capture screenshots in your tests.
  • Local Audit: Run tsvai audit to compare snapshots and generate a detailed HTML report.
  • Interactive Report: Use tsvai serve to launch a local server, review visual diffs, and accept changes with a single click.
  • Secure by Design: The "Accept Change" feature is only available locally, ensuring CI/CD artifacts are read-only and secure.
  • CI/CD Ready: Includes a sample GitHub Actions workflow to automate visual testing in your pipeline.

Installation

npm install testivai-playwright-visual-diff

Usage

1. Initialize the project

Run the init command in the root of your project to create the necessary directories and configuration files.

npx tsvai init

2. Capture checkpoints in your tests

In your Playwright tests, import and use the checkpoint function to capture screenshots at key moments.

import { test, expect } from '@playwright/test';
import { checkpoint } from 'testivai-playwright-visual-diff';

test('example test', async ({ page }) => {
  await page.goto('https://playwright.dev/');
  await checkpoint('Playwright Home Page', page);
});

3. Run the audit

After your tests have run and captured the latest screenshots, run the audit command to compare them against your baselines and generate a report.

npx tsvai audit

4. Review and accept changes

Use the serve command to view the interactive report in your browser. If there are any visual differences, you can accept the new version as the baseline directly from the report.

npx tsvai serve

This will start a server, typically at http://localhost:3000.