{"id":19364531,"url":"https://github.com/math2001/pinggrapher","last_synced_at":"2026-04-21T10:04:37.676Z","repository":{"id":74806910,"uuid":"144423198","full_name":"math2001/pinggrapher","owner":"math2001","description":"A nice little utility to graph my pings","archived":false,"fork":false,"pushed_at":"2019-02-10T23:21:31.000Z","size":74,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T13:13:39.716Z","etag":null,"topics":["chartjs","golang","js"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/math2001.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}},"created_at":"2018-08-11T22:56:47.000Z","updated_at":"2018-11-23T16:04:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ff773e9-2332-4a8b-ab97-bcdb32778a46","html_url":"https://github.com/math2001/pinggrapher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/math2001/pinggrapher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fpinggrapher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fpinggrapher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fpinggrapher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fpinggrapher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/math2001","download_url":"https://codeload.github.com/math2001/pinggrapher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Fpinggrapher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285043892,"owners_count":27105357,"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-11-18T02:00:05.759Z","response_time":61,"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":["chartjs","golang","js"],"created_at":"2024-11-10T07:37:39.729Z","updated_at":"2025-11-18T10:03:54.436Z","avatar_url":"https://github.com/math2001.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ping graph\n\nGraph pings in your browser. All it does is great a web server that reads number\nfrom the stdout, writes them to a file and every *{delay}* seconds, sends nice\nstatistics to the client (through websockets).\n\n## Why\n\nBecause my laptop (which I put under Linux) is quite slow (not because of Linux,\nbut it just so old). So, with my desktop computer (that's under windows), I use\nit as a sort of web server, where I do all of my dev from. The problem being\nthat when our router started to get slow for some reason (500ms ping), using ssh\nwas somewhat annoying. So, I made this little thing to try to find some patterns\nand find the culprit on our local network :smile:\n\n## Example\n\nFor now, you have to use a separate utility that pings for you (the `awk`\ncommand is just used to filter everything out and just print the milliseconds)\n\n```sh\n$ ping 192.168.0.1 | awk  '/from/ { split($7, resArr, \"=\"); print resArr[2] }' | pinggrapher\n```\n\nAnd if you let it run long enough, you should get something that hopefully has\nless bars than this:\n\n![ping graph sample](./pinggrapher.png)\n\n## Options\n\n```\npinggrapher -help\n```\n\n## What's it made of?\n\nA Go file which act as the web server, with [ws](https://github.com/gobwas/ws)\nfor the web socket, and some vanilla JavaScript on the front end, with\n[Chart.js](https://github.com/chartjs) for the nice graphs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath2001%2Fpinggrapher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmath2001%2Fpinggrapher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath2001%2Fpinggrapher/lists"}