{"id":50320631,"url":"https://github.com/fetch-kit/ffetch-demo","last_synced_at":"2026-05-29T03:04:49.820Z","repository":{"id":350327769,"uuid":"1201950177","full_name":"fetch-kit/ffetch-demo","owner":"fetch-kit","description":"HTTP client reliability benchmark under chaos conditions","archived":false,"fork":false,"pushed_at":"2026-04-17T19:32:57.000Z","size":113,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-17T20:20:50.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fetch-kit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2026-04-05T11:42:24.000Z","updated_at":"2026-04-17T19:33:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fetch-kit/ffetch-demo","commit_stats":null,"previous_names":["fetch-kit/ffetch-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fetch-kit/ffetch-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-kit%2Fffetch-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-kit%2Fffetch-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-kit%2Fffetch-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-kit%2Fffetch-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fetch-kit","download_url":"https://codeload.github.com/fetch-kit/ffetch-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetch-kit%2Fffetch-demo/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":[],"created_at":"2026-05-29T03:04:49.675Z","updated_at":"2026-05-29T03:04:49.800Z","avatar_url":"https://github.com/fetch-kit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ffetch-demo\n\nFrontend-only arena demo to benchmark and compare reliability of HTTP clients under identical chaos conditions:\n\n- native `fetch`\n- `axios`\n- `ky`\n- `ffetch`\n\nThe app wraps requests with chaos rules (latency, random failures, rate limiting) and runs a repeatable workload against a test endpoint, measuring reliability scores, latency, and error patterns side-by-side.\n\n## Run\n\n1. Install dependencies\n   ```\n   npm install\n   ```\n2. Start dev server\n   ```\n   npm run dev\n   ```\n3. Open `index.html` in your browser (served at http://localhost:5173 by default)\n\n## Features\n\n- **Responsive UI** with preset scenarios and real-time progress\n- **Chaos controls**: latency range, random failures, rate limiting, throttling\n- **Client configuration**: independent timeout, retry, and plugin settings per client\n  - **ffetch plugins**: dedupe (collapse in-flight requests), circuit (fail-fast protection), hedge (race backup requests for tail-latency reduction)\n- **Run comparison**: side-by-side reliability score, error distribution, and latency metrics\n\n## What's Measured\n\n- **Reliability Score**: weighted metric accounting for success rate, timeouts, and tail latency\n- **Error Distribution**: breakdown by status code and error type\n- **Latency Percentiles**: p50, p95, and p99 response times\n- **Latency Samples**: count of latency measurements used for percentile calculation\n- **Error Rate**: percentage of requests that failed (non-2xx, timeouts, thrown errors)\n- **Throughput**: requests per second\n- **Attempt Tracking**: total transport attempts (including retries and hedge attempts)\n\n## Notes\n\n- Requested concurrency is a target, but browsers apply their own connection pooling limits (~6 per origin)\n- Chaos is applied at the transport layer, before client libraries handle retries\n- Each run is fully isolated—transport stats are per-client and don't carry over\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetch-kit%2Fffetch-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffetch-kit%2Fffetch-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetch-kit%2Fffetch-demo/lists"}