3 releases

Uses new Rust 2024

0.1.2 May 5, 2025
0.1.1 May 5, 2025
0.1.0 May 4, 2025

#404 in Command line utilities

Download history 336/week @ 2025-05-02 65/week @ 2025-05-09

401 downloads per month

Apache-2.0

185KB
449 lines

Replay

ci downloads crates

This tool acts as a transparent HTTP proxy that intercepts and records all incoming and outgoing requests and responses. You can later replay these captured interactions to mock the real API without needing live network access โ€” ideal for:

  • End-to-end tests
  • CI environments
  • Offline development
  • Contract testing

Preview

๐Ÿšš Installation

cargo-binstall replay

โœจ Features

  • ๐Ÿงฒ Record HTTP traffic in real time
  • ๐Ÿงช Replay and mock previously recorded requests
  • ๐Ÿ› ๏ธ Supports REST, GraphQL, and any HTTP-based API
  • ๐Ÿ“ฆ Store interactions locally
  • โšก Fast and lightweight proxy implementation

๐Ÿ”ง Example Use Case

  1. Run your app through the proxy once to record real API interactions.
  2. Save the recorded sessions.
  3. Switch to mock mode for testing โ€” no real API calls needed.

Dependencies

~18โ€“32MB
~518K SLoC