AirLink — macOS Captive Portal Assistant
Solo Developer · Independent
Overview
AirLink is a Tauri 2 desktop app for macOS that treats captive portals as a first-class problem. It reads the Mac's real Wi-Fi and IP state, classifies connectivity with HTTP and HTTPS probes, detects portal redirects, opens an embedded WKWebView for authentication, then re-verifies the connection over the Mac's own network path. Everything runs locally: credentials, settings and history stay on the device, with no account, backend, analytics or telemetry.
What I did
- 01Built the Rust/Tauri backend commands for Wi-Fi, IP, probe, portal, credential and browser state.
- 02Designed the connection state machine from disconnected through portal detection, authentication and verified internet.
- 03Built the React 19 + TypeScript interface for status, diagnostics, saved networks, credentials, hotspot and settings.
- 04Implemented the embedded WKWebView portal browser with native back/forward/reload/navigation controls.
- 05Added background connection monitoring with native macOS notifications and launch at login.
- 06Set up signed automatic updates through the Tauri updater and GitHub Releases.
Key features
- Wi-Fi detail: SSID/BSSID, RSSI, noise, signal quality/bars, channel, band, PHY mode and security
- IP configuration: IPv4, subnet, gateway, DNS, MAC address and IPv6
- HTTP interception probes plus a separate HTTPS internet probe
- Captive-portal classification: redirect, portal content, HTTP status or a known profile
- Embedded authentication browser with fresh HTTPS verification after sign-in
- Saved network profiles, trusted domains and saved credentials
- Background monitoring, notifications and launch at login
- Signed automatic updates, all local-only
Bugs fixed & failure modes handled
macOS reporting Wi-Fi as connected hid the fact that no internet was reachable.
FixConnectivity is classified from separate HTTP and HTTPS probes, so “associated” and “online” are no longer the same state.
A portal could appear signed in while traffic still failed.
FixAfter authentication, AirLink re-checks HTTPS over the Mac's own network path before declaring the session verified.
Portal pages behaved differently when opened in the system browser.
FixAuthentication runs inside an embedded WKWebView positioned by the app, with native navigation controls.
Restricted SSIDs made the network name look broken.
FixThe UI falls back to a clear hidden/restricted-network label instead of an empty SSID.
Integrations
- macOS Wi-Fi and IP APIs
- WKWebView authentication
- Tauri updater and GitHub Releases
- Native macOS notifications
- Launch at login (Tauri autostart)
Engineering highlights
- Local-only by design: no account, cloud backend, analytics or telemetry.
- Separate HTTP and HTTPS probes avoid the classic captive-portal false positive.
- The portal browser is part of the app, not a hand-off to Safari.
Tools used
- Rust
- Tauri 2
- React 19
- TypeScript
- Vite
- Tailwind CSS 4
- Zustand
- WKWebView
- macOS APIs
- GitHub Actions
Tools & access needed
- macOS 12 Monterey or later
- Xcode command line tools
- Rust toolchain and Node.js
- Tauri CLI and an Apple signing identity for distribution
- Tauri updater signing key and a GitHub token for releases
Turns “the Wi-Fi says connected but nothing loads” into a clear diagnosis and a one-click sign-in.
