Your Playwright results, kept and explained.
Free, self-hosted, zero telemetry. CI throws away every report it makes. Piwi keeps them, then groups
the failures by root cause, scores the flaky tests, and finds the locator you should have used.
Live demo Β· Documentation Β· Getting started Β· Roadmap Β· Discussions
The live demo is the real app on seeded data. It runs entirely in your browser: nothing to install, no backend.
Playwright's HTML report is excellent, and it lasts exactly until the next build. The questions that matter come later: Has this test always been flaky? Did my fix hold? Which of these forty red tests are the same bug? Piwi keeps the runs so you can answer them. Everything it does serves five jobs:
- Keep the history. Every run, trace and report, browsable long after CI deleted its artifacts.
- Explain the failures. An error fingerprint collapses forty red tests into the three root causes behind them, each triaged once. Every flaky test gets a score, a root-cause class and the CI minutes it wastes, so you fix the expensive ones first.
- Hand back a fix. When a locator breaks, ranked replacements captured from the last passing run, with the patch to apply. If you want it, an LLM you configure explains a cluster against your actual git diff, and its patch is checked against your source before you see it. Off by default.
- Find what your tests miss. The routes, pages and controls no test reaches, from the runs you already have, each with a skeleton to start the missing test from.
- Write and debug tests. Record a test from VS Code, a JetBrains IDE or the browser, run it, stop it at a breakpoint with the page still open, and write the fix where it stopped.
Around them: live run streaming, cross-project analytics and scheduled quality reports, notifications (email, Slack, Teams, webhooks), a REST API with in-app OpenAPI docs, and an MCP server so your coding agent can ask about test health. What Piwi does has the whole picture; All features lists each one with what it needs.
The same engine that scores locators in the dashboard works where you write the tests.
1. Run the dashboard. With Docker:
# Linux / macOS
mkdir -p .data && sudo chown -R 1001:1001 .data # the container runs as non-root UID 1001
docker run -p 127.0.0.1:3000:3000 -v $(pwd)/.data:/app/.data phenx/piwitests-server:latest# Windows (PowerShell)
docker run -p 127.0.0.1:3000:3000 -v ${PWD}/.data:/app/.data phenx/piwitests-server:latestIt answers at http://localhost:3000, on this machine only: with authentication off, anyone who
reaches the port is an administrator, so publish it on every interface (-p 3000:3000) only once
authentication is on. The SQLite database and the
.data/ storage are created when the server starts. On a Linux host, the chown matters: without it,
Docker creates .data owned by root and the container cannot write to it
(details).
Not a Docker person? Four other ways in:
| Path | Start here if | What it costs |
|---|---|---|
| Live demo | You want to look around first | Nothing: seeded data, entirely in your browser |
| Desktop app | You run Playwright locally and want no server at all | An installer; no Docker, no Node |
npx @piwitests/server |
You have Node.js 22+ and would rather skip Docker | One command, .data/ in the current directory |
| One-click deploy | You want a shared instance and no server to run it on | An account on the host, and what it charges |
The desktop installers are not code-signed, so the first launch needs a click-through; they exist
for Windows x64, Apple-silicon macOS and Linux x86-64. Getting started
compares these ways in full. The one-click templates (render.yaml,
fly.toml, deploy/) are generated from the same variable registry as the
configuration reference, so they cannot drift from what the app reads; per-provider limits are in the
deployment guide.
2. Connect your suite. From your Playwright project:
npx @piwitests/reporter init --server-url http://localhost:3000 --project my-projectinit installs the reporter, wraps your playwright.config, adds the capture fixtures and records the
connection in .env.example. Every step is safe to re-run, and a config shape it will not rewrite is
reported as a manual step with the exact change to make
(details). By hand, it is
wrapConfig around your config and one fixtures file:
// playwright.config.ts
import { defineConfig } from '@playwright/test'
import { wrapConfig } from '@piwitests/reporter'
export default wrapConfig(defineConfig({ testDir: './tests' }), {
serverUrl: process.env.PIWI_DASHBOARD_URL || 'http://localhost:3000',
projectName: 'my-project',
})// tests/fixtures.ts
import { test as base, expect } from '@playwright/test'
import { piwiFixtures } from '@piwitests/reporter'
export const test = base.extend(piwiFixtures)
export { expect }Import test from that file instead of @playwright/test, and the deeper features light up: locator
healing, slow-endpoint analysis, Web Vitals, console capture, failure-time ARIA snapshots
(capture fixtures). wrapConfig adds the reporter, registers
the run before your global setup and turns on failure screenshots and traces; a config it cannot wrap takes
the bare reporter entry instead, which gives those up unless you set them by hand
(Reporter). A runnable project lives in
examples/sample-app.
3. Run your tests. npx playwright test: the run streams into the dashboard while it executes,
the project is created on first submission (with authentication on, from an account that can upload on
all projects), and the reporter prints a View run: link at the end. In CI, set PIWI_DASHBOARD_URL
(and PIWI_API_KEY once authentication is on, an API key
for a CI account): branch, commit, CI metadata
and --shard merging are detected automatically (CI & sharding).
Piwi is one Node process: about 300 MB of RAM idle, 1 vCPU, linux/amd64 or linux/arm64. Disk is the
variable, as traces and reports dominate: budget 50 to 200 MB per run and set a retention window. Your
test project needs Node.js 22 or later for the reporter, as the dashboard does.
The command above gives you an open dashboard with authentication off, which is fine on localhost and not fine on a network. The first steps of the production checklist, before anyone else can reach it:
- Authentication:
PIWI_AUTH_ENABLED=true,PIWI_AUTH_SECRET(it signs the session cookies) andPIWI_SETUP_TOKEN, which the form that creates the first administrator asks for (authentication). - The encryption key:
PIWI_SECRET_KEYencrypts the credentials stored in the database, such as AI keys and SCM tokens; without it, the dashboard refuses to save them. - HTTPS, through a reverse proxy (deployment guide).
Generate a value for each secret with
node -e "console.log(require('node:crypto').randomBytes(32).toString('hex'))". The checklist goes on
with the public address and proxy trust, backups and a pinned version. Found a vulnerability?
Please report it privately through the security policy.
Playwright's own HTML report is the right tool for debugging a run on your machine; Piwi is for the runs you cannot open anymore. It is deliberately Playwright-only: that is what makes traces, step timing and locator healing first-class rather than lowest-common-denominator. If you need one place for JUnit, pytest and Cypress results too, ReportPortal or Allure fit better. If you would rather someone else ran the server, Currents is the managed option. And if you only ever debug locally and never look back, you do not need any of this. The longer version, including where Piwi loses, is Why Piwi?.
Everything below is built and published from this repository on each release.
| Artifact | Registry | What it is |
|---|---|---|
@piwitests/reporter |
npm | The Playwright reporter: add it to playwright.config.ts |
@piwitests/server |
npm | The dashboard server, runnable with npx @piwitests/server |
phenx/piwitests-server |
Docker Hub | The server container (linux/amd64, linux/arm64) |
ghcr.io/piwitests/platform |
GHCR | The same container, mirrored, plus an edge tag built from main |
Desktop app (.msi/.exe, .dmg, .deb/.rpm/.AppImage) |
GitHub Releases | The server bundled in a native window: no Docker, no Node |
| Piwi Picker | Chrome Web Store | The browser extension, for Chrome, Edge and the other Chromium browsers |
| Piwi Picker | Firefox Add-ons | The same extension, for Firefox |
| Piwi for VS Code | Visual Studio Marketplace, Open VSX | The VS Code extension (Cursor and VSCodium too) |
| Piwi for JetBrains IDEs | JetBrains Marketplace | The IDE plugin (WebStorm, IntelliJ IDEA Ultimate, Rider, from 2024.1) |
@piwitests/instrumentation-nitro |
npm | Optional: sends your Nitro/Nuxt backend's logs into a test run |
PiwiTests.Instrumentation.AspNetCore |
NuGet | Optional: the same for an ASP.NET Core backend |
PiwiTests.Instrumentation.Serilog |
NuGet | Optional: a Serilog sink for an ASP.NET Core backend that logs through Serilog |
PiwiTests.Instrumentation.Core |
NuGet | The capture buffer the two .NET packages above share, installed with them |
The instrumentation packages are only needed for backend log capture. Both container registries carry the same images. The browser extension and the editor extensions reach their stores through each store's review, so a listed version can trail a release by a day or two.
Pre-1.0 and under active development: expect occasional breaking changes between minor versions, pin a
version tag, and keep backups of .data/. Every commit runs a CI matrix across SQLite/PostgreSQL and
local/S3 storage with a full Playwright E2E suite.
Upgrades apply database migrations automatically on startup, and those migrations are forward-only: rolling back means restoring a backup, not pulling the old tag. Read Upgrading before your first version bump. Direction and non-goals live in the roadmap.
Full docs at piwitests.dev. The usual entry points:
- Getting started: install, reporter, first run
- Your first failure, explained: one failing test, from its headline to its evidence
- Core concepts: runs, test cases, executions, clusters
- Reporter and CI & sharding: getting results in
- Deployment and Configuration: running your instance
- Upgrading: what a version bump does, and why downgrading is not a thing
- Privacy & data flow: exactly what leaves your server, which is nothing you did not configure
- Browser extension and Editor extensions: Piwi where you write the tests
- MCP server and Agent skills: Piwi for your coding agent
A running dashboard also serves interactive API docs at /settings/api, rendered in-app from its own OpenAPI
spec, with no external CDN, so they work offline.
- π¬ Discussions: questions, ideas, show & tell
- π Issues: bugs and feature requests
- π Security policy: how to report a vulnerability
Contributions are welcome: CONTRIBUTING.md covers dev setup, tests and commit conventions, and AGENTS.md has the architecture tour.
cd apps/application && npm install && npm run app:dev # http://localhost:7494Fair source. The dashboard, the server, the desktop app, the browser extension and the editor extensions are under the Functional Source License, Version 1.1, MIT Future License (FSL-1.1-MIT): use it, self-host it and modify it for free, at work too. What it rules out is offering Piwi, or a product built from it, as a commercial product or service that competes with it. Each release becomes MIT two years after it is published.
The reporter, the integrations and the examples are MIT. Releases up to v0.39.x stay MIT. See License for what is and is not allowed.
Disclaimer: Piwi Dashboard is not affiliated with, endorsed by, or connected to Microsoft Corporation in any way. "Piwi" is a playful, unrelated name with no connection to any existing product or brand. Playwright is a trademark of Microsoft Corporation.







