{"id":17681268,"url":"https://github.com/hugopl/delay-proxy","last_synced_at":"2025-06-16T23:02:28.810Z","repository":{"id":222723012,"uuid":"756032191","full_name":"hugopl/delay-proxy","owner":"hugopl","description":"A TCP proxy that adds a configurable amount of delay.","archived":false,"fork":false,"pushed_at":"2024-02-24T00:03:45.000Z","size":6,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-16T23:02:27.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/hugopl.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},"funding":{"github":"hugopl"}},"created_at":"2024-02-11T19:31:14.000Z","updated_at":"2025-05-12T05:15:21.000Z","dependencies_parsed_at":"2024-10-24T10:56:05.532Z","dependency_job_id":"8a4ee408-e91d-4a3f-b8c6-9b54a3b9bd2d","html_url":"https://github.com/hugopl/delay-proxy","commit_stats":null,"previous_names":["hugopl/delay-proxy"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hugopl/delay-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugopl%2Fdelay-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugopl%2Fdelay-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugopl%2Fdelay-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugopl%2Fdelay-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugopl","download_url":"https://codeload.github.com/hugopl/delay-proxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugopl%2Fdelay-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260256240,"owners_count":22981805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-24T09:10:41.034Z","updated_at":"2025-06-16T23:02:28.782Z","avatar_url":"https://github.com/hugopl.png","language":"Crystal","readme":"# 🦥️ delay-proxy\n\nA TCP proxy that adds a configurable amount of delay.\n\nA simple way to simulate services behind slow networks locally.\n\n## Installation\n\nCompile it and manually install, it's just a single executable.\n\nFirst install the [crystal language compiler](https://crystal-lang.org/install/), then:\n\n```\ngit clone github.com/hugopl/delay-proxy.git\ncd delay-proxy\ncrystal build --release src/main.cr -o bin/delay-proxy\n```\n\nThen copy `bin/delay-proxy` to whatever you want, e.g. `/usr/bin/`.\n\n\n## Usage 🖥️↔️🦥️↔️💻️\n\nSuppose you want to simulate a redis-server behind a slow connection:\n\nStart the redis-server in some terminal.\n\n```\nredis-server\n```\n\nNow start the delay-proxy\n\n```\ndelay-proxy :6379\n```\n\nIt will open the port 1234 and redirect all data to port 6369 with a delay of 200±10%ms\n\nNow open redis-cli in yet another terminal\n\n```\nredis-cli -p 1234\n```\n\nAll commands should work, but with a delay in the response.\n```\n127.0.0.1:1234\u003e ping\nPONG\n127.0.0.1:1234\u003e\n```\n\nOn delay-proxy terminal you see\n```\nListening port 1234 and redirecting to localhost:6379 after 200ms...\nClient connected to proxy\nProxy connected to target\n-\u003e 27 bytes ⌛213ms\n\u003c- 49920 bytes ⌛205ms\n\u003c- 116160 bytes ⌛195ms\n\u003c- 39125 bytes ⌛201ms\n-\u003e 14 bytes ⌛215ms\n\u003c- 7 bytes ⌛193ms\n```\n\nThe complete command without using the defaults is:\n\n```\ndelay-proxy localhost:6379 1234 200\n```\n\n## Development\n\nSuggestions, open an issue.\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/hugopl/delay-proxy/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Hugo Parente Lima](https://github.com/hugopl) - creator and maintainer\n","funding_links":["https://github.com/sponsors/hugopl"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugopl%2Fdelay-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugopl%2Fdelay-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugopl%2Fdelay-proxy/lists"}