{"id":48381142,"url":"https://github.com/theyhaveice/network","last_synced_at":"2026-04-05T20:04:24.988Z","repository":{"id":349395708,"uuid":"1202172924","full_name":"theyhaveice/network","owner":"theyhaveice","description":"A lightweight macOS command-line tool for resolving and scanning network devices.","archived":false,"fork":false,"pushed_at":"2026-04-05T18:42:14.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-05T19:22:10.372Z","etag":null,"topics":["arp","cli","dns","json","macos","mdns","network","networking","objective-cpp","xml"],"latest_commit_sha":null,"homepage":"","language":"C++","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/theyhaveice.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-05T17:36:51.000Z","updated_at":"2026-04-05T18:42:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/theyhaveice/network","commit_stats":null,"previous_names":["theyhaveice/network"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/theyhaveice/network","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyhaveice%2Fnetwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyhaveice%2Fnetwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyhaveice%2Fnetwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyhaveice%2Fnetwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theyhaveice","download_url":"https://codeload.github.com/theyhaveice/network/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theyhaveice%2Fnetwork/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31448219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["arp","cli","dns","json","macos","mdns","network","networking","objective-cpp","xml"],"created_at":"2026-04-05T20:04:05.182Z","updated_at":"2026-04-05T20:04:24.983Z","avatar_url":"https://github.com/theyhaveice.png","language":"C++","readme":"# network\n\nA lightweight macOS command-line tool for resolving and scanning network devices. Query a single IP, sweep a subnet, or inspect your own machine — with output in plain text, JSON, or XML.\n\n---\n\n## Table of Contents\n\n- [About](#about)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Commands](#commands)\n  - [Flags](#flags)\n- [Examples](#examples)\n- [License](#license)\n\n---\n\n## About\n\n`network` is a C++ command-line utility for macOS that resolves detailed information about devices on your local network. Given one or more IP addresses, a CIDR subnet, or an IP range, it probes each host and returns:\n\n- **Hostname** — resolved via mDNS, ARP, NSHost, and `getnameinfo` (tried in order)\n- **IPv4 / IPv6** addresses\n- **MAC address** — from the ARP table\n- **Vendor** — looked up against a local OUI database (`arp-scan`) with a fallback to the [macvendors.com](https://macvendors.com) API\n- **TTL** — ARP expiry time\n\nResults are cached to `/tmp/network_tool_cache.tsv` for one hour to keep repeated queries fast. Non-responding devices are never written to cache.\n\nThe scanner uses a concurrent thread pool (default 64 threads) to sweep subnets quickly.\n\n\u003e **Platform:** macOS only. The tool depends on `Foundation.framework`, `dns_sd`, and macOS-specific ARP/interface APIs.\n\n---\n\n## Installation\nto install `network`. run this in `Terminal`\n```bash\ncurl -fsSL \"https://raw.githubusercontent.com/theyhaveice/network/main/install.sh\" | sudo sh\n\n# Downloading network v0.1.0...\n# network v0.1.0 installed successfully!\n# You can run it using: network\n```\n\n## Usage\n\n```\nnetwork [command] [flags]\n```\n\n### Commands\n\n| Command | Description |\n|---|---|\n| `get` | Resolve and display info for one or more IP addresses |\n| `current` | Show network info for this device |\n| `clear-cache` | Delete all cached device results |\n| `help` | Show help |\n\nRun `network [command] --help` for command-specific details.\n\n---\n\n### Flags\n\n#### `get` — Input flags\n\n| Flag | Description |\n|---|---|\n| `-ip \u003cip\u003e[,\u003cip\u003e...]` | One or more individual IP addresses |\n| `-subnet \u003cip/prefix\u003e` | All host IPs in a CIDR subnet (e.g. `192.168.1.0/24`) |\n| `-range \u003cminIp\u003e,\u003cmaxIp\u003e` | Inclusive IP range (e.g. `192.168.1.1,192.168.1.64`) |\n\n#### Output flags (all commands)\n\n| Flag | Description |\n|---|---|\n| `-o \u003cfield\u003e[,\u003cfield\u003e...]` | Fields to display: `hostname`, `ipv4`, `ipv6`, `macaddress`, `vendor`, `ttl` |\n| `--xml` | Output as XML |\n| `--json` | Output as JSON |\n\n#### Filter flags\n\n| Flag | Description |\n|---|---|\n| `--R` | Include all responding devices |\n| `--A` | Include every IP in the range, responding or not |\n\n#### Cache flags\n\n| Flag | Description |\n|---|---|\n| `--nocache` | Skip cache read/write for this run (always re-probe) |\n\n---\n\n## Examples\n\n```bash\n# Look up a single IP\nnetwork get -ip 192.168.1.1\n\n# Look up multiple IPs, showing only hostname and IPv4 as JSON\nnetwork get -ip 192.168.1.1,192.168.1.2 -o hostname,ipv4 --json\n\n# Scan a full subnet, showing all responding devices\nnetwork get -subnet 192.168.1.0/24 --R\n\n# Scan an IP range and output as XML\nnetwork get -range 192.168.1.1,192.168.1.50 --xml\n\n# Show info for the current machine\nnetwork current\n\n# Show only the current machine's MAC address and vendor\nnetwork current -o macaddress,vendor\n\n# Clear the on-disk cache\nnetwork clear-cache\n```\n\n---\n\n## License\n\nMIT License — [LICENSE](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheyhaveice%2Fnetwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheyhaveice%2Fnetwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheyhaveice%2Fnetwork/lists"}