Flashwright

Red and green theatre masks beside a bar chart: the same 24 tests in 2.36 s, against 4.48 s for Playwright and 16.97 s for Cypress

A Playwright fork that installs under Playwright's name

Flashwright is a fork of Playwright 1.64.1 that keeps the API, the test runner and the npx playwright test command. It ships under an npm alias: npm i -D @playwright/test@npm:flashwright-test swaps out Playwright while imports and tests stay as they are. In the project's own benchmark (18 scenarios on a 6-CPU Linux machine), suites finish 2.04 to 4.10 times faster than on Playwright.

Recycled contexts, shorter waits and an agent reporter

  • One context kept per worker: each test gets a fresh tab in a context the worker holds on to, with storage, permissions and routes reset in between.
  • Waits driven by the page: actions and assertions re-check as soon as the page changes instead of sleeping through a 20 to 500 ms backoff. An assertion on an idle page fails before its timeout.
  • Output trimmed for coding agents: when Claude Code, Codex, Cursor, Gemini CLI or GitHub Copilot CLI runs the tests, the runner prints only failures and a summary, and writes test-results/summary.json. 201 tests with one failure come down to 26 lines instead of 425.
  • A warm session: outside CI, browsers stay up between commands, and a single TodoMVC test reruns in 72 ms against 652 ms on Playwright.
  • A codemod: npx playwright codemod rewrites selector calls such as page.click('#go') into locators and lists the ones that still need a manual fix.

Slow CI suites and coding agents that rerun tests

  • Cut CI time when the Playwright suite takes most of the pipeline, without touching the tests.
  • Let a coding agent rerun a test after every edit and read only what failed.
  • Run TypeScript configs and tests on Bun (bunx --bun playwright test), where stock Playwright 1.64.1 fails at the first type annotation.

Looser isolation and a fork that plans to drift from upstream

Tests are less isolated than under Playwright. On Chromium, the pages of a recycled context share one renderer process, so a crash or a busy script hits every test on that worker. Firefox and WebKit reuse the tab itself, history included: a page.goBack() at the start of a test can land on the previous test's page. isolation: 'strict' brings back a new context per test. A test that changes the page from a Node.js timer while an assertion waits needs failFastWhenIdle: false.

The warm session holds memory. After a run, a background session keeps the runner, workers and browsers for up to five minutes: about 0.4 GB after a one-test run, 1 GB after a four-worker suite. It is off in CI, on Windows and while debugging, and FLASHWRIGHT_SESSION=0 turns it off.

Node.js 22.18 or newer. The npm package requires it. Screenshots keep the same pixels but come out as PNG files 1.6 to 1.9 times larger; toHaveScreenshot() baselines don't change.

The fork means to go its own way. In issue #5, the author says their own projects depend on it and that syncing with Playwright will happen when it brings something: a security fix, newer browsers, a feature people need. The project is not affiliated with Microsoft.

Twelve releases in under a month. The repository was created on 8 October 2026, and npm received 1.64.1-flashwright.1 through .12 between 23 October and 19 November. On 25 November 2026, the README already describes .13, which moves to the Playwright 1.65.1 browsers (Chromium 159) and the v1.65.1 Docker image, while npm still serves .12, built on the Playwright 1.64.1 browsers.