# prestonwest87/noc_ifc architecture

> Architecture diagram of the GitHub repository prestonwest87/noc_ifc, 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/prestonwest87/noc_ifc
- Repository: https://github.com/prestonwest87/noc_ifc

## Overview

The NOC Intelligence Fusion Center is an operations workspace for collecting and correlating cyber, infrastructure, regional-hazard, and physical-security intelligence, then supporting investigation, response, handoff, and reporting. The principal workflow runs from the analyst workspace and external feeds through API/workers and shared persistence into dashboards and response tools. The README documents the broader capability set; sampled excerpts establish selected API, authentication, database, AIOps, regional-feed, and LLM relationships. Several feature routes and workers are represented by their exact tree paths, but their internal calls were not sampled.

Main entry points: [`web/src/App.tsx`](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/App.tsx) (Web workspace), [`src/core/db.py`](https://github.com/prestonwest87/noc_ifc/blob/main/src/core/db.py) (Operational database), [`src/api/main.py`](https://github.com/prestonwest87/noc_ifc/blob/main/src/api/main.py) (REST and WebSocket API), [`src/services.py`](https://github.com/prestonwest87/noc_ifc/blob/main/src/services.py) (Domain services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Operator Workspace"]
  node_webapp["Web workspace<br/>[App.tsx]"]
  node_auth_ui["Session context<br/>[AuthContext.tsx]"]
  node_dashboard["Global dashboards<br/>[DashboardPage.tsx]"]
  node_telemetry_ui["Threat telemetry"]
  node_regional_ui["Regional grid"]
  node_hunting_ui["Threat hunting"]
  node_keyword_ui["Keyword analysis"]
  node_aiops_ui["AIOps RCA<br/>[AiopsRcaPage.tsx]"]
  node_logbook_ui["Shift logbook"]
  node_reporting_ui["Reporting<br/>[ReportingPage.tsx]"]
  node_email_ui["Operational email"]
  node_settings_ui["Administration<br/>[SettingsPage.tsx]"]
end

subgraph group_api["API and Access"]
  node_api_app["REST and WebSocket API<br/>[main.py]"]
  node_auth_routes["Authentication routes<br/>[auth.py]"]
  node_feature_routes["Feature API routes"]
end

subgraph group_intelligence["Intelligence Processing"]
  node_services["Domain services<br/>[services.py]"]
  node_aiops_engine["AIOps correlation<br/>[aiops_engine.py]"]
  node_categorizer["Article categorization<br/>[categorizer.py]"]
  node_ioc["IOC extraction<br/>[ioc_extractor.py]"]
  node_infra_worker["Regional hazards<br/>[infra_worker.py]"]
  node_cloud_worker["Cloud outages<br/>[cloud_worker.py]"]
  node_crime_worker["Crime incidents<br/>[crime_worker.py]"]
  node_cve_worker["CISA vulnerabilities<br/>[cve_worker.py]"]
  node_elastic_worker["Elastic events<br/>[elastic_worker.py]"]
  node_telemetry_worker["Network telemetry"]
  node_workers["Scheduled collection<br/>[scheduler.py]"]
  node_webhook["SolarWinds webhook"]
end

subgraph group_operations["Response and Reporting"]
  node_llm["LLM and briefs<br/>[llm.py]"]
  node_mailer["Email delivery<br/>[mailer.py]"]
  node_report_worker["Brief scheduling<br/>[report_worker.py]"]
end

subgraph group_platform["Shared Runtime"]
  node_database[("Operational database<br/>[db.py]")]
  node_schema["Operational records<br/>[schema.py]"]
  node_llm_providers["LLM provider config<br/>[llm_providers.py]"]
end

node_analyst(("NOC analyst"))

node_analyst -->|"uses"| node_webapp
node_webapp -->|"loads context"| node_auth_ui
node_auth_ui -->|"authenticates via"| node_api_app
node_webapp -->|"routes to"| node_dashboard
node_webapp -->|"routes to"| node_telemetry_ui
node_webapp -->|"routes to"| node_regional_ui
node_webapp -->|"routes to"| node_hunting_ui
node_webapp -->|"routes to"| node_keyword_ui
node_webapp -->|"routes to"| node_aiops_ui
node_webapp -->|"routes to"| node_logbook_ui
node_webapp -->|"routes to"| node_reporting_ui
node_webapp -->|"routes to"| node_email_ui
node_webapp -->|"routes to"| node_settings_ui
node_webapp -->|"calls REST"| node_api_app
node_api_app -->|"registers routes"| node_auth_routes
node_api_app -->|"registers routes"| node_feature_routes
node_api_app -->|"queries and filters"| node_services
node_services -->|"uses correlation"| node_aiops_engine
node_workers -->|"collects into"| node_database
node_infra_worker -->|"stores hazards"| node_database
node_cloud_worker -->|"stores events"| node_database
node_crime_worker -->|"stores incidents"| node_database
node_elastic_worker -->|"stores events"| node_database
node_webhook -->|"records alerts"| node_database
node_webhook -->|"correlates alerts"| node_aiops_engine
node_database -->|"maps records"| node_schema
node_llm -->|"uses protocols"| node_llm_providers
node_report_worker -.->|"schedules briefs"| node_llm
node_llm -.->|"prepares brief delivery"| node_mailer
node_services -.->|"sends notifications"| node_mailer

click node_webapp "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/App.tsx"
click node_auth_ui "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/utils/AuthContext.tsx"
click node_dashboard "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/DashboardPage.tsx"
click node_telemetry_ui "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/ThreatTelemetryPage.tsx"
click node_regional_ui "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/RegionalGridPage.tsx"
click node_hunting_ui "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/ThreatHuntingPage.tsx"
click node_keyword_ui "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/KeywordAnalysisPage.tsx"
click node_aiops_ui "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/AiopsRcaPage.tsx"
click node_logbook_ui "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/ShiftLogbookPage.tsx"
click node_reporting_ui "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/ReportingPage.tsx"
click node_email_ui "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/OperationalEmailPage.tsx"
click node_settings_ui "https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/SettingsPage.tsx"
click node_api_app "https://github.com/prestonwest87/noc_ifc/blob/main/src/api/main.py"
click node_auth_routes "https://github.com/prestonwest87/noc_ifc/blob/main/src/api/routes/auth.py"
click node_feature_routes "https://github.com/prestonwest87/noc_ifc/tree/main/src/api/routes"
click node_services "https://github.com/prestonwest87/noc_ifc/blob/main/src/services.py"
click node_aiops_engine "https://github.com/prestonwest87/noc_ifc/blob/main/src/services/aiops_engine.py"
click node_categorizer "https://github.com/prestonwest87/noc_ifc/blob/main/src/services/categorizer.py"
click node_ioc "https://github.com/prestonwest87/noc_ifc/blob/main/src/services/ioc_extractor.py"
click node_infra_worker "https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/infra_worker.py"
click node_cloud_worker "https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/cloud_worker.py"
click node_crime_worker "https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/crime_worker.py"
click node_cve_worker "https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/cve_worker.py"
click node_elastic_worker "https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/elastic_worker.py"
click node_telemetry_worker "https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/telemetry_worker.py"
click node_workers "https://github.com/prestonwest87/noc_ifc/blob/main/src/scheduler.py"
click node_webhook "https://github.com/prestonwest87/noc_ifc/blob/main/src/webhook_listener.py"
click node_llm "https://github.com/prestonwest87/noc_ifc/blob/main/src/utils/llm.py"
click node_mailer "https://github.com/prestonwest87/noc_ifc/blob/main/src/utils/mailer.py"
click node_report_worker "https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/report_worker.py"
click node_database "https://github.com/prestonwest87/noc_ifc/blob/main/src/core/db.py"
click node_schema "https://github.com/prestonwest87/noc_ifc/blob/main/src/models/schema.py"
click node_llm_providers "https://github.com/prestonwest87/noc_ifc/blob/main/src/core/llm_providers.py"

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_webapp,node_auth_ui,node_dashboard,node_telemetry_ui,node_regional_ui,node_hunting_ui,node_keyword_ui,node_aiops_ui,node_logbook_ui,node_reporting_ui,node_email_ui,node_settings_ui toneBlue
class node_api_app,node_auth_routes,node_feature_routes toneAmber
class node_services,node_aiops_engine,node_categorizer,node_ioc,node_infra_worker,node_cloud_worker,node_crime_worker,node_cve_worker,node_elastic_worker,node_telemetry_worker,node_workers,node_webhook toneMint
class node_llm,node_mailer,node_report_worker toneRose
class node_database,node_schema,node_llm_providers,node_analyst toneIndigo
```

## Components

### Operator Workspace

- [Web workspace](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/App.tsx): `web/src/App.tsx`
- [Session context](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/utils/AuthContext.tsx): `web/src/utils/AuthContext.tsx`
- [Global dashboards](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/DashboardPage.tsx): `web/src/pages/DashboardPage.tsx`
- [Threat telemetry](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/ThreatTelemetryPage.tsx): `web/src/pages/ThreatTelemetryPage.tsx`
- [Regional grid](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/RegionalGridPage.tsx): `web/src/pages/RegionalGridPage.tsx`
- [Threat hunting](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/ThreatHuntingPage.tsx): `web/src/pages/ThreatHuntingPage.tsx`
- [Keyword analysis](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/KeywordAnalysisPage.tsx): `web/src/pages/KeywordAnalysisPage.tsx`
- [AIOps RCA](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/AiopsRcaPage.tsx): `web/src/pages/AiopsRcaPage.tsx`
- [Shift logbook](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/ShiftLogbookPage.tsx): `web/src/pages/ShiftLogbookPage.tsx`
- [Reporting](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/ReportingPage.tsx): `web/src/pages/ReportingPage.tsx`
- [Operational email](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/OperationalEmailPage.tsx): `web/src/pages/OperationalEmailPage.tsx`
- [Administration](https://github.com/prestonwest87/noc_ifc/blob/main/web/src/pages/SettingsPage.tsx): `web/src/pages/SettingsPage.tsx`

### API and Access

- [REST and WebSocket API](https://github.com/prestonwest87/noc_ifc/blob/main/src/api/main.py): `src/api/main.py`
- [Authentication routes](https://github.com/prestonwest87/noc_ifc/blob/main/src/api/routes/auth.py): `src/api/routes/auth.py`
- [Feature API routes](https://github.com/prestonwest87/noc_ifc/tree/main/src/api/routes): `src/api/routes`

### Intelligence Processing

- [Domain services](https://github.com/prestonwest87/noc_ifc/blob/main/src/services.py): `src/services.py`
- [AIOps correlation](https://github.com/prestonwest87/noc_ifc/blob/main/src/services/aiops_engine.py): `src/services/aiops_engine.py`
- [Article categorization](https://github.com/prestonwest87/noc_ifc/blob/main/src/services/categorizer.py): `src/services/categorizer.py`
- [IOC extraction](https://github.com/prestonwest87/noc_ifc/blob/main/src/services/ioc_extractor.py): `src/services/ioc_extractor.py`
- [Regional hazards](https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/infra_worker.py): `src/workers/infra_worker.py`
- [Cloud outages](https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/cloud_worker.py): `src/workers/cloud_worker.py`
- [Crime incidents](https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/crime_worker.py): `src/workers/crime_worker.py`
- [CISA vulnerabilities](https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/cve_worker.py): `src/workers/cve_worker.py`
- [Elastic events](https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/elastic_worker.py): `src/workers/elastic_worker.py`
- [Network telemetry](https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/telemetry_worker.py): `src/workers/telemetry_worker.py`
- [Scheduled collection](https://github.com/prestonwest87/noc_ifc/blob/main/src/scheduler.py): `src/scheduler.py`
- [SolarWinds webhook](https://github.com/prestonwest87/noc_ifc/blob/main/src/webhook_listener.py): `src/webhook_listener.py`

### Response and Reporting

- [LLM and briefs](https://github.com/prestonwest87/noc_ifc/blob/main/src/utils/llm.py): `src/utils/llm.py`
- [Email delivery](https://github.com/prestonwest87/noc_ifc/blob/main/src/utils/mailer.py): `src/utils/mailer.py`
- [Brief scheduling](https://github.com/prestonwest87/noc_ifc/blob/main/src/workers/report_worker.py): `src/workers/report_worker.py`

### Shared Runtime

- [Operational database](https://github.com/prestonwest87/noc_ifc/blob/main/src/core/db.py): `src/core/db.py`
- [Operational records](https://github.com/prestonwest87/noc_ifc/blob/main/src/models/schema.py): `src/models/schema.py`
- [LLM provider config](https://github.com/prestonwest87/noc_ifc/blob/main/src/core/llm_providers.py): `src/core/llm_providers.py`

### Other components

- **NOC analyst**

## Connections

- NOC analyst → Web workspace: uses
- Web workspace → Session context: loads context (evidence: `web/src/App.tsx`)
- Session context → REST and WebSocket API: authenticates via (evidence: `web/src/utils/AuthContext.tsx`)
- Web workspace → Global dashboards: routes to (evidence: `web/src/App.tsx`)
- Web workspace → Threat telemetry: routes to (evidence: `web/src/App.tsx`)
- Web workspace → Regional grid: routes to (evidence: `web/src/App.tsx`)
- Web workspace → Threat hunting: routes to (evidence: `web/src/App.tsx`)
- Web workspace → Keyword analysis: routes to (evidence: `web/src/App.tsx`)
- Web workspace → AIOps RCA: routes to (evidence: `web/src/App.tsx`)
- Web workspace → Shift logbook: routes to (evidence: `web/src/App.tsx`)
- Web workspace → Reporting: routes to (evidence: `web/src/App.tsx`)
- Web workspace → Operational email: routes to (evidence: `web/src/App.tsx`)
- Web workspace → Administration: routes to (evidence: `web/src/App.tsx`)
- Web workspace → REST and WebSocket API: calls REST
- REST and WebSocket API → Authentication routes: registers routes (evidence: `src/api/main.py`)
- REST and WebSocket API → Feature API routes: registers routes (evidence: `src/api/main.py`)
- REST and WebSocket API → Domain services: queries and filters (evidence: `src/api/main.py`)
- Domain services → AIOps correlation: uses correlation (evidence: `src/services.py`)
- Scheduled collection → Operational database: collects into
- Regional hazards → Operational database: stores hazards (evidence: `src/workers/infra_worker.py`)
- Cloud outages → Operational database: stores events (evidence: `src/workers/cloud_worker.py`)
- Crime incidents → Operational database: stores incidents (evidence: `src/workers/crime_worker.py`)
- Elastic events → Operational database: stores events (evidence: `src/workers/elastic_worker.py`)
- SolarWinds webhook → Operational database: records alerts (evidence: `src/webhook_listener.py`)
- SolarWinds webhook → AIOps correlation: correlates alerts (evidence: `src/webhook_listener.py`)
- Operational database → Operational records: maps records (evidence: `src/core/db.py`)
- LLM and briefs → LLM provider config: uses protocols (evidence: `src/utils/llm.py`)
- Brief scheduling → LLM and briefs: schedules briefs
- LLM and briefs → Email delivery: prepares brief delivery
- Domain services → Email delivery: sends notifications (evidence: `src/services.py`)
