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

@healflow/playwright

v0.1.3

Published

Runtime auto-healing Playwright plugin for HealFlow

Readme

@healflow/playwright

Runtime auto-healing Playwright plugin — detect failures, heal at runtime, and write local artifacts.

Overview

Wraps Playwright's page and locator APIs to automatically retry failed actions (selectors, timing, overlays, iframes, auth, and more). Writes run summaries to .healflow/ after each test run.

Works local-first — no backend or dashboard required.

Installation

npm install @healflow/playwright @healflow/cli @playwright/test
npx healflow init

Playwright version: Test against @playwright/[email protected]. Newer versions (e.g. 1.60+) may break the custom reporter until compatibility is updated.

Quick start

npx playwright test
npx healflow report    # opens .healflow/report.html

Manual config

// playwright.config.ts
import { defineConfig } from '@playwright/test';
import { withHealFlow } from '@healflow/playwright/auto';

export default withHealFlow(
  defineConfig({
    testDir: './tests',
    reporter: [['html'], ['@healflow/playwright']],
  }),
);

Healing fixtures

Import from generated fixtures (created by healflow init):

import { test, expect } from './healflow.fixtures';

Or wire manually:

import { test as base } from '@playwright/test';
import { healflowFixture } from '@healflow/playwright';

export const test = base.extend(healflowFixture());

Local artifacts

After each run, .healflow/ contains:

| File | Purpose | | ------------- | ------------------------------------ | | report.html | Human-readable heal summary | | heals.json | Runtime heals applied during the run | | fixes.json | AST fix proposals (dry-run) | | run.json | Full run metadata |

Configuration

Set options in healflow.yml:

mode: local
output: verbose

healing:
  selector: true
  timing: true
  overlay: true
  iframe: true
  shadowDom: true
  auth: true
  network: true
  navigation: true
  mobile: true
  i18n: true
  upload: true
  multiTab: true

# Optional cloud sync
backend:
  url: https://api.healflow.example
  organizationId: my-org
  repositoryId: my-repo
  token: hf_...

Environment variables: HEALFLOW_API_URL, HEALFLOW_ORG_ID, HEALFLOW_REPO_ID, HEALFLOW_TOKEN.

Exports

| Subpath | Purpose | | ----------------------------------- | --------------------------------------------- | | @healflow/playwright | healflowFixture, wrapPage, plugin options | | @healflow/playwright/auto | withHealFlow() config wrapper | | @healflow/playwright/reporter | Custom Playwright reporter | | @healflow/playwright/setup-global | Global setup hook |

Runtime healing categories

HealFlow walks the T0→T5 runtime ladder on every healable locator/page action:

| Technique | Purpose | | -------------- | ---------------------------------------------------------------- | | T0 Retry | Condition-based waits (visibility, network idle, spinner hidden) | | T1 Scope | Parent-chain scoping | | T2 Normalize | Role / label / text strategy migration | | T3 Fingerprint | DOM attribute & aria similarity | | T4 Trace | Frame/shadow/navigation hints from Playwright error context | | T5 History | Reuse prior heals from .healflow/heals.json |

Categories enabled by default: selector, timing, overlay, iframe, shadow DOM, auth/session, network, navigation, mobile, i18n, upload, multi-tab.

Each runtime heal records matrixEntryId, succeededTechnique, and healMode in .healflow/heals.json.

Product bugs and assertion values are never auto-fixed.

Cloud sync (optional)

When backend is configured, the reporter syncs heals to the HealFlow API after each run. See @healflow/cli for healflow ingest.

Development

pnpm --filter @healflow/playwright build
pnpm --filter @healflow/playwright typecheck

Related packages

License

MIT