{"id":26493891,"url":"https://github.com/ableinc/myip","last_synced_at":"2026-05-20T10:40:54.161Z","repository":{"id":282723760,"uuid":"899751807","full_name":"ableinc/myip","owner":"ableinc","description":"Fetch your public IPv4 or IPv6 address from the command line","archived":false,"fork":false,"pushed_at":"2025-03-16T14:39:07.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T15:28:09.416Z","etag":null,"topics":["command-line","go","golang","ip","ip-address","ip-address-lookup","ip-lookup","terminal"],"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/ableinc.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":"2024-12-06T23:51:16.000Z","updated_at":"2025-03-16T14:35:44.000Z","dependencies_parsed_at":"2025-03-16T15:41:04.939Z","dependency_job_id":null,"html_url":"https://github.com/ableinc/myip","commit_stats":null,"previous_names":["ableinc/myip"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Fmyip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Fmyip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Fmyip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Fmyip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ableinc","download_url":"https://codeload.github.com/ableinc/myip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244591450,"owners_count":20477709,"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":["command-line","go","golang","ip","ip-address","ip-address-lookup","ip-lookup","terminal"],"created_at":"2025-03-20T09:57:46.981Z","updated_at":"2026-05-20T10:40:54.155Z","avatar_url":"https://github.com/ableinc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# myip\n\nA fast CLI tool that shows your public IP address along with optional geolocation details and local weather — powered by [Cloudflare Radar](https://radar.cloudflare.com) and [Open-Meteo](https://open-meteo.com).\n\n## Requirements\n\n- Go 1.23+\n\n## Build\n\n```bash\ngit clone \u003crepo\u003e\ncd myip\nmake build\n```\n\nThe binary is written to `./myip`. Move it somewhere on your `$PATH`:\n\n```bash\nmv myip ~/.local/bin/\n```\n\nTo build a specific version:\n\n```bash\nmake build VERSION=1.0.0\n```\n\nThe `-w -s` ldflags are applied by default (strips debug info for a smaller binary).\n\n## Add to PATH\n\n```zsh\nexport PATH=\"$HOME/.local/bin:$PATH\"\n```\n\n## Usage\n\n```\nmyip [flags]\n```\n\n| Flag | Description |\n|---|---|\n| `--detail` | Show full IP geolocation info (city, region, country, ASN, colo, …) |\n| `--weather` | Show current weather at your detected IP location |\n| `--local` | Show the computer's local IPv4 and IPv6 addresses (cannot be combined with `--detail`, `--weather`, `--unit`, or `--no-cache`) |\n| `--json` | Output as pretty-printed JSON (modifier for `--detail`, `--weather`, or `--local`) |\n| `--unit` | Temperature unit for `--weather`: `celsius` or `fahrenheit` (auto-detected for US and a few other countries) |\n| `--no-cache` | Bypass the local cache — always fetch fresh data |\n| `--help` | Show help and version |\n\n### Examples\n\n```bash\n# Print your public IP address (default)\nmyip\n\n# Full IP geolocation table\nmyip --detail\n\n# Current weather at your location\nmyip --weather\n\n# Both tables combined\nmyip --detail --weather\n\n# IP info as JSON\nmyip --detail --json\n\n# Combined JSON output\nmyip --detail --weather --json\n\n# Skip cache, fetch fresh\nmyip --no-cache\n\n# Force Fahrenheit\nmyip --weather --unit fahrenheit\n\n# Force Celsius\nmyip --weather --unit celsius\n\n# Show local IPv4 / IPv6 addresses\nmyip --local\n\n# Local addresses as JSON\nmyip --local --json\n```\n\n## Cache\n\nIP geolocation results are cached at `~/.myip/cache` for **30 minutes**. Use `--no-cache` to bypass reading from and writing to the cache.\n\n## Make targets\n\n| Target | Description |\n|---|---|\n| `make build` | Build the binary (default) |\n| `make tidy` | Tidy Go module dependencies |\n| `make lint` | Run `go vet` |\n| `make staticcheck` | Run [staticcheck](https://staticcheck.io) — install with `go install honnef.co/go/tools/cmd/staticcheck@latest` |\n| `make security` | Run [govulncheck](https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck) — install with `go install golang.org/x/vuln/cmd/govulncheck@latest` |\n| `make version` | Print the current version |\n\n## Data sources\n\n- **IP info** — `https://ipv4-check-perf.radar.cloudflare.com/api/info`\n- **Weather** — `https://api.open-meteo.com` (no API key required)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fableinc%2Fmyip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fableinc%2Fmyip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fableinc%2Fmyip/lists"}