# m-uzair-asif/sentinel-dash architecture

> Architecture diagram of the GitHub repository m-uzair-asif/sentinel-dash, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/m-uzair-asif/sentinel-dash
- Repository: https://github.com/m-uzair-asif/sentinel-dash

## Overview

This repository is the Tracer security operations console frontend. Users onboard and configure a workspace, then monitor assets, host metrics, security events and incidents; analysts can inspect and analyze logs, while teams manage members and settings. The frontend uses an API client for backend operations and WebSocket-backed hooks/providers for live data. The README is empty, so capability coverage comes from the source index and sampled excerpts; some route-level interactions are therefore left unlinked.

Main entry points: [`frontend/lib/axiosInstance.ts`](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/lib/axiosInstance.ts) (HTTP API client), [`frontend/app/root/dashboard/page.tsx`](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/page.tsx) (Root dashboard), [`frontend/app/(auth)/onboarding/page.tsx`](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/(auth)/onboarding/page.tsx) (Workspace onboarding), [`frontend/hook/useSystemMetricsStream.tsx`](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/hook/useSystemMetricsStream.tsx) (Host metrics stream)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Public and onboarding"]
  node_onboarding["Workspace onboarding<br/>[page.tsx]"]
  node_marketing["Product and pricing<br/>[page.tsx]"]
end

subgraph group_monitor["Security monitoring"]
  node_employee_home["Employee dashboard<br/>[page.tsx]"]
  node_root_home["Root dashboard<br/>[page.tsx]"]
  node_assets["Asset setup"]
  node_metrics["Host metrics stream"]
  node_security_events["Security event history"]
  node_incident_views["Incident views<br/>[page.tsx]"]
  node_storyboard["Attack storyboard"]
  node_employee_incidents["Employee incident views<br/>[page.tsx]"]
end

subgraph group_response["Logs and response"]
  node_root_logs["Log management<br/>[page.tsx]"]
  node_log_detail["Log inspection and analysis<br/>[page.tsx]"]
  node_log_upload["Log upload"]
  node_employee_logs["Assigned log detail<br/>[page.tsx]"]
  node_audit["Audit history<br/>[page.tsx]"]
end

subgraph group_platform["Shared platform"]
  node_live_stream["Live SOC stream"]
  node_team["Team management<br/>[page.tsx]"]
  node_employee_team["Employee team view<br/>[page.tsx]"]
  node_settings["SOC settings<br/>[page.tsx]"]
  node_profile["Employee profile<br/>[page.tsx]"]
  node_auth["Session and role helpers<br/>[authHelper.ts]"]
  node_plans["Plans and feature access<br/>[plan.ts]"]
  node_preferences["SOC preferences<br/>[socSettings.ts]"]
  node_api_client["HTTP API client<br/>[axiosInstance.ts]"]
end

node_visitor(("Visitor"))
node_backend{{"Tracer API"}}
node_websocket{{"API WebSocket"}}

node_visitor -->|"explores"| node_marketing
node_visitor -->|"starts setup"| node_onboarding
node_onboarding -->|"saves preferences"| node_preferences
node_onboarding -->|"saves plan"| node_plans
node_onboarding -->|"uses API"| node_api_client
node_employee_home -->|"fetches dashboard data"| node_api_client
node_root_home -->|"fetches dashboard data"| node_api_client
node_root_home -->|"reads live metrics"| node_metrics
node_root_home -->|"reads event feed"| node_security_events
node_root_home -->|"renders storyboard"| node_storyboard
node_metrics -->|"checks session"| node_auth
node_metrics -->|"requests stream ticket"| node_api_client
node_metrics -->|"receives host metrics"| node_websocket
node_security_events -->|"loads stored events"| node_api_client
node_security_events -->|"merges live events"| node_live_stream
node_live_stream -->|"checks session"| node_auth
node_live_stream -->|"receives live updates"| node_websocket
node_incident_views -.->|"loads incidents"| node_api_client
node_employee_incidents -.->|"loads incidents"| node_api_client
node_root_logs -.->|"loads log records"| node_api_client
node_log_detail -.->|"requests analysis"| node_api_client
node_log_upload -.->|"uploads logs"| node_api_client
node_employee_logs -.->|"loads assigned log"| node_api_client
node_audit -.->|"loads audit history"| node_api_client
node_team -->|"manages members"| node_api_client
node_settings -->|"loads account data"| node_api_client
node_settings -->|"saves monitoring settings"| node_preferences
node_settings -->|"checks feature access"| node_plans
node_api_client -->|"sends HTTP requests"| node_backend
node_assets -.->|"connects assets"| node_api_client

click node_onboarding "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/(auth)/onboarding/page.tsx"
click node_marketing "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/page.tsx"
click node_employee_home "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/employee/dashboard/page.tsx"
click node_root_home "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/page.tsx"
click node_assets "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/component/dashboard/ConnectAssetWizardModal.tsx"
click node_metrics "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/hook/useSystemMetricsStream.tsx"
click node_security_events "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/hook/useSecurityEvents.tsx"
click node_live_stream "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/component/layout/LiveStreamProvider.tsx"
click node_incident_views "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/incidents/page.tsx"
click node_storyboard "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/component/dashboard/AttackStoryboard.tsx"
click node_employee_incidents "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/employee/dashboard/incidents/page.tsx"
click node_root_logs "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/logs/page.tsx"
click node_log_detail "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/logs/%5Bid%5D/page.tsx"
click node_log_upload "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/component/dashboard/logs/LogUploaderModal.tsx"
click node_employee_logs "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/employee/dashboard/logs/%5Bid%5D/page.tsx"
click node_audit "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/audit/page.tsx"
click node_team "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/team/page.tsx"
click node_employee_team "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/employee/dashboard/team/page.tsx"
click node_settings "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/settings/page.tsx"
click node_profile "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/employee/dashboard/profile/page.tsx"
click node_auth "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/lib/authHelper.ts"
click node_plans "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/lib/plan.ts"
click node_preferences "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/lib/socSettings.ts"
click node_api_client "https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/lib/axiosInstance.ts"

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_onboarding,node_marketing toneBlue
class node_employee_home,node_root_home,node_assets,node_metrics,node_security_events,node_incident_views,node_storyboard,node_employee_incidents toneAmber
class node_root_logs,node_log_detail,node_log_upload,node_employee_logs,node_audit,node_backend,node_websocket toneMint
class node_live_stream,node_team,node_employee_team,node_settings,node_profile,node_auth,node_plans,node_preferences,node_api_client toneRose
class node_visitor toneIndigo
```

## Components

### Public and onboarding

- [Workspace onboarding](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/(auth)/onboarding/page.tsx): `frontend/app/(auth)/onboarding/page.tsx`
- [Product and pricing](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/page.tsx): `frontend/app/page.tsx`

### Security monitoring

- [Employee dashboard](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/employee/dashboard/page.tsx): `frontend/app/employee/dashboard/page.tsx`
- [Root dashboard](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/page.tsx): `frontend/app/root/dashboard/page.tsx`
- [Asset setup](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/component/dashboard/ConnectAssetWizardModal.tsx): `frontend/component/dashboard/ConnectAssetWizardModal.tsx`
- [Host metrics stream](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/hook/useSystemMetricsStream.tsx): `frontend/hook/useSystemMetricsStream.tsx`
- [Security event history](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/hook/useSecurityEvents.tsx): `frontend/hook/useSecurityEvents.tsx`
- [Incident views](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/incidents/page.tsx): `frontend/app/root/dashboard/incidents/page.tsx`
- [Attack storyboard](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/component/dashboard/AttackStoryboard.tsx): `frontend/component/dashboard/AttackStoryboard.tsx`
- [Employee incident views](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/employee/dashboard/incidents/page.tsx): `frontend/app/employee/dashboard/incidents/page.tsx`

### Logs and response

- [Log management](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/logs/page.tsx): `frontend/app/root/dashboard/logs/page.tsx`
- [Log inspection and analysis](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/logs/%5Bid%5D/page.tsx): `frontend/app/root/dashboard/logs/[id]/page.tsx`
- [Log upload](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/component/dashboard/logs/LogUploaderModal.tsx): `frontend/component/dashboard/logs/LogUploaderModal.tsx`
- [Assigned log detail](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/employee/dashboard/logs/%5Bid%5D/page.tsx): `frontend/app/employee/dashboard/logs/[id]/page.tsx`
- [Audit history](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/audit/page.tsx): `frontend/app/root/dashboard/audit/page.tsx`

### Shared platform

- [Live SOC stream](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/component/layout/LiveStreamProvider.tsx): `frontend/component/layout/LiveStreamProvider.tsx`
- [Team management](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/team/page.tsx): `frontend/app/root/dashboard/team/page.tsx`
- [Employee team view](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/employee/dashboard/team/page.tsx): `frontend/app/employee/dashboard/team/page.tsx`
- [SOC settings](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/root/dashboard/settings/page.tsx): `frontend/app/root/dashboard/settings/page.tsx`
- [Employee profile](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/app/employee/dashboard/profile/page.tsx): `frontend/app/employee/dashboard/profile/page.tsx`
- [Session and role helpers](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/lib/authHelper.ts): `frontend/lib/authHelper.ts`
- [Plans and feature access](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/lib/plan.ts): `frontend/lib/plan.ts`
- [SOC preferences](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/lib/socSettings.ts): `frontend/lib/socSettings.ts`
- [HTTP API client](https://github.com/m-uzair-asif/sentinel-dash/blob/main/frontend/lib/axiosInstance.ts): `frontend/lib/axiosInstance.ts`

### Other components

- **Visitor**
- **Tracer API**
- **API WebSocket**

## Connections

- Visitor → Product and pricing: explores (evidence: `frontend/app/page.tsx`)
- Visitor → Workspace onboarding: starts setup (evidence: `frontend/app/(auth)/onboarding/page.tsx`)
- Workspace onboarding → SOC preferences: saves preferences (evidence: `frontend/app/(auth)/onboarding/page.tsx`)
- Workspace onboarding → Plans and feature access: saves plan (evidence: `frontend/app/(auth)/onboarding/page.tsx`)
- Workspace onboarding → HTTP API client: uses API (evidence: `frontend/app/(auth)/onboarding/page.tsx`)
- Employee dashboard → HTTP API client: fetches dashboard data (evidence: `frontend/app/employee/dashboard/page.tsx`)
- Root dashboard → HTTP API client: fetches dashboard data (evidence: `frontend/app/root/dashboard/page.tsx`)
- Root dashboard → Host metrics stream: reads live metrics (evidence: `frontend/app/root/dashboard/page.tsx`)
- Root dashboard → Security event history: reads event feed (evidence: `frontend/app/root/dashboard/page.tsx`)
- Root dashboard → Attack storyboard: renders storyboard (evidence: `frontend/app/root/dashboard/page.tsx`)
- Host metrics stream → Session and role helpers: checks session (evidence: `frontend/hook/useSystemMetricsStream.tsx`)
- Host metrics stream → HTTP API client: requests stream ticket (evidence: `frontend/hook/useSystemMetricsStream.tsx`)
- Host metrics stream → API WebSocket: receives host metrics (evidence: `frontend/hook/useSystemMetricsStream.tsx`)
- Security event history → HTTP API client: loads stored events (evidence: `frontend/hook/useSecurityEvents.tsx`)
- Security event history → Live SOC stream: merges live events (evidence: `frontend/hook/useSecurityEvents.tsx`)
- Live SOC stream → Session and role helpers: checks session (evidence: `frontend/component/layout/LiveStreamProvider.tsx`)
- Live SOC stream → API WebSocket: receives live updates (evidence: `frontend/component/layout/LiveStreamProvider.tsx`)
- Incident views → HTTP API client: loads incidents
- Employee incident views → HTTP API client: loads incidents
- Log management → HTTP API client: loads log records
- Log inspection and analysis → HTTP API client: requests analysis
- Log upload → HTTP API client: uploads logs
- Assigned log detail → HTTP API client: loads assigned log
- Audit history → HTTP API client: loads audit history
- Team management → HTTP API client: manages members (evidence: `frontend/app/root/dashboard/team/page.tsx`)
- SOC settings → HTTP API client: loads account data (evidence: `frontend/app/root/dashboard/settings/page.tsx`)
- SOC settings → SOC preferences: saves monitoring settings (evidence: `frontend/app/root/dashboard/settings/page.tsx`)
- SOC settings → Plans and feature access: checks feature access (evidence: `frontend/app/root/dashboard/settings/page.tsx`)
- HTTP API client → Tracer API: sends HTTP requests (evidence: `frontend/lib/axiosInstance.ts`)
- Asset setup → HTTP API client: connects assets
