{"id":50320580,"url":"https://github.com/fetch-kit/chaos-proxy","last_synced_at":"2026-05-29T03:04:45.555Z","repository":{"id":315679263,"uuid":"1060460213","full_name":"fetch-kit/chaos-proxy","owner":"fetch-kit","description":"Proxy for injecting network chaos (latency, failures, drops, rate-limiting) into API requests.","archived":false,"fork":false,"pushed_at":"2026-04-20T01:08:31.000Z","size":214,"stargazers_count":21,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-20T03:13:19.947Z","etag":null,"topics":["chaos-testing","javascript","reliability","testing","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fetch-kit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["gkoos"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-09-20T00:43:03.000Z","updated_at":"2026-04-20T01:08:01.000Z","dependencies_parsed_at":"2025-09-25T00:28:28.019Z","dependency_job_id":null,"html_url":"https://github.com/fetch-kit/chaos-proxy","commit_stats":null,"previous_names":["gkoos/chaos-proxy","fetch-kit/chaos-proxy"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/fetch-kit/chaos-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-kit%2Fchaos-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-kit%2Fchaos-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-kit%2Fchaos-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-kit%2Fchaos-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fetch-kit","download_url":"https://codeload.github.com/fetch-kit/chaos-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-kit%2Fchaos-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33634615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chaos-testing","javascript","reliability","testing","typescript"],"created_at":"2026-05-29T03:04:45.495Z","updated_at":"2026-05-29T03:04:45.549Z","avatar_url":"https://github.com/fetch-kit.png","language":"TypeScript","funding_links":["https://github.com/sponsors/gkoos"],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/chaos-proxy)](https://www.npmjs.com/package/chaos-proxy)\n[![Downloads](https://img.shields.io/npm/dm/chaos-proxy)](https://www.npmjs.com/package/chaos-proxy)\n[![GitHub stars](https://img.shields.io/github/stars/gkoos/chaos-proxy?style=social)](https://github.com/gkoos/chaos-proxy)\n[![Build](https://github.com/gkoos/chaos-proxy/actions/workflows/ci.yaml/badge.svg)](https://github.com/gkoos/chaos-proxy/actions)\n[![codecov](https://codecov.io/gh/gkoos/chaos-proxy/branch/main/graph/badge.svg)](https://codecov.io/gh/gkoos/chaos-proxy)\n\n# Chaos Proxy\n\nChaos Proxy is a proxy server for injecting configurable network chaos (latency, failures, connection drops, rate-limiting, and transforms) into HTTP traffic.\n\nUse it via CLI or programmatically with ordered middleware chains (global and per-route).\n\n## Features\n\n- YAML-based config with runtime reload support\n- Built-in middleware primitives for latency, errors, drops, limits, throttling, and transforms\n- Route matching by method and path\n- Optional OpenTelemetry tracing export\n- Extensible middleware registry\n\n## Installation\n\n```bash\nnpm install chaos-proxy\n```\n\n## Quick Start\n\n### CLI\n\n```bash\nnpx chaos-proxy --config chaos.yaml [--verbose]\n```\n\n### Programmatic API\n\n```ts\nimport { loadConfig, startServer } from 'chaos-proxy';\n\nconst cfg = loadConfig('chaos.yaml'); // port comes from chaos.yaml\nconst server = await startServer(cfg);\n\n// ...run your traffic through http://localhost:5000 (or whatever port is set in chaos.yaml)\n\nawait server.close();\n```\n\n### Minimal Config\n\n```yaml\ntarget: \"http://localhost:4000\"\nport: 5000\nglobal:\n  - latency: 100\n```\n\n## Documentation\n\nDetailed guides live in [docs/index.md](./docs/index.md):\n\n- [Chaos middlewares](./docs/chaos-middlewares.md)\n- [Observability](./docs/observability.md)\n- [Hot reload](./docs/hot-reload.md)\n- [Examples](./docs/examples.md)\n\n## Presets\n\nReady-made chaos bundles are available in [presets](./presets):\n\n- [mobile-3g.yaml](./presets/mobile-3g.yaml)\n- [flaky-backend.yaml](./presets/flaky-backend.yaml)\n- [burst-errors.yaml](./presets/burst-errors.yaml)\n- [timeout-storm.yaml](./presets/timeout-storm.yaml)\n\n## Runtime Reload\n\nChaos Proxy supports runtime config reload via `POST /reload`. See [docs/hot-reload.md](./docs/hot-reload.md) for full details.\n\n## Join the Community\n\nHave questions, want to discuss features, or share examples? Join the Fetch-Kit Discord server:\n\n[![Discord](https://img.shields.io/badge/Discord-Join_Fetch--Kit-7289DA?logo=discord\u0026logoColor=white)](https://discord.gg/sdyPBPCDUg)\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetch-kit%2Fchaos-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffetch-kit%2Fchaos-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetch-kit%2Fchaos-proxy/lists"}