Skip to main content

Deterministic e2e on CI with the backend turned off

test-proxy-recorder

VCR for Playwright — records real API responses once, then replays them deterministically on CI. Covers Next.js SSR, browser, and WebSocket traffic with no backend and no hand-written mocks. I built it because every flaky e2e run traces back to the network.

GitHub stars
75
npm installs / week
151

The challenge

Every flaky e2e run has the same root cause: the network. Existing tools each leave a gap — record real traffic, or cover SSR, or handle WebSockets, but never all three without hand-writing the mocks.

My role

Sole author and maintainer. Designed the record/replay proxy, the SSR + browser + WebSocket capture, the CLI, the docs site, and every release.

Result

Records real traffic across SSR, browser, and WebSockets, then replays it byte-for-byte on CI — so tests pass with the backend off.

Built with

  • TypeScript
  • Playwright
  • Next.js
  • WebSocket
  • e2e
  • npm

I'm available for full-time remote work in EU timezones. Happy to talk through anything here in more detail.

Get in touch