Shopify

    Shopify/toxiproxy

    :alarm_clock: :fire: A TCP proxy to simulate network and system conditions for chaos and resiliency testing

    networking
    testing
    chaos
    down
    go
    is
    omg
    Go
    MIT
    12.5K stars
    519 forks
    12.5K GitHub watchers
    Updated Oct 31, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    1 release in the last 90 days, the latest 17 days ago, with 78 contributors on GitHub.

    Gained 26% more stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Simulates network and system conditions by acting as a TCP proxy to enable chaos and resiliency testing.
    • Provides a dynamic, cross-platform API for deterministic and randomized network tampering without requiring root access.
    • Use for testing application resilience by simulating latency, bandwidth limits, and connection failures in development and CI environments.
    • Use for integration testing of distributed systems by injecting network faults like timeouts and TCP resets to validate fault tolerance.
    • Use for debugging and validating error handling in client-server applications by controlling upstream and downstream network behavior programmatically.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Toxiproxy is a framework for simulating network conditions. It's made specifically to work in testing, CI and development environments, supporting deterministic tampering with connections, but with support for randomized chaos and customization. Toxiproxy is the tool you need to prove with tests that your application doesn't have single points of failure. We've been successfully using it in all development and test environments at Shopify since October, 2014. See our blog post on resiliency for more information.

    Toxiproxy usage consists of two parts. A TCP proxy written in Go (what this repository contains) and a client communicating with the proxy over HTTP. You configure your application to make all test connections go through Toxiproxy and can then manipulate their health via HTTP. See Usage below on how to set up your project.

    For example, to add 1000ms of latency to the response of MySQL from the Ruby client:

    While the examples in this README are currently in Ruby, there's nothing stopping you from creating a client in any other language (see Clients).

    The existing ones we found didn't provide the kind of dynamic API we needed for integration and unit testing. Linux tools like nc and so on are not cross-platform and require root, which makes them problematic in test, development and CI environments.

    Excerpt from the Shopify/toxiproxy README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    519+12

    Open issues

    92-12

    Compared with peers in Networking

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    Shopify/toxiproxy compared with Networking repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    superdesigndev/treg7.2K+65645—
    MHSanaei/3x-ui49.4K+52253134 days ago
    netbirdio/netbird30.7K+399657 days ago
    tailscale/tailscale38.7K+378653 days ago
    caddyserver/caddy78.8K+267601 day ago
    Shopify/toxiproxy12.5K—5917 days ago
    Category median38.7K+39960—

    Also by Shopify

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description