# kamal162003/net-sentinal architecture

> Architecture diagram of the GitHub repository kamal162003/net-sentinal, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kamal162003/net-sentinal
- Repository: https://github.com/kamal162003/net-sentinal

## Overview

NetSentinel combines a documented dual-engine intrusion-detection design with a React telemetry and evaluation dashboard. The visible UI workflow starts at the dashboard shell, which simulates a flow stream and routes users to inspection, benchmark, feature, policy, and telemetry views. The README describes the model pipeline and operational severity routing, but the sampled frontend shows simulated flows rather than model execution or live network integration; those product stages are included as documented architecture, not asserted UI runtime calls.

Main entry points: [`src/App.tsx`](https://github.com/kamal162003/net-sentinal/blob/main/src/App.tsx) (Dashboard shell), [`src/data/metricsData.ts`](https://github.com/kamal162003/net-sentinal/blob/main/src/data/metricsData.ts) (Evaluation metrics), [`src/views/InspectorView.tsx`](https://github.com/kamal162003/net-sentinal/blob/main/src/views/InspectorView.tsx) (Flow inspector and lab), [`src/data/mockFlows.ts`](https://github.com/kamal162003/net-sentinal/blob/main/src/data/mockFlows.ts) (Flow records and presets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard navigation"]
  node_app["Dashboard shell<br/>[App.tsx]"]
  node_header["Navigation header<br/>[Header.tsx]"]
  node_search["Quick search<br/>[SearchModal.tsx]"]
  node_overview["Overview<br/>[OverviewView.tsx]"]
end

subgraph group_inspection["Flow inspection"]
  node_stream["Simulated flow stream<br/>[App.tsx]"]
  node_flowdata["Flow records and presets<br/>[mockFlows.ts]"]
  node_inspector["Flow inspector and lab<br/>[InspectorView.tsx]"]
  node_telemetry["Telemetry explorer<br/>[TelemetryView.tsx]"]
end

subgraph group_evaluation["Model evaluation"]
  node_metrics["Evaluation metrics<br/>[metricsData.ts]"]
  node_benchmark["Benchmark comparison<br/>[BenchmarkView.tsx]"]
  node_features["Feature explorer<br/>[FeaturesView.tsx]"]
end

subgraph group_detection["Detection pipeline"]
  node_policy["Policy tuning<br/>[PolicyView.tsx]"]
  node_featurefunnel["Feature engineering<br/>[metricsData.ts]"]
  node_supervised["Supervised XGBoost"]
  node_autoencoder["Anomaly autoencoder"]
  node_fusion["Hybrid fusion"]
  node_severity["Severity routing<br/>[PolicyView.tsx]"]
end

node_operator(("Operator"))

node_operator -->|"uses"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_overview
node_app -->|"renders"| node_inspector
node_app -->|"renders"| node_benchmark
node_app -->|"renders"| node_features
node_app -->|"renders"| node_policy
node_app -->|"renders"| node_telemetry
node_app -->|"renders"| node_search
node_app -->|"loads presets"| node_flowdata
node_app -->|"simulates flows"| node_stream
node_stream -->|"supplies flow state"| node_inspector
node_flowdata -->|"provides presets"| node_inspector
node_flowdata -->|"provides flow data"| node_telemetry
node_metrics -->|"supplies metrics"| node_benchmark
node_metrics -->|"supplies feature data"| node_features
node_metrics -->|"supplies thresholds"| node_policy
node_metrics -->|"supplies summary"| node_overview
node_metrics -->|"supplies thresholds"| node_inspector
node_metrics -->|"supplies metrics"| node_telemetry
node_search -->|"searches data"| node_metrics
node_operator -.->|"prepares input"| node_featurefunnel
node_featurefunnel -.->|"provides features"| node_supervised
node_featurefunnel -.->|"provides features"| node_autoencoder
node_supervised -.->|"contributes probability"| node_fusion
node_autoencoder -.->|"contributes error"| node_fusion
node_fusion -.->|"routes score"| node_severity
node_policy -.->|"tunes thresholds"| node_severity

click node_app "https://github.com/kamal162003/net-sentinal/blob/main/src/App.tsx"
click node_header "https://github.com/kamal162003/net-sentinal/blob/main/src/components/Header.tsx"
click node_search "https://github.com/kamal162003/net-sentinal/blob/main/src/components/SearchModal.tsx"
click node_overview "https://github.com/kamal162003/net-sentinal/blob/main/src/views/OverviewView.tsx"
click node_stream "https://github.com/kamal162003/net-sentinal/blob/main/src/App.tsx"
click node_flowdata "https://github.com/kamal162003/net-sentinal/blob/main/src/data/mockFlows.ts"
click node_inspector "https://github.com/kamal162003/net-sentinal/blob/main/src/views/InspectorView.tsx"
click node_telemetry "https://github.com/kamal162003/net-sentinal/blob/main/src/views/TelemetryView.tsx"
click node_metrics "https://github.com/kamal162003/net-sentinal/blob/main/src/data/metricsData.ts"
click node_benchmark "https://github.com/kamal162003/net-sentinal/blob/main/src/views/BenchmarkView.tsx"
click node_features "https://github.com/kamal162003/net-sentinal/blob/main/src/views/FeaturesView.tsx"
click node_policy "https://github.com/kamal162003/net-sentinal/blob/main/src/views/PolicyView.tsx"
click node_featurefunnel "https://github.com/kamal162003/net-sentinal/blob/main/src/data/metricsData.ts"
click node_supervised "https://github.com/kamal162003/net-sentinal/blob/main/models/track_a_xgb_multiclass.joblib"
click node_autoencoder "https://github.com/kamal162003/net-sentinal/blob/main/models/netsentinel_hybrid_bundle.joblib"
click node_fusion "https://github.com/kamal162003/net-sentinal/blob/main/models/netsentinel_hybrid_bundle.joblib"
click node_severity "https://github.com/kamal162003/net-sentinal/blob/main/src/views/PolicyView.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_header,node_search,node_overview toneBlue
class node_stream,node_flowdata,node_inspector,node_telemetry toneAmber
class node_metrics,node_benchmark,node_features toneMint
class node_policy,node_featurefunnel,node_supervised,node_autoencoder,node_fusion,node_severity toneRose
class node_operator toneIndigo
```

## Components

### Dashboard navigation

- [Dashboard shell](https://github.com/kamal162003/net-sentinal/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation header](https://github.com/kamal162003/net-sentinal/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Quick search](https://github.com/kamal162003/net-sentinal/blob/main/src/components/SearchModal.tsx): `src/components/SearchModal.tsx`
- [Overview](https://github.com/kamal162003/net-sentinal/blob/main/src/views/OverviewView.tsx): `src/views/OverviewView.tsx`

### Flow inspection

- [Simulated flow stream](https://github.com/kamal162003/net-sentinal/blob/main/src/App.tsx): `src/App.tsx`
- [Flow records and presets](https://github.com/kamal162003/net-sentinal/blob/main/src/data/mockFlows.ts): `src/data/mockFlows.ts`
- [Flow inspector and lab](https://github.com/kamal162003/net-sentinal/blob/main/src/views/InspectorView.tsx): `src/views/InspectorView.tsx`
- [Telemetry explorer](https://github.com/kamal162003/net-sentinal/blob/main/src/views/TelemetryView.tsx): `src/views/TelemetryView.tsx`

### Model evaluation

- [Evaluation metrics](https://github.com/kamal162003/net-sentinal/blob/main/src/data/metricsData.ts): `src/data/metricsData.ts`
- [Benchmark comparison](https://github.com/kamal162003/net-sentinal/blob/main/src/views/BenchmarkView.tsx): `src/views/BenchmarkView.tsx`
- [Feature explorer](https://github.com/kamal162003/net-sentinal/blob/main/src/views/FeaturesView.tsx): `src/views/FeaturesView.tsx`

### Detection pipeline

- [Policy tuning](https://github.com/kamal162003/net-sentinal/blob/main/src/views/PolicyView.tsx): `src/views/PolicyView.tsx`
- [Feature engineering](https://github.com/kamal162003/net-sentinal/blob/main/src/data/metricsData.ts): `src/data/metricsData.ts`
- [Supervised XGBoost](https://github.com/kamal162003/net-sentinal/blob/main/models/track_a_xgb_multiclass.joblib): `models/track_a_xgb_multiclass.joblib`
- [Anomaly autoencoder](https://github.com/kamal162003/net-sentinal/blob/main/models/netsentinel_hybrid_bundle.joblib): `models/netsentinel_hybrid_bundle.joblib`
- [Hybrid fusion](https://github.com/kamal162003/net-sentinal/blob/main/models/netsentinel_hybrid_bundle.joblib): `models/netsentinel_hybrid_bundle.joblib`
- [Severity routing](https://github.com/kamal162003/net-sentinal/blob/main/src/views/PolicyView.tsx): `src/views/PolicyView.tsx`

### Other components

- **Operator**

## Connections

- Operator → Dashboard shell: uses
- Dashboard shell → Navigation header: renders (evidence: `src/App.tsx`)
- Dashboard shell → Overview: renders (evidence: `src/App.tsx`)
- Dashboard shell → Flow inspector and lab: renders (evidence: `src/App.tsx`)
- Dashboard shell → Benchmark comparison: renders (evidence: `src/App.tsx`)
- Dashboard shell → Feature explorer: renders (evidence: `src/App.tsx`)
- Dashboard shell → Policy tuning: renders (evidence: `src/App.tsx`)
- Dashboard shell → Telemetry explorer: renders (evidence: `src/App.tsx`)
- Dashboard shell → Quick search: renders (evidence: `src/App.tsx`)
- Dashboard shell → Flow records and presets: loads presets (evidence: `src/App.tsx`)
- Dashboard shell → Simulated flow stream: simulates flows (evidence: `src/App.tsx`)
- Simulated flow stream → Flow inspector and lab: supplies flow state (evidence: `src/App.tsx`)
- Flow records and presets → Flow inspector and lab: provides presets (evidence: `src/views/InspectorView.tsx`)
- Flow records and presets → Telemetry explorer: provides flow data (evidence: `src/data/mockFlows.ts`)
- Evaluation metrics → Benchmark comparison: supplies metrics (evidence: `src/views/BenchmarkView.tsx`)
- Evaluation metrics → Feature explorer: supplies feature data (evidence: `src/views/FeaturesView.tsx`)
- Evaluation metrics → Policy tuning: supplies thresholds (evidence: `src/views/PolicyView.tsx`)
- Evaluation metrics → Overview: supplies summary (evidence: `src/views/OverviewView.tsx`)
- Evaluation metrics → Flow inspector and lab: supplies thresholds (evidence: `src/views/InspectorView.tsx`)
- Evaluation metrics → Telemetry explorer: supplies metrics (evidence: `src/views/TelemetryView.tsx`)
- Quick search → Evaluation metrics: searches data (evidence: `src/components/SearchModal.tsx`)
- Operator → Feature engineering: prepares input (evidence: `README.md`)
- Feature engineering → Supervised XGBoost: provides features (evidence: `README.md`)
- Feature engineering → Anomaly autoencoder: provides features (evidence: `README.md`)
- Supervised XGBoost → Hybrid fusion: contributes probability (evidence: `README.md`)
- Anomaly autoencoder → Hybrid fusion: contributes error (evidence: `README.md`)
- Hybrid fusion → Severity routing: routes score (evidence: `README.md`)
- Policy tuning → Severity routing: tunes thresholds (evidence: `README.md`)
