# Netflix/pollyjs

Record, Replay, and Stub HTTP Interactions.

Repository: https://github.com/Netflix/pollyjs
Canonical: https://ross.abutalabs.com/products/pollyjs
Homepage: https://netflix.github.io/pollyjs
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: javascript, browser, nodejs, testing, netflix, record, replay
Last push: 2025-05-31T22:29:19+00:00

## Health v2 (maintenance only)
Score: 43/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 24, release rhythm 35, longevity 100
- inputs: {"age_days": 3016, "days_push": 459, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 10250, forks 355 (observed 2026-08-28T04:10:41.291994+00:00)

## What it is
Polly.JS is a standalone, framework-agnostic JavaScript library for recording, replaying, and stubbing HTTP interactions in both Node and the browser. It lets test suites record real server responses once and replay them for fast, deterministic tests, while also providing an API to intercept and modify requests and responses.

## Use cases
- record and replay http requests in javascript tests
- mock fetch and xhr requests in browser tests
- stub api responses to simulate error states
- create deterministic test fixtures from real server responses
- intercept third-party requests like analytics in tests
- speed up test suites by avoiding live api calls

## When to avoid
- you need to mock non-HTTP protocols like gRPC or WebSockets
- you want a general-purpose mock server rather than an in-process test library
- your stack is not JavaScript

## Facets
- artifact type: library
- maturity: maintenance
- function: testing, mocking, http-client
- domain: testing, web-development, developer-tools
- platform: browser
- tags: http-mocking, record-replay, vcr-style, test-fixtures, mocha, qunit, nodejs, javascript

## Member repositories
- Netflix/pollyjs (main) score 43

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:41.291994+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:19:24.301397+00:00, confidence not recorded.
  - readme: https://github.com/Netflix/pollyjs (fetched 2026-08-28T04:10:41.291994+00:00, sha 20dcd59c2c24)
  - homepage: https://netflix.github.io/pollyjs (fetched 2026-08-29T08:19:10.413014+00:00, sha b8e1b332b4c0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
