{"id":21866888,"url":"https://github.com/rootmos/syrup","last_synced_at":"2026-04-24T22:35:40.715Z","repository":{"id":82434387,"uuid":"46034044","full_name":"rootmos/syrup","owner":"rootmos","description":"Syrup is a utility for simulating degraded network conditions such as latency and flaky connections","archived":false,"fork":false,"pushed_at":"2015-11-26T08:00:09.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-17T22:04:30.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Erlang","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/rootmos.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}},"created_at":"2015-11-12T06:27:54.000Z","updated_at":"2015-11-21T13:07:39.000Z","dependencies_parsed_at":"2023-03-10T11:30:23.925Z","dependency_job_id":null,"html_url":"https://github.com/rootmos/syrup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rootmos/syrup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fsyrup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fsyrup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fsyrup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fsyrup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rootmos","download_url":"https://codeload.github.com/rootmos/syrup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rootmos%2Fsyrup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-28T05:07:48.618Z","updated_at":"2026-04-24T22:35:40.701Z","avatar_url":"https://github.com/rootmos.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"Syrup\n=====\n[![Build Status](https://travis-ci.org/rootmos/syrup.svg)](https://travis-ci.org/rootmos/syrup)\n\nSyrup is a utility for simulating degraded network conditions such as\nlatency and flaky connections. Basically, it's just a glorified port-forwarder\nwith some extra logic to put throw a monkey wrench into the connection.\n\nSyrup is build using [Erlang](http://www.erlang.org) with [Ranch](https://github.com/ninenines/ranch)\nand [Cowboy](https://github.com/ninenines/cowboy).\nIt's distributed using [Docker](http://docker.io), the image can be found\n[here](https://hub.docker.com/r/rootmos/syrup).\n\nInstallation\n============\nThere's two ways to install Syrup:\n* Automagic using [Docker](http://docker.io), or\n* Manual building (requires an [Erlang](http://www.erlang.org) environment)\n\n## Installation with Docker\nThe [syrup](https://github.com/rootmos/syrup/blob/master/syrup) script can\nautomagically pull the [image](https://hub.docker.com/r/rootmos/syrup) for you,\nso all you need to do is:\n\n```bash\n$ wget https://raw.githubusercontent.com/rootmos/syrup/master/syrup\n$ chmod +x syrup\n```\n\n## Manual installation\nThe manual building requires:\n* [Erlang](http://www.erlang.org) and\n* [rebar](https://github.com/rebar/rebar)\n\nIf these prerequisites are met, then the building should be as easy as:\n```bash\n$ git pull https://github.com/rootmos/syrup\n$ cd syrup\n$ make\n```\nThe `syrup` directory should contain a built distribution in the `rel/syrup`\ndirectory, which will be detected by the `syrup` script (located in the\nrepository root).\n\n\nUsage\n=====\nSyrup is controlled by using the [syrup](https://github.com/rootmos/syrup/blob/master/syrup) script.\n**Note** that you might need to run it as `./syrup` (unless you put in it your `PATH`) and it might also require `sudo` (if you want to use Docker).\n\n```bash\n$ syrup start\n\n$ syrup ping\npong\n\n$syrup stop\n```\n\nTo add a port-forwarding from localhost:6001 to localhost:5001, call:\n```bash\n$ syrup add -f 6001 -t 5001\n```\nIf you want to forward to another address use the `-h` option:\n```bash\n$ syrup add -f 6001 -h 192.168.0.7 -t 5001\n```\nIf you want to add some latency to the connection use the `-l` option:\n```bash\n$ syrup add -f 6001 -t 5001 -l 200\n```\n\nTo remove a port-forwarding:\n```bash\n$ syrup rm 6001\n```\n\nExample\n=======\nHere's an example session using [iperf](http://sourceforge.net/projects/iperf2):\n\nIn one shell start iperf's server:\n```bash\n$ iperf -s -p 5001\n------------------------------------------------------------\nServer listening on TCP port 5001\nTCP window size: 85.3 KByte (default)\n------------------------------------------------------------\n```\n\nThen in another shell run the client:\n```\n$ syrup start\n\n$ syrup add -f 6001 -t 5001\n\n$ iperf -c localhost -p 6001\n------------------------------------------------------------\nClient connecting to localhost, TCP port 6001\nTCP window size: 2.50 MByte (default)\n------------------------------------------------------------\n[  3] local 127.0.0.1 port 57840 connected with 127.0.0.1 port 6001\n[ ID] Interval       Transfer     Bandwidth\n[  3]  0.0-10.0 sec  25.7 GBytes  22.1 Gbits/sec\n\n$ syrup stop\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootmos%2Fsyrup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frootmos%2Fsyrup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frootmos%2Fsyrup/lists"}