A self-hosted web panel that streams live system telemetry from one machine (the host) to any browser on your LAN (the notebook). Built as a single Go binary with an embedded UI: no runtime, no database, no frontend build step.
Status: MVP implemented (slices 0–5 complete, packaging done). Verified on Windows 11 / RTX 5090 laptop through the HTTP API and SSE, with the dashboard rendered and populated in headless Chrome; a 10-minute notebook soak is still pending. An optional Windows tray launcher (webtop-tray.exe) was added afterwards.
- glitch proved the interaction model: browser-first single page with a server push loop and JSON state events.
- DeskStats defines the metric and widget catalogue worth having, and the Windows sensor strategy (LibreHardwareMonitor + PawnIO, nvidia-smi-class GPU data) — without its .NET/Electron footprint.
webtop takes the serving pattern from the first and the telemetry catalogue from the second, then shrinks both into one small binary.
Prerequisite: Go 1.27+. If it is not on PATH, scripts/build.ps1 falls back to %USERPROFILE%\go-sdk\go\bin\go.exe.
Copy-Item webtop.example.json webtop.json
# edit webtop.json and replace "change-me" with a random token, e.g.:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
powershell -ExecutionPolicy Bypass -File scripts/build.ps1
.\webtop.exe -config webtop.jsonOpen http://127.0.0.1:8787/?token=<token> on the host, or http://<host-lan-ip>:8787/?token=<token> from the notebook. The first visit sets an HttpOnly cookie and redirects, so the token leaves the address bar.
The server refuses a non-loopback bind with no token, and refuses the example token change-me off-loopback.
# elevated: allow inbound TCP 8787 on the Private profile
powershell -ExecutionPolicy Bypass -File scripts/firewall.ps1 -Port 8787
# current user: start at logon, restart on failure
powershell -ExecutionPolicy Bypass -File scripts/install-task.ps1Find the host address with Get-NetIPAddress -AddressFamily IPv4. For access beyond the LAN, prefer Tailscale/WireGuard over an exposed port; alternatively put nginx + Let's Encrypt in front.
scripts/build.ps1 also builds webtop-tray.exe, a notification-area launcher for a desktop host that runs the same panel in-process. The headless webtop.exe is still the primary entry point — the tray is a convenience, not a requirement (ADR 0005).
.\webtop-tray.exe -config webtop.json- Left-click the icon to open the dashboard; right-click for Open dashboard, Copy dashboard URL, Copy LAN URL, Restart, Start with Windows and Quit.
- Start with Windows writes a per-user
HKCU\…\Runvalue with the absolute config path; untick it to remove.scripts/install-task.ps1remains the option that adds restart-on-failure supervision. - Only one copy runs. Launching it again does not start a second server — it opens the dashboard of the running instance.
- It is built with
-H=windowsgui, so there is no console: startup failures appear as a balloon and in%LOCALAPPDATA%\webtop\webtop-tray.log.-log ""disables the file; telemetry is never written to disk. - Do not run it alongside
webtop.exeon the same port — the second process reportsaddress already in usein the tray menu instead of serving.
| Group | Panels | Default |
|---|---|---|
| Core | CPU total + per-core, memory/swap, per-volume disk + aggregate I/O, per-adapter network | on |
| GPU | NVIDIA utilisation, VRAM, temperature, power, fan, clocks (one long-lived nvidia-smi) |
on |
| Optional | Top processes (5 s), battery, clock/uptime | off |
| Sensors | CPU/motherboard temperatures and fans via LibreHardwareMonitor (5 s) | off |
Disabled groups start no goroutine, no subprocess and no HTTP scrape. Sampling stops entirely when the last viewer disconnects.
- Fourteen presets in two groups. Webtop: Orbit (default dark glass), Daylight (light glass), Amber CRT, Phosphor (green), Nord. ZeroG Terminal (palettes adapted from HappyMonkeyAI/ZeroGTerm, MIT): Tokyo Night, Light, Dracula, Nord, Solarized Dark, Monokai, One Dark, Synthwave, High contrast.
- The sun/moon button toggles light/dark without losing your last dark palette; the first visit follows the OS colour scheme.
- Every card has a subtle × to hide it, and a dashed + Add panel card sits at the end listing anything enabled on the host but hidden in this browser.
- Theme and hidden panels are stored in
localStorageper browser (webtop.theme,webtop.themeDark,webtop.hidden). The host config still decides which panels exist at all; preferences never leave the viewer.
webtop.json; every field is optional and merges with the defaults. listen, token, interval_ms (250–10000), history (30–3600), panels.*, processes.top, gpu.provider, sensors.url. Environment overrides: WEBTOP_LISTEN, WEBTOP_TOKEN. Unknown keys are logged and ignored.
See webtop.example.json.
- Install LibreHardwareMonitor (accept its PawnIO driver prompt).
- Options → Remote Web Server → enable, port
8085. - Set
"panels": { "sensors": true }and keepsensors.urlathttp://127.0.0.1:8085/data.json.
If LHM is stopped, the Sensors card shows "unavailable" and the scrape backs off; every other panel keeps updating.
Windows 11 26H2, 24-core RTX 5090 laptop, 1 s cadence, 2026-11-30:
| Configuration | RSS | CPU |
|---|---|---|
| All panels + viewer (process scan every 5 s) | ~55 MB | 0.28 s CPU over ~10 s |
| Default panels + viewer | 17–18 MB | below 15 ms over a 6 s session |
| Default panels, no viewer, 10 s idle | ~17 MB | 0 s (below Windows 15.6 ms CPU-time resolution) |
| Binary | 7.8 MB stripped |
| Route | Purpose |
|---|---|
GET / |
Embedded dashboard (token query sets the cookie, then 302) |
GET /healthz |
Liveness, no auth |
GET /api/config |
Sanitised panel config |
GET /api/snapshot |
Latest sample (null while nobody is viewing) |
GET /events |
SSE: hello with the last 60 samples, then one tick per interval |
The panel exposes host information. Default posture is LAN-only with a shared token; all routes except /healthz require it. History is in memory only; nothing is written to disk. See docs/adr/0004-lan-token-auth.md.
- CONTEXT.md — operating manual, rules, resolved decisions
- HERMES.md — agent workflow and verification
- AGENTS.md — swarm/CLI routing rules
- docs/adr/ — durable architecture decisions
- docs/plans/2026-11-30-webtop-mvp.md — MVP slice plan and status
- research/ — external references
MIT © 2026 HappyMonkeyAI and Stephen Phillips.
The ZeroG Terminal palettes are adapted with permission from HappyMonkeyAI/ZeroGTerm (MIT). DeskStats is GPLv3: only ideas are borrowed, no code is copied.