Production-Grade Real-Time Network Observability & Threat Detection
NetSentryx PRO is a high-performance, event-driven network monitoring system built with Python. It provides real-time visibility into network traffic, anomaly detection, and structured alerting through a modern SaaS-style dashboard.
This project is functional but still evolving. Expect breaking changes and ongoing architectural improvements.
-
β‘ Event-Driven Architecture Internal lightweight event bus for decoupled processing.
-
π‘ Real-Time Dashboard Live updates via WebSockets for alerts, flows, and logs.
-
π Flow-Based Network Analysis Aggregates packets into flows with behavioral metrics.
-
π§ Rule-Based Detection Engine Detects anomalies like:
- traffic spikes
- scanning behavior
- flood attempts
-
πͺ΅ Structured Logging System SQLite-backed logs with UTC timestamps.
-
ποΈ SaaS-Style UI Dark-themed observability dashboard inspired by Datadog-style layouts.
[ Packet Capture / Simulator ]
β
(EVENT BUS)
β
βββββββββββββββββββββββββββββββ
β Flow Processor β
β Alert Engine β
β Log Manager β
βββββββββββββββββββββββββββββββ
β
(EVENT STREAM)
β
βββββββββββββββββββββββββββββββ
β Database (SQLite) β
β WebSocket Broadcast Layer β
βββββββββββββββββββββββββββββββ
β
[ FastAPI Dashboard UI ]
src/
βββ core/ # Time utils, config, logging
βββ events/ # Event bus system
βββ flows/ # Flow aggregation engine
βββ alerts/ # Detection + alert manager
βββ database/ # SQLAlchemy models + DB layer
βββ dashboard/ # FastAPI + Web UI + WebSockets
βββ utils/ # Simulation + helpers
- Python 3.10+
- (Optional for live capture)
- Windows: Npcap
- Linux: libpcap-dev
uv venvWindows
.venv\Scripts\activateLinux/Mac
source .venv/bin/activateuv pip install -r requirements.txtuv run python main.py --simulateuv run python main.pyhttp://localhost:8000
- Network interface settings
- Dashboard port
- Storage paths
-
Enable/disable detection rules
-
Adjust thresholds for:
- traffic spikes
- connection floods
- anomalies
- Occasional UI refresh inconsistencies
- SQLite used (not scalable yet)
- Limited authentication/security layer
- Some internal type inconsistencies under refactor
- Event pipeline still evolving
- Full WebSocket-only data flow (remove polling APIs)
- Improved alert deduplication system
- Better flow correlation engine
- PostgreSQL support
- Multi-node event processing
- Rule plugin system
- Production-ready SOC observability platform
- SaaS-style multi-tenant dashboard
- Role-based access control
We welcome contributions.
git checkout -b feature/your-featureuv run python main.py- Ensure no breaking changes in API responses
- Keep outputs JSON-safe
- Follow UTC time standard across system
- Improve alert deduplication logic
- Add pagination to logs API
- Enhance WebSocket reconnection handling
- UI improvements (dashboard cards + charts)
- Improve flow aggregation accuracy
MIT License β feel free to use, modify, and contribute.
NetSentryx aims to become:
A lightweight, self-hosted SOC observability platform for developers, security engineers, and small teams.
v0.1-alpha

