How apiyush-12/netpilot works
NetPilot is a local network-operations and failover console: operators inspect lab status, events and incidents, then authorize lab, service, route or managed-process actions. The React console also exposes monitoring, recovery, audit, AWS operations, cloud-event exploration and customizable settings. FastAPI is the browser-facing control layer, with separate core and cloud modules; the repository also contains agent and AWS Lambda runtime components. Source excerpts establish the console/API and API/core relationships, but do not establish all agent or AWS wiring.
Main entry points: App.jsx Console App · Operations.jsx Operations View · CloudEvents.jsx Cloud Events View · app.py FastAPI Service
Components 25
Operator Console
- Console App
dashboard/src/App.jsx - Navigation Chrome
dashboard/src/components/Chrome.jsx - Action Confirmation
dashboard/src/components/ConfirmDialog.jsx - Operations View
dashboard/src/pages/Operations.jsx - Monitoring View
dashboard/src/pages/Monitoring.jsx - Recovery View
dashboard/src/pages/Recovery.jsx - Event Logs View
dashboard/src/pages/Events.jsx - AWS Operations View
dashboard/src/pages/Cloud.jsx - Cloud Events View
dashboard/src/pages/CloudEvents.jsx - Audit View
dashboard/src/pages/Audit.jsx - Settings View
dashboard/src/pages/Settings.jsx - Event Table
dashboard/src/components/EventTable.jsx - Topology Display
dashboard/src/components/Topology.jsx - Display Formatting
dashboard/src/lib/format.js - Preference Storage
dashboard/src/lib/settings.js - API Client
dashboard/src/lib/api.js
Local Control Plane
- FastAPI Service
backend/app.py - Lab and Process Control
backend/core.py - Cloud Operations
backend/cloud.py
Network Agents
- NetPilot Controller
agent/netpilot_v4.py - Log Analysis
agent/analyze_logs.py - AWS Log Forwarder
agent/aws_forwarder.py
Cloud Event Processing
- Event Processor
aws/lambda/lambda_function.py - AWS Services
Other components
- Operator
Connections 28
- Operator → Console App: uses
dashboard/src/App.jsx - Console App → Navigation Chrome: renders
dashboard/src/App.jsx - Console App → Action Confirmation: renders
dashboard/src/App.jsx - Console App → Operations View: selects view
dashboard/src/App.jsx - Console App → Monitoring View: selects view
dashboard/src/App.jsx - Console App → Recovery View: selects view
dashboard/src/App.jsx - Console App → Event Logs View: selects view
dashboard/src/App.jsx - Console App → AWS Operations View: selects view
dashboard/src/App.jsx - Console App → Cloud Events View: selects view
dashboard/src/App.jsx - Console App → Audit View: selects view
dashboard/src/App.jsx - Console App → Settings View: selects view
dashboard/src/App.jsx - Console App → API Client: requests data
dashboard/src/App.jsx - Console App → Preference Storage: loads preferences
dashboard/src/App.jsx - API Client → FastAPI Service: calls API
backend/app.py - FastAPI Service → Lab and Process Control: dispatches control
backend/app.py - FastAPI Service → Cloud Operations: queries cloud
backend/app.py - Operations View → Topology Display: renders
dashboard/src/pages/Operations.jsx - Operations View → Event Table: renders
dashboard/src/pages/Operations.jsx - Monitoring View → Topology Display: renders
dashboard/src/pages/Monitoring.jsx - Event Logs View → Event Table: renders
dashboard/src/pages/Events.jsx - Cloud Events View → API Client: fetches events
dashboard/src/pages/CloudEvents.jsx - Cloud Events View → Display Formatting: formats records
dashboard/src/pages/CloudEvents.jsx - Event Table → Display Formatting: formats rows
dashboard/src/components/EventTable.jsx - Display Formatting → Preference Storage: reads preferences
dashboard/src/lib/format.js - Settings View → Preference Storage: updates preferences
dashboard/src/pages/Settings.jsx - Lab and Process Control → NetPilot Controller
- AWS Log Forwarder → Event Processor
- Event Processor → AWS Services