awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
Netflix avatar

Netflix/pollyjs

0
View on GitHub↗
10,253 stars·353 forks·JavaScript·Apache-2.0·26 viewsnetflix.github.io/pollyjs↗

Pollyjs

Pollyjs is an HTTP mocking and recording library designed to capture and replay network interactions to create deterministic tests. It functions as a request interceptor and stubbing framework that records real API responses into files, ensuring consistent test results across different environments without relying on live network servers.

The tool utilizes pluggable network adapters to support various environments and employs a state-based mode switching system to toggle between recording, replaying, and stubbing behaviors. It uses pattern-based request matching and persistent interaction storage to serve identical responses to incoming requests.

The library covers a broad range of API integration capabilities, including network traffic simulation and the management of request flows. It provides mechanisms for returning custom status codes and mocked data to test edge cases and validate application behavior during automated integration testing.

Features

  • HTTP Mocking Libraries - A comprehensive library for capturing and replaying HTTP interactions to create deterministic tests.
  • HTTP Response Stubbing - Returns predefined responses and custom status codes to simulate various server behaviors and edge cases.
  • API and Network Testing - Records and replays network requests to create deterministic tests that do not rely on a live backend.
  • HTTP Interaction Recording - Provides the ability to capture outgoing network requests and responses to save them for later reuse in tests.
  • Integration Test Suites - Captures real network traffic to build reliable integration test suites that run without external dependencies.
  • HTTP Stubbing Frameworks - Provides a system for returning custom status codes and mocked data for specific network requests to test edge cases.
  • HTTP Mocking - Simulates specific server responses and edge cases by stubbing network calls.
  • HTTP Request Interceptors - Provides a middleware layer that captures outgoing network calls and returns predefined responses.
  • Request Interception Middleware - Intercepts outgoing network calls to determine if they should be routed to a live server or a mock response.
  • Response Recordings - Matches incoming requests against stored recordings to serve identical responses and ensure consistent outcomes.
  • Interaction Recording Storage - Saves captured request and response pairs to a file system or database for reuse across test executions.
  • Request Matching - Identifies the correct recorded response by comparing request URIs and headers against predefined rules.
  • HTTP Client Adapters - Abstracts the underlying HTTP client to support different environments like browsers or Node.js.
  • Request Interception Control - Controls whether network calls are intercepted or passed to a server to regulate traffic during test execution.
  • Deterministic Testing Utilities - Provides a utility for recording real API responses to ensure consistent test results across different environments.
  • HTTP Traffic Simulation - Controls the flow of HTTP requests to regulate traffic and test application behavior under various connectivity scenarios.

Star history

Star history chart for netflix/pollyjsStar history chart for netflix/pollyjs

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Pollyjs

Similar open-source projects, ranked by how many features they share with Pollyjs.
  • nock/nocknock avatar

    nock/nock

    13,103View on GitHub↗

    nock is a Node.js HTTP mocking library and request interceptor. It captures outgoing network traffic to specific hosts and paths, returning predefined responses to decouple applications from external servers during automated testing. The project functions as an API expectation framework to verify that specific calls were made with correct parameters. It includes a traffic recorder that captures real network interactions as fixtures for playback and a network simulation tool to introduce artificial latency or trigger network errors. Its capabilities cover request matching via hostnames, paths

    JavaScripthttpjavascriptmock
    View on GitHub↗13,103
  • pgte/nockpgte avatar

    pgte/nock

    13,108View on GitHub↗

    Nock is a Node.js HTTP mocking library used to intercept outgoing network requests and return predefined responses. It functions as a network request interceptor and HTTP mock server, allowing developers to simulate external API behavior for automated testing without making live network calls. The project includes an API fixture recorder to capture real network interactions and save them as reusable data files for playback. It also features a network latency simulator that introduces artificial delays to outgoing HTTP responses to verify timeout handling and race conditions. The library prov

    JavaScript
    View on GitHub↗13,108
  • ctimmerm/axios-mock-adapterctimmerm avatar

    ctimmerm/axios-mock-adapter

    3,544View on GitHub↗

    This library provides a utility for intercepting and simulating HTTP requests within the Axios ecosystem. It functions as an HTTP request interceptor that allows developers to define mock responses for outgoing network traffic, enabling frontend integration testing and development without requiring live backend infrastructure. The tool distinguishes itself by offering granular control over the request lifecycle, including the ability to match specific request patterns and forward unmatched traffic to actual destinations. It supports the simulation of unstable network environments by injecting

    JavaScriptaxiosjavascriptmock
    View on GitHub↗3,544
  • alisoftware/ohhttpstubsAliSoftware avatar

    AliSoftware/OHHTTPStubs

    5,068View on GitHub↗

    OHHTTPStubs is an HTTP network mocking library and request interceptor used to simulate server responses for testing application behavior without a live backend. It functions as a network request stubbing tool that captures outgoing network calls and replaces them with predefined mock data, custom status codes, and headers. The library distinguishes itself through its ability to simulate a wide range of network conditions, including artificial latency and connection failures. It supports dynamic response sequencing, allowing the tool to return a series of different responses for the same requ

    Objective-Ciosmockmock-server
    View on GitHub↗5,068
See all 30 alternatives to Pollyjs→

Frequently asked questions

What does netflix/pollyjs do?

Pollyjs is an HTTP mocking and recording library designed to capture and replay network interactions to create deterministic tests. It functions as a request interceptor and stubbing framework that records real API responses into files, ensuring consistent test results across different environments without relying on live network servers.

What are the main features of netflix/pollyjs?

The main features of netflix/pollyjs are: HTTP Mocking Libraries, HTTP Response Stubbing, API and Network Testing, HTTP Interaction Recording, Integration Test Suites, HTTP Stubbing Frameworks, HTTP Mocking, HTTP Request Interceptors.

What are some open-source alternatives to netflix/pollyjs?

Open-source alternatives to netflix/pollyjs include: nock/nock — nock is a Node.js HTTP mocking library and request interceptor. It captures outgoing network traffic to specific hosts… ctimmerm/axios-mock-adapter — This library provides a utility for intercepting and simulating HTTP requests within the Axios ecosystem. It functions… pgte/nock — Nock is a Node.js HTTP mocking library used to intercept outgoing network requests and return predefined responses. It… alisoftware/ohhttpstubs — OHHTTPStubs is an HTTP network mocking library and request interceptor used to simulate server responses for testing… axios/axios — Axios is an isomorphic, promise-based HTTP client designed for making asynchronous network requests across different… sindresorhus/got — Got is a promise-based HTTP request library for Node.js that supports HTTP/2 and streaming. It provides a system for…