How nethrakarthikkumar/aegis-supply-chain-risk-detector works
This Next.js supply-chain risk dashboard presents supply nodes on a tactical map, with threat summaries, node analysis, and mitigation recommendations. The main workflow starts at the dashboard: it loads default or industry-preset nodes, lets users select and inspect nodes, and supports adding nodes manually or by CSV. A risk-score API derives mock dynamic scores from the default node set. The mitigation API is present, but its behavior and wiring are not shown in the supplied excerpts, so its relationships are left unspecified.
Main entry points: app/page.tsx Dashboard Orchestrator · MapContainer.tsx Tactical Map · configure/page.tsx Configuration Page · ConfiguratorModal.tsx Node Configurator
Components 17
Dashboard
- Dashboard Orchestrator
app/page.tsx - Header and Alerts
components/hud/Header.tsx - Threat List
components/sidebar/ThreatList.tsx - Node Analysis
components/sidebar/WarRoomPanel.tsx - Command Terminal
components/hud/terminal/CommandTerminal.tsx - Tactical Map
components/map/MapContainer.tsx - Node Markers
components/map/NodeMarker.tsx
Node Configuration
- Configuration Page
app/configure/page.tsx - Node Configurator
components/config/ConfiguratorModal.tsx
Risk Data
- Industry Presets
lib/presets.ts - Default Supply Nodes
lib/data.ts - Supply Node Type
types/index.ts
API Services
- Risk Score API
app/api/risk-score/route.ts - Mitigation API
app/api/mitigation/route.ts
Other components
- Dashboard User
- Browser Client
- OpenStreetMap Tiles
Connections 24
- Dashboard User → Dashboard Orchestrator: opens
app/page.tsx - Dashboard Orchestrator → Header and Alerts: renders
app/page.tsx - Dashboard Orchestrator → Threat List: renders
app/page.tsx - Dashboard Orchestrator → Node Analysis: renders
app/page.tsx - Dashboard Orchestrator → Command Terminal: renders
app/page.tsx - Dashboard Orchestrator → Tactical Map: loads and renders
app/page.tsx - Dashboard Orchestrator → Node Configurator: renders
app/page.tsx - Dashboard Orchestrator → Default Supply Nodes: loads defaults
app/page.tsx - Dashboard Orchestrator → Industry Presets: selects industry data
app/page.tsx - Header and Alerts → Configuration Page: links to
components/hud/Header.tsx - Dashboard Orchestrator → Node Configurator: accepts node updates
app/page.tsx - Configuration Page → Node Configurator: renders
app/configure/page.tsx - Configuration Page → Industry Presets: loads presets
app/configure/page.tsx - Configuration Page → Default Supply Nodes: loads defaults
app/configure/page.tsx - Node Configurator → Dashboard Orchestrator: submits node updates
app/page.tsx - Dashboard Orchestrator → Tactical Map: passes nodes and selection
app/page.tsx - Tactical Map → Node Markers: creates node icons
components/map/MapContainer.tsx - Tactical Map → OpenStreetMap Tiles: requests map tiles
components/map/MapContainer.tsx - Tactical Map → Dashboard Orchestrator: reports selected node
app/page.tsx - Dashboard Orchestrator → Threat List: passes node selection
app/page.tsx - Dashboard Orchestrator → Node Analysis: passes selected node
app/page.tsx - Node Analysis → Default Supply Nodes: looks up node
components/sidebar/WarRoomPanel.tsx - Risk Score API → Default Supply Nodes: scores default nodes
app/api/risk-score/route.ts - Browser Client → Risk Score API: requests score