{"id":28962743,"url":"https://github.com/c0d3cr4ft3r/pingstats","last_synced_at":"2025-06-24T03:11:57.146Z","repository":{"id":300565768,"uuid":"1006115987","full_name":"c0d3cr4ft3r/pingstats","owner":"c0d3cr4ft3r","description":"Rust-powered network diagnostics tool that combines multiple utilities—ping, traceroute, CSV export, and a TUI visualizer—into a single modern CLI app.","archived":false,"fork":false,"pushed_at":"2025-06-22T11:05:14.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-22T12:38:03.404Z","etag":null,"topics":["cli","icmp","network","ping","rust","traceroute","tui"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/c0d3cr4ft3r.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}},"created_at":"2025-06-21T14:28:35.000Z","updated_at":"2025-06-22T11:12:40.000Z","dependencies_parsed_at":"2025-06-22T12:48:22.145Z","dependency_job_id":null,"html_url":"https://github.com/c0d3cr4ft3r/pingstats","commit_stats":null,"previous_names":["c0d3cr4ft3r/pingstats"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c0d3cr4ft3r/pingstats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0d3cr4ft3r%2Fpingstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0d3cr4ft3r%2Fpingstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0d3cr4ft3r%2Fpingstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0d3cr4ft3r%2Fpingstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c0d3cr4ft3r","download_url":"https://codeload.github.com/c0d3cr4ft3r/pingstats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0d3cr4ft3r%2Fpingstats/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261595784,"owners_count":23182249,"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":["cli","icmp","network","ping","rust","traceroute","tui"],"created_at":"2025-06-24T03:11:56.596Z","updated_at":"2025-06-24T03:11:57.125Z","avatar_url":"https://github.com/c0d3cr4ft3r.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛰️ pingstats\n\n**pingstats** is a Rust-powered network diagnostics tool that combines multiple utilities—`ping`, `traceroute`, CSV export, and a TUI visualizer—into a single modern CLI app.\n\n---\n\n## 🔧 Features\n\n| Command      | Description                                                                       |\n| ------------ | --------------------------------------------------------------------------------- |\n| `tui`        | Live terminal UI with RTT chart and stats. Quit with `q`.                         |\n| `csv`        | Records latency data to a CSV file with timestamps.                               |\n| `compare`    | Pings multiple hosts and summarizes response time \u0026 packet loss side-by-side.     |\n| `traceroute` | ICMP-based traceroute (limited to final hop on macOS due to socket restrictions). |\n\n---\n\n## 🧪 Example Usage\n\n```bash\n# Live RTT chart for google.com\nsudo pingstats tui -H google.com\n\n# Export latency to CSV (50 pings, 1s interval)\nsudo pingstats csv -H 1.1.1.1 --count 50 --interval 1.0 --output logs/ping.csv\n\n# Compare multiple hosts\nsudo pingstats compare --hosts 1.1.1.1 --hosts 8.8.8.8 --hosts cloudflare.com\n\n# Traceroute (up to 20 hops)\nsudo pingstats traceroute -H wikipedia.org --max-hops 20\n```\n\n---\n\n## 📦 Install\n\nMake sure you have **Rust 1.87+** and admin rights (required for raw ICMP sockets).\n\n```bash\ngit clone https://github.com/c0d3cr4ft3r/pingstats.git\ncd pingstats\ncargo build --release\n```\n\nOr install globally:\n\n```bash\ncargo install --path .\n```\n\n---\n\n## ⚠ Notes\n\n- Requires **sudo** or administrator access to open raw ICMP sockets.\n- On macOS, `traceroute` only shows the final hop due to TTL limitations.\n- Uses `tokio`, `pnet`, `ratatui`, and `crossterm` under the hood.\n\n---\n\n## 📁 Project Structure\n\n```\nsrc/\n├── main.rs         # CLI entrypoint with subcommands\n├── tui.rs          # Terminal UI module (graph, live stats)\n├── csv.rs          # CSV export of ping results\n├── compare.rs      # Compare hosts RTT and loss\n├── traceroute.rs   # ICMP traceroute (simple)\n```\n\n---\n\n## 🧠 Why This Exists\n\nTo give developers and sysadmins a clean, fast, async-first tool for network diagnostics with a beautiful terminal UI and extensible subcommands.\n\n---\n\n## 📝 License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0d3cr4ft3r%2Fpingstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc0d3cr4ft3r%2Fpingstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0d3cr4ft3r%2Fpingstats/lists"}