Description
Polly.JS is a standalone JavaScript library for recording, replaying and stubbing HTTP interactions. It is framework-agnostic, so you can use it with whatever front-end or back-end stack you have, and it works in Node and in the browser. It taps into several request APIs, so it can mock requests and responses with little or no configuration, and it also gives you full control over each request through a simple and intuitive API when you need it. Polly is aimed at the problem of keeping test fixtures and factories in step with the real API they imitate. By recording real responses once and replaying them in later test runs, a test can run without the network and without depending on a live service. The README has a section on why Polly exists, a feature list, a getting started guide and usage examples. It is an open source project from Netflix and is hosted on GitHub, where the contributing guide explains how to set up the project locally. Polly.JS suits developers who write automated tests against HTTP APIs and want reliable, repeatable responses.…
Highlights
- Record, replay and stub HTTP interactions
- Works in Node and the browser
- Framework-agnostic with little configuration
- Full control of each request when needed
Ratings & Reviews
No ratings yet
Be the first to rate Pollyjs.
People also visit

Requestly - An HTTP Interceptor to Intercept, Modify & Mock HTTPs Requests
Helping front-end developers ship faster
Pollyjs FAQ
What is Polly.JS?
A JavaScript library for recording, replaying and stubbing HTTP requests, so tests can run without a live API.
Does it need a specific framework?
No. The library is standalone and framework-agnostic.
Where does it run?
In Node and in the browser.
How much configuration does it need?
The README says it can mock requests with little or no configuration.
Who makes it?
It is a Netflix open source project hosted on GitHub.
What are the best Pollyjs alternatives?
Popular alternatives to Pollyjs include PHP VCR, test-proxy-recorder and Puppetry. See all Pollyjs alternatives



