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

@aguspe/tiler-playwright

v1.4.2

Published

Playwright reporter for tiler-ts. Replaces the HTML reporter with a Tiler dashboard.

Readme

@aguspe/tiler-playwright

Playwright reporter that emits a tiler dashboard instead of (or alongside) the default HTML report. Self-contained: no server, no database — the reporter writes a static index.html + a JSON snapshot you can open with file://.

Install

npm i -D @aguspe/tiler-playwright

Use it

// playwright.config.ts
import { defineConfig } from "@playwright/test";

export default defineConfig({
  reporter: [
    ["@aguspe/tiler-playwright", { outDir: "tiler-report" }],
  ],
});

Run your tests, then open tiler-report/index.html.

Setting the report title

The dashboard title shown at the top of the report comes from the preset by default ("Test Automation"). Override it three ways, in increasing precedence:

  1. dashboard: { name } in definePlaywrightConfig({...}) — full control, also lets you set slug/description.
  2. title reporter option — a shortcut for the dashboard name:
    reporter: [["@aguspe/tiler-playwright", { title: "My run", outDir: "tiler-report" }]]
  3. TILER_REPORT_NAME env var — wins over both, ideal for CI:
    TILER_REPORT_NAME="Nightly e2e #${BUILD_NUMBER}" npx playwright test

What you get

The reporter feeds Playwright's events into the test_automation preset's data source schema (suite, test_name, status, duration_ms, environment) and ships a dashboard with metric cards, a status pie, a per-suite grid, and a recent-failures table.

Live mode

If you'd rather stream test runs into a long-running server (so you keep history across runs), point @aguspe/tiler-cli's tiler import-playwright-json at your existing JSON output:

npx tiler import-playwright-json playwright-results.json \
  --server http://localhost:4567 \
  --secret "$TILER_WEBHOOK_SECRET"

Extending the dashboard

The reporter ships the test_automation preset (8 panels, 1 data source). To add panels, data sources, or custom widgets, pass a config file path or set the inline keys directly on the reporter.

Inline (lightweight)

reporter: [["@aguspe/tiler-playwright", {
  excludePanels: ["Pass Rate"],
  panels: [
    { widget_type: "flaky_tests", x: 0, width: 6, height: 4,
      config: { window: 30 }, title: "Flaky last 30 runs" },
  ],
}]],

y is optional — panels with no y are auto-placed below the lowest preset panel; panels with explicit y are placed verbatim.

Separate tiler.config.ts

// playwright.config.ts
reporter: [["@aguspe/tiler-playwright", { config: "./tiler.config.ts" }]],

// tiler.config.ts
import { definePlaywrightConfig } from "@aguspe/tiler-playwright";
import "./widgets/flaky-tests";   // registers the widget via defineWidget()

export default definePlaywrightConfig({
  excludePanels: ["Pass Rate"],
  panels: [...],
  dataSources: [{
    source: coverageSource,
    collect: async ({ outDir, startedAt, endedAt }) => [...],
  }],
});

When both config and inline keys are set, inline values append to the file's values.

Reporter-runtime options (outDir, open, captureLogs, linkTraceFiles) only live in playwright.config.ts. Dashboard structure (panels, dataSources, excludePanels, dashboard) can live inline or in tiler.config.ts.

When both are set, panels/dataSources/excludePanels concatenate (file values first, inline values appended) and dashboard is shallow-merged with inline winning.

A working example lives at examples/playwright-extended/.

License

MIT — see LICENSE.