Network monitor: hub, probes, Docker and native installers

Hub (FastAPI + no-build web UI):
- Network health: live probe/target matrix, status strips, incidents
- Probes: add (with install command), rename, remove, latency and throughput charts
- Clients merged from AdGuard, DHCP, query log and probe ARP tables; names,
  categories, suspicious flag, notes, per-client DNS requests
- Query log, domain detail (clients, related subdomains), blocked domains via
  the AdGuard Home /control API

Probe: tests peers (ping, HTTP, throughput), gateway, LAN and public DNS,
internet URLs and an optional VPS; buffers results while the hub is down.
Gateway and ARP from /proc/net on Linux, route/arp on macOS.

Install: install.sh (hub) and install-probe.sh (generated from it), each in
docker mode (compose; default on Linux hosts) or native mode (venv + systemd
or launchd; default on macOS and in LXC). Both modes deploy with an update
command that checks the new commit and rolls back on failure.

CLAUDE.md carries shared context for Claude Code sessions on each machine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
neil 2026-11-04 18:10:29 -08:00
commit 54a765510a
63 changed files with 6464 additions and 0 deletions

32
app/static/index.html Normal file
View file

@ -0,0 +1,32 @@
<!doctype html>
<!-- House shell: see references/house.md ("Starting a project") for the placeholders. -->
<html lang="en" data-app="network-monitor">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<title>network monitor</title>
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="/static/css/house.css">
<link rel="stylesheet" href="/static/css/app.css">
<script type="module" src="/static/js/main.js"></script>
</head>
<body>
<div class="shell">
<header class="topbar">
<button class="icon-btn menu-btn" id="menu-btn" type="button" aria-label="Menu" aria-expanded="false">☰</button>
<a href="/" class="brand"><span class="brand-mark" aria-hidden="true">◎</span> network monitor</a>
<span class="topbar-title" id="topbar-title"></span>
<span class="spacer"></span>
<button class="icon-btn" id="theme-btn" type="button" aria-label="Theme" title="Theme: auto"></button>
</header>
<nav class="sidebar" id="sidebar" aria-label="Main">
<input type="search" id="nav-filter" class="nav-filter" placeholder="Find… /" aria-label="Find a page">
<div id="nav-list"></div>
</nav>
<div class="scrim" id="scrim"></div>
<main id="view" class="view"></main>
</div>
<div class="toasts" id="toasts" aria-live="polite"></div>
</body>
</html>