playwright-network-cache

JSON →
library 0.3.0 ·javascript
verified Jun 7, 2026

A Playwright test utility for caching network requests on the filesystem to speed up E2E tests. Version 0.3.0 is the latest stable release, with a focus on simplicity and transparency (cached responses stored as clear JSON files, not HAR). It supports automatic caching, TTL-based refresh, runtime response modification, and flexible path splitting. Unlike manual mocking or HAR-based tools, it requires no setup beyond a fixture and works transparently with real API calls. Release cadence is irregular; maintained by vitalets. Ships TypeScript types.