{"id":28864645,"url":"https://github.com/andresribeiro/latency-insights","last_synced_at":"2025-08-11T09:16:50.818Z","repository":{"id":296574208,"uuid":"993841042","full_name":"andresribeiro/latency-insights","owner":"andresribeiro","description":"Understand the impact of network latency on user experience","archived":false,"fork":false,"pushed_at":"2025-05-31T19:39:32.000Z","size":49,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-20T09:09:43.502Z","etag":null,"topics":["dns","http","network","networking","tcp","tls","udp","websocket","websockets"],"latest_commit_sha":null,"homepage":"https://latency-insights.b-cdn.net/","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/andresribeiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2025-05-31T16:30:19.000Z","updated_at":"2025-06-18T20:02:57.000Z","dependencies_parsed_at":"2025-06-01T04:58:16.993Z","dependency_job_id":"0679104b-b875-4b28-bf53-2becaf2d1dbd","html_url":"https://github.com/andresribeiro/latency-insights","commit_stats":null,"previous_names":["andresribeiro/latency-insights"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andresribeiro/latency-insights","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresribeiro%2Flatency-insights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresribeiro%2Flatency-insights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresribeiro%2Flatency-insights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresribeiro%2Flatency-insights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andresribeiro","download_url":"https://codeload.github.com/andresribeiro/latency-insights/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andresribeiro%2Flatency-insights/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269857731,"owners_count":24486396,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"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":["dns","http","network","networking","tcp","tls","udp","websocket","websockets"],"created_at":"2025-06-20T09:09:40.795Z","updated_at":"2025-08-11T09:16:50.808Z","avatar_url":"https://github.com/andresribeiro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Latency Insights for Developers 👩‍💻\n\nThis project is a web-based tool designed to help developers understand the impact of network latency on user experience. It simulates different network conditions to demonstrate how varying round-trip times (RTT) affect real-time communication (chat) and HTTP request loading times.\n\n## Features\n\n- **Simulated Latency:** Choose from a range of predefined latency values (50ms to 1000ms) to observe their effects.\n- **Real-time Chat Simulation:** Experience how latency impacts the responsiveness of a two-way chat between \\\"Alice\\\" and \\\"Bob.\\\" Messages are delayed based on the selected RTT.\n- **Simulated HTTP Request Loading:** See a breakdown of a simulated HTTP request's load time, including network RTT, DNS lookup, TCP handshake, TLS handshake, and server processing.\n- **Fake Tweets Loading:** Load a list of \\\"tech tweets\\\" with a delay that reflects the simulated HTTP load time, demonstrating how content delivery is affected by latency.\n\n## How it Works\nThe application uses `setTimeout` to simulate network delays.\n- **Chat:** When a message is sent, it's immediately displayed on the sender's side, but a delayed `setTimeout` is used to display it on the receiver's side, mimicking network propagation.\n- **HTTP Request:** The \\\"Load Tweets\\\" button triggers a `setTimeout` that accounts for the specified network latency, along with values for DNS, TCP, TLS, and server processing, before displaying the \\\"tweets.\\\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandresribeiro%2Flatency-insights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandresribeiro%2Flatency-insights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandresribeiro%2Flatency-insights/lists"}