Skip to contenthrsha
NetWatch, photographed as a tidally locked world whose night side is lit by networks of cities.
HR 002f/2.8  1/125  ISO 400

HR 002   Jul 2025

NetWatch

NetWatch watches a network, explains what it sees in plain English and lets you act on it, with nothing leaving the host. The language model narrates and recommends. It never decides.

Status
Finished
Stack
Python, Scapy, Flask, SSE, SQLite, Ollama
Themes
networking, security, local-first
World
Tidally locked worldIts night side is lit by networks, and NetWatch is about seeing yours.

The same work, photographed in other universes

Turn the lens dial on the home page to visit them.

  • NetWatch in universe H-0, This universe

    H-0   This universe

  • NetWatch in universe H-1, Blueprint

    H-1   Blueprint

  • NetWatch in universe H-2, Long exposure

    H-2   Long exposure

  • NetWatch in universe H-3, 1/8000s

    H-3   1/8000s

Abstract

NetWatch captures packets with Scapy, tracks devices, fuses alerts into incidents, forecasts congestion and answers questions about your own traffic. Storage is local SQLite. The optional AI features run against a local model, so there is no cloud account, no API key and no telemetry.

Problem

Home and small-office networks are opaque. The tools that explain them either ship your traffic to a cloud service or bury you in packet dumps.

What I built

  • A capture pipeline that parses and batches packets onto an event bus, with the mode detected automatically (hotspot, Ethernet, Wi-Fi client, port mirror).
  • An intelligence layer for flows, device behaviour, threats, incidents and forecasting, all deterministic.
  • A Flask REST and Server-Sent Events backend feeding a browser dashboard, with MAC-keyed device identity and passive fingerprinting.
  • Per-device controls that a human approves before they are enforced.

The design rule

Everything above the event bus is deterministic. The model is only allowed to narrate and recommend. Every answer is grounded in tool output the UI shows, every recommendation is a proposal a person approves, and every AI feature falls back to a deterministic path when no model is running.

Where it stands

About 70 commits and a test suite of over a thousand tests. I led a team of five and we exhibited it at CII Innoverge 2026 in Bengaluru. The source is on GitHub.

Next exposureAlisu