{"id":32887072,"url":"https://github.com/rajsinghtech/tailperf","last_synced_at":"2026-05-18T07:32:53.741Z","repository":{"id":323123144,"uuid":"1092197694","full_name":"rajsinghtech/tailperf","owner":"rajsinghtech","description":"Capture network performance over tailscale","archived":false,"fork":false,"pushed_at":"2025-11-08T07:18:35.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-08T09:10:33.067Z","etag":null,"topics":["tailscale"],"latest_commit_sha":null,"homepage":"","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/rajsinghtech.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-08T07:07:33.000Z","updated_at":"2025-11-08T07:18:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rajsinghtech/tailperf","commit_stats":null,"previous_names":["rajsinghtech/tailperf"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rajsinghtech/tailperf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajsinghtech%2Ftailperf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajsinghtech%2Ftailperf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajsinghtech%2Ftailperf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajsinghtech%2Ftailperf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajsinghtech","download_url":"https://codeload.github.com/rajsinghtech/tailperf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajsinghtech%2Ftailperf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33169241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"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":["tailscale"],"created_at":"2025-11-09T22:00:24.253Z","updated_at":"2026-05-18T07:32:53.736Z","avatar_url":"https://github.com/rajsinghtech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tailperf\n\nNetwork performance testing tool for Tailscale networks. Monitors latency, throughput, and connection types between nodes.\n\n## Modes\n\n- **Server Mode** (`-server`): Standalone Tailscale node that listens for performance tests\n- **Client Mode** (default): Uses your existing Tailscale connection to test servers\n- **Tsnet Client Mode** (`-client`): Standalone Tailscale client node for testing\n\n## Features\n\n- Continuous performance monitoring at configurable intervals\n- Connection type detection (direct, DERP, peer-relay)\n- Latency measurement via Tailscale's ping API\n- TCP throughput testing\n- No client configuration needed\n\n## Quick Start\n\n### Binary\n\n```bash\ngo build -o tailperf\n```\n\n### Docker\n\nServer mode:\n```bash\ndocker run -d \\\n  --name tailperf-server \\\n  -e TAILPERF_AUTHKEY=tskey-auth-xxxxx \\\n  -e TAILPERF_HOSTNAME=tailperf-server \\\n  -e TAILPERF_STATE_DIR=/var/lib/tailperf \\\n  -v tailperf-data:/var/lib/tailperf \\\n  ghcr.io/rajsinghtech/tailperf:latest -server\n```\n\nClient mode (tsnet):\n```bash\ndocker run -d \\\n  --name tailperf-client \\\n  -e TAILPERF_AUTHKEY=tskey-auth-xxxxx \\\n  -e TAILPERF_HOSTNAME=tailperf-client \\\n  -e TAILPERF_STATE_DIR=/var/lib/tailperf \\\n  -v tailperf-client-data:/var/lib/tailperf \\\n  ghcr.io/rajsinghtech/tailperf:latest -client -interval=20s -duration=5s\n```\n\n## Usage\n\n### Server Mode\n\n```bash\n./tailperf -server -authkey=tskey-auth-xxx...\n```\n\nCreates a standalone Tailscale node and listens on port 9898 for performance tests.\n\n### Client Mode (Default)\n\n```bash\n./tailperf\n```\n\nUses your existing Tailscale connection to test servers. No auth key needed.\n\n### Tsnet Client Mode\n\n```bash\n./tailperf -client -authkey=tskey-auth-xxx...\n```\n\nCreates a standalone Tailscale client node. Useful for machines without Tailscale installed.\n\n### Configuration\n\nSupports both command-line flags and environment variables:\n\n| Flag | Environment Variable | Default | Description |\n|------|---------------------|---------|-------------|\n| `-server` | - | false | Run in server mode |\n| `-client` | - | false | Run in tsnet client mode |\n| `-authkey` | `TAILPERF_AUTHKEY` | - | Tailscale auth key (required for server/client modes) |\n| `-hostname` | `TAILPERF_HOSTNAME` | `tailperf-\u003cpid\u003e` | Custom hostname |\n| `-state` | `TAILPERF_STATE_DIR` | `~/.tailperf/\u003chostname\u003e` | State directory |\n| `-interval` | - | 30s | Test interval |\n| `-duration` | - | 10s | Test duration |\n| `-filter` | `TAILPERF_FILTER` | tailperf | Only test peers with this substring in hostname |\n| `-target` | `TAILPERF_TARGET` | - | Test only this specific peer (exact match, overrides `-filter`) |\n\n## Example Output\n\n```\n=== Performance Test Results (2025-01-08 10:30:45) ===\n\nPeer: tailperf-server-1 (100.64.0.2)\n  Connection: direct - direct to 192.168.1.100:41641 (5.23ms)\n  Latency: 5.23 ms\n  Throughput: 3692.80 Mbps\n\nPeer: tailperf-server-2 (100.64.0.3)\n  Connection: derp - derp-nyc (25.45ms)\n  Latency: 25.45 ms\n  Throughput: 234.56 Mbps\n\n---\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajsinghtech%2Ftailperf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajsinghtech%2Ftailperf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajsinghtech%2Ftailperf/lists"}