How highskai/netpulse works
NetPulse is a self-hosted network monitor: a signed-in user manages devices in the web dashboard, scheduled checks record device results, and the dashboard presents history, inventory, alerts, and diagnostics. The map preserves the README’s discovery, network/topology, packet-capture, external-probe, account, and access-control capabilities. The excerpts show the web security gate, storage contract, and selected domain contracts; links for several unsampled subsystems are therefore marked unverified rather than asserted as observed calls.
Main entry points: views.py Dashboard routes · admin_views.py Administration routes · app.py Web application · checks.py Device checks
Components 29
Web and access
- Web application
src/netpulse/web/app.py - Dashboard routes
src/netpulse/web/views.py - Administration routes
src/netpulse/web/admin_views.py - Request security
src/netpulse/web/security.py - Network access
src/netpulse/access.py - Accounts
src/netpulse/accounts.py - Authentication
src/netpulse/auth.py - Local HTTPS certificates
src/netpulse/crypto/tls.py
Monitoring workflow
- Check scheduler
src/netpulse/scheduler.py - Device checks
src/netpulse/checks.py - Ping probes
src/netpulse/ping - Device discovery
src/netpulse/discovery.py - Alert engine
src/netpulse/alerting.py - Alert records
src/netpulse/alerts.py - Notifications
src/netpulse/notify
Network insights
- History and reports
src/netpulse/metrics.py - Dashboard charts
src/netpulse/charts.py - Windows network reader
src/netpulse/netinfo/reader.py - Network information
src/netpulse/network.py - Network map
src/netpulse/topology.py
Diagnostics
- Path traces
src/netpulse/trace.py - Packet capture
src/netpulse/traffic.py - Capture sources
src/netpulse/capture/source.py - Packet decoding
src/netpulse/capture/decode.py - Outside checks
src/netpulse/outside.py - Globalping probes
src/netpulse/probes/globalping.py
Domain and storage
- Domain model
src/netpulse/domain.py - SQLite history and inventory
src/netpulse/store.py
Other components
- Network user
Connections 32
- Network user → Web application: uses dashboard
README.md - Web application → Request security: gates requests
src/netpulse/web/app.py - Web application → Dashboard routes: registers routes
src/netpulse/web/app.py - Web application → Administration routes: registers routes
src/netpulse/web/app.py - Dashboard routes → SQLite history and inventory: reads and updates
src/netpulse/web/views.py - Administration routes → Accounts: manages users
src/netpulse/web/admin_views.py - Administration routes → Authentication: creates accounts
src/netpulse/web/admin_views.py - Request security → Authentication: checks identity
src/netpulse/web/security.py - Request security → Network access: checks access
src/netpulse/web/security.py - Administration routes → Network access: configures access
src/netpulse/web/admin_views.py - Administration routes → Local HTTPS certificates: configures certificates
src/netpulse/web/admin_views.py - Check scheduler → Device checks: runs checks
- Device checks → Ping probes: probes hosts
src/netpulse/checks.py - Device checks → SQLite history and inventory: records results
src/netpulse/checks.py - Check scheduler → Alert engine: evaluates alerts
- Alert engine → Alert records: updates alert state
- Alert engine → Notifications: sends notifications
- Device discovery → Windows network reader: reads neighbours
- Device discovery → SQLite history and inventory: stores candidates
src/netpulse/discovery.py - Dashboard routes → History and reports: loads history
src/netpulse/web/views.py - Dashboard routes → Dashboard charts: builds charts
src/netpulse/web/views.py - Windows network reader → Network information: returns network data
src/netpulse/netinfo/reader.py - Network map → Network information: uses network data
- Dashboard routes → Network map: renders map
src/netpulse/web/views.py - Dashboard routes → Path traces: runs path traces
- Dashboard routes → Packet capture: controls captures
src/netpulse/web/views.py - Packet capture → Capture sources: starts capture
src/netpulse/traffic.py - Packet capture → Packet decoding: decodes packets
src/netpulse/traffic.py - Dashboard routes → Outside checks: requests outside checks
- Outside checks → Globalping probes: dispatches probes
- Device checks → Domain model: uses domain values
src/netpulse/checks.py - SQLite history and inventory → Domain model: stores domain values
src/netpulse/store.py