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

yasin-playwright-slack-report

v1.0.14

Published

Send Slack notifications with Playwright test results using a custom reporter.

Readme

🎭 Yasin Playwright Slack Reporter

A custom Slack reporter for Playwright that sends visually rich, informative test results to your Slack channel — including emojis, test stats, build info, links, and even pie charts! 📊


🚀 Features

  • Summary of passed/failed/skipped tests
  • ⏱️ Total test duration
  • 🔗 Build info, branch, and custom HTML report links
  • 📊 Pass/fail donut chart via QuickChart
  • 📡 Works with any Slack Incoming Webhook

📦 Installation

To install the package, run the following command:

npm install --save-dev yasin-playwright-slack-report

yarn add --dev yasin-playwright-slack-report

🛠️ Configuration

1. Create Slack Webhook

Go to Slack Incoming Webhooks and generate a Webhook URL for your channel.

2. Add Reporter to playwright.config.ts

// playwright.config.ts

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

export default defineConfig({
  reporter: [
    ["list"],
    [
      "yasin-playwright-slack-report",
      {
        webhookUrl: "https://hooks.slack.com/services/XXXX/XXXX/XXXX",
        buildId: "https://your.ci/build/123",
        branchName: "main",
        htmlReportUrl: "https://your.html.report/index.html",
      },
    ],
  ],
});

Slack Message Format

Here’s what the Slack message will look like:


🎭 Playwright Results

  • Passed: 16 | ❌ Failed: 2 | ⏭️ Skipped: 1
  • 🧪 Total Tests: 19
  • 🕒 Duration: 00:00:25
  • 🔗 Build: View Build
  • 🌿 Branch: main
  • 📊 HTML Report: View Report

And includes a donut chart:

Donut Chart Example


🔧 Advanced Options

| Option | Type | Required | Description | | ---------------- | ------ | -------- | ------------------------------------ | | webhookUrl | string | ✅ | Slack webhook URL | | buildUrl | string | ❌ | CI build link to show in the message | | branchName | string | ❌ | Branch name shown in report | | htmlReportLink | string | ❌ | Link to the HTML report |


🧪 Development

If you're developing or contributing to this package:

git clone https://github.com/your-user/playwright-slack-report.git
cd playwright-slack-report
npm install
npm run build

💬 Feedback & Issues

If you have any suggestions or run into issues, feel free to open an issue or submit a PR!


📄 License

MIT © 2025 [Yasin Ramazan Oguz]


Then just commit the change if your project is in version control:

git add README.md
git commit -m "Update README with usage instructions and chart support"

Key Changes:

  • Yarn Installation: Added the yarn add --dev playwright-slack-report command under the Installation section.
  • No lint step: As per your request, the lint step has been removed from the npm version patch script.

This should provide clear instructions for users who prefer Yarn over npm for installing the package. Let me know if you need any further adjustments!