WiFi maintenance for networks you own or are authorised to administer.
OpenWifi turns what the operating system already knows about the radio into
reports you can act on: nearby access points, per-channel occupancy with a
recommended channel, the neighbours in the ARP/neighbour table, reachability and
latency for one host, and a passive audit of what an SSID's beacons advertise.
One Rust kernel answers every question; the open-wifi command line and the
TypeScript API only render it.
It is passive by construction. Nothing in this repository injects frames, deauthenticates clients, guesses default credentials or bypasses ISP locks. Those checks need owner access and are reported as not attempted.
| Command | Answer |
|---|---|
scan |
Every BSSID the adapter can see: SSID, signal, channel, band, security, radio |
channels |
Per-channel occupancy and the quietest channel per band |
devices |
Unicast neighbours from the ARP or neighbour table |
diagnose |
Packet loss, min/avg/max RTT and optional DNS resolution time |
audit |
Passive findings for one SSID, each with a remediation |
report |
Any scan rendered as Markdown or JSON, from a fresh or saved scan |
version |
Package and engine version |
capabilities |
What this build supports, where each report comes from and what it skips |
gui |
The native window, when this build bundles its page |
Prerequisites: Node.js 18 or newer and the platform WiFi tooling — netsh on
Windows, nmcli on Linux, airport on macOS. Neighbour discovery uses arp
or ip neigh; diagnostics use the system ping.
pnpm install
pnpm build:napi # build and stage the native addon
pnpm build # TypeScript CLIThen, from the repository:
node projects/packages/open-wifi/dist/cli.js scan
node projects/packages/open-wifi/dist/cli.js channels
node projects/packages/open-wifi/dist/cli.js devices
node projects/packages/open-wifi/dist/cli.js diagnose --host 1.1.1.1 --count 4
node projects/packages/open-wifi/dist/cli.js audit --ssid HomeNet
node projects/packages/open-wifi/dist/cli.js report --format md --out survey.mdOnce the package is installed (it is private and unpublished today), the bin is
open-wifi:
open-wifi scan
open-wifi channelsAdd --json to any command for one wae.cli-result/v0 envelope on stdout.
$ open-wifi scan
source: netsh · interface: Wi-Fi · 3 access point(s)
SSID BSSID SIGNAL CHANNEL BAND SECURITY RADIO
HomeNet aa:bb:cc:dd:ee:01 82% 36 5 GHz WPA2-Personal (CCMP) 802.11ac
Guest aa:bb:cc:dd:ee:02 47% 6 2.4 GHz OPEN 802.11n
<hidden> aa:bb:cc:dd:ee:03 61% 11 2.4 GHz WPA2-Personal (CCMP) 802.11n
$ open-wifi audit --ssid Guest
audit: Guest
1 finding(s): 1 high, 0 medium, 0 low, 0 info
- [high] open-network: `Guest` accepts clients without encryption
fix: Enable WPA2-Personal with CCMP, or WPA3-Personal, and set a strong passphrase.
note: WPS state, router administrator credentials and firmware versions require owner access, so OpenWifi intentionally does not probe, guess or attempt them.
open-wifi <command>
-> projects/packages/open-wifi (TypeScript CLI + API)
-> projects/crates/wifi-napi (Node-API binding)
-> projects/crates/wifi-domain (parsers, occupancy, audit, platform adapters)
-> OS tooling: netsh / nmcli / airport / arp / ip neigh / ping
- The kernel is pure Rust and returns typed, serializable reports.
- The Node-API crate maps JSON in, JSON out, and hosts the optional window.
- The five platform packages (
open-wifi-<os>-<arch>) carry the prebuilt.nodeaddon and are installed as optional dependencies. channelsandauditare pure functions of oneScanReport, so they run offline against a saved report.
- Every report is passive: no raw sockets, no frame capture, no injection.
auditreads beacon facts only. A clean audit means "no passive finding", not "secure network".scanreports what the OS tool prints. Some drivers cache results; a fresh scan can repeat the previous list.- On recent macOS releases
airportis gone;scanreportswifi/unsupportedand points at the system WiFi menu. - The
guicommand needs window assets staged intodist/gui; the CLI-only build does not bundle them.
Supported behaviour and every limit are documented in documentation/capabilities.md. The full command surface is in documentation/cli.md.
pnpm install
pnpm build:napi # native addon
pnpm build:ts # TypeScript CLI
pnpm typecheck
pnpm test
pnpm test:rust
pnpm check:rust # fmt + clippy + core/napi testsMaintainer details, CI and the release state live in documentation/README.md. Agent guidance is in documentation/agents.md.
Apache-2.0. See License.md.