# puspharaj-7/osint architecture

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

- Interactive diagram: https://gitdiagram.com/puspharaj-7/osint
- Repository: https://github.com/puspharaj-7/osint

## Overview

This repository contains a role-based OSINT investigation platform, with a web application and a separate Expo-based mobile client. Staff can authenticate, create and manage investigations, review cases and intelligence, monitor activity, and view relationship graphs; clients have a portal for case progress and reports. The web entry point and client-portal service calls are visible in excerpts. Other page and service connections are represented cautiously because their source was not sampled.

Main entry points: [`src/App.tsx`](https://github.com/puspharaj-7/osint/blob/main/src/App.tsx) (Web router), [`src/pages/client/ClientPortal.tsx`](https://github.com/puspharaj-7/osint/blob/main/src/pages/client/ClientPortal.tsx) (Client portal), [`mobile/app/index.tsx`](https://github.com/puspharaj-7/osint/blob/main/mobile/app/index.tsx) (Mobile session gate), [`src/pages/NewInvestigation.tsx`](https://github.com/puspharaj-7/osint/blob/main/src/pages/NewInvestigation.tsx) (New investigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_webapp["Web router<br/>[App.tsx]"]
  node_landing["Landing and login<br/>[Landing.tsx]"]
  node_role_dash["Role dashboards"]
  node_client_portal["Client portal<br/>[ClientPortal.tsx]"]
end

subgraph group_investigation["Investigation workflow"]
  node_new_investigation["New investigation"]
  node_case_list["Case management<br/>[Cases.tsx]"]
  node_case_detail["Case details<br/>[CaseDetails.tsx]"]
  node_monitor["Global monitor<br/>[GlobalMonitor.tsx]"]
end

subgraph group_intelligence["Intelligence and reporting"]
  node_graph_view["Relationship graph<br/>[GraphView.tsx]"]
  node_alerts["Alerts<br/>[Alerts.tsx]"]
  node_api_orchestrator["OSINT orchestration<br/>[orchestrator.ts]"]
  node_intel_apis["OSINT source clients"]
  node_reports["Report service<br/>[reportService.ts]"]
end

subgraph group_platform["Identity and data"]
  node_auth["Authentication<br/>[authContext.tsx]"]
  node_store["Application store<br/>[store.tsx]"]
  node_case_service["Case service<br/>[caseService.ts]"]
  node_client_service["Client service<br/>[clientService.ts]"]
end

subgraph group_mobile["Mobile client"]
  node_mobile_gate["Mobile session gate<br/>[index.tsx]"]
  node_mobile_dashboard["Mobile dashboard<br/>[dashboard.tsx]"]
  node_mobile_cases["Mobile cases<br/>[cases.tsx]"]
  node_mobile_auth["Mobile authentication<br/>[authService.ts]"]
end

node_user(("User"))

node_user -->|"opens"| node_webapp
node_webapp -->|"routes to"| node_landing
node_webapp -->|"routes to"| node_role_dash
node_webapp -->|"routes to"| node_client_portal
node_webapp -->|"routes to"| node_new_investigation
node_webapp -->|"routes to"| node_case_list
node_webapp -->|"routes to"| node_case_detail
node_webapp -->|"routes to"| node_monitor
node_webapp -->|"routes to"| node_graph_view
node_webapp -->|"routes to"| node_alerts
node_webapp -->|"provides auth"| node_auth
node_webapp -->|"provides state"| node_store
node_client_portal -->|"loads client"| node_client_service
node_client_portal -->|"loads cases"| node_case_service
node_client_portal -->|"loads reports"| node_reports
node_new_investigation -.->|"may request enrichment"| node_api_orchestrator
node_api_orchestrator -.->|"may dispatch queries"| node_intel_apis
node_case_detail -.->|"may access reports"| node_reports
node_user -->|"opens"| node_mobile_gate
node_mobile_gate -->|"signs out"| node_mobile_auth
node_mobile_gate -->|"redirects to"| node_mobile_dashboard
node_mobile_dashboard -.->|"may navigate to"| node_mobile_cases

click node_webapp "https://github.com/puspharaj-7/osint/blob/main/src/App.tsx"
click node_landing "https://github.com/puspharaj-7/osint/blob/main/src/pages/Landing.tsx"
click node_role_dash "https://github.com/puspharaj-7/osint/blob/main/src/pages/investigator/InvestigatorDashboard.tsx"
click node_client_portal "https://github.com/puspharaj-7/osint/blob/main/src/pages/client/ClientPortal.tsx"
click node_new_investigation "https://github.com/puspharaj-7/osint/blob/main/src/pages/NewInvestigation.tsx"
click node_case_list "https://github.com/puspharaj-7/osint/blob/main/src/pages/Cases.tsx"
click node_case_detail "https://github.com/puspharaj-7/osint/blob/main/src/pages/CaseDetails.tsx"
click node_monitor "https://github.com/puspharaj-7/osint/blob/main/src/pages/investigator/GlobalMonitor.tsx"
click node_graph_view "https://github.com/puspharaj-7/osint/blob/main/src/pages/GraphView.tsx"
click node_alerts "https://github.com/puspharaj-7/osint/blob/main/src/pages/Alerts.tsx"
click node_api_orchestrator "https://github.com/puspharaj-7/osint/blob/main/src/lib/api/orchestrator.ts"
click node_intel_apis "https://github.com/puspharaj-7/osint/tree/main/src/lib/api"
click node_reports "https://github.com/puspharaj-7/osint/blob/main/src/services/reportService.ts"
click node_auth "https://github.com/puspharaj-7/osint/blob/main/src/lib/authContext.tsx"
click node_store "https://github.com/puspharaj-7/osint/blob/main/src/lib/store.tsx"
click node_case_service "https://github.com/puspharaj-7/osint/blob/main/src/services/caseService.ts"
click node_client_service "https://github.com/puspharaj-7/osint/blob/main/src/services/clientService.ts"
click node_mobile_gate "https://github.com/puspharaj-7/osint/blob/main/mobile/app/index.tsx"
click node_mobile_dashboard "https://github.com/puspharaj-7/osint/blob/main/mobile/app/(app)/dashboard.tsx"
click node_mobile_cases "https://github.com/puspharaj-7/osint/blob/main/mobile/app/(app)/cases.tsx"
click node_mobile_auth "https://github.com/puspharaj-7/osint/blob/main/mobile/services/authService.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_webapp,node_landing,node_role_dash,node_client_portal,node_user toneBlue
class node_new_investigation,node_case_list,node_case_detail,node_monitor toneAmber
class node_graph_view,node_alerts,node_api_orchestrator,node_intel_apis,node_reports toneMint
class node_auth,node_store,node_case_service,node_client_service toneRose
class node_mobile_gate,node_mobile_dashboard,node_mobile_cases,node_mobile_auth toneIndigo
```

## Components

### Web application

- [Web router](https://github.com/puspharaj-7/osint/blob/main/src/App.tsx): `src/App.tsx`
- [Landing and login](https://github.com/puspharaj-7/osint/blob/main/src/pages/Landing.tsx): `src/pages/Landing.tsx`
- [Role dashboards](https://github.com/puspharaj-7/osint/blob/main/src/pages/investigator/InvestigatorDashboard.tsx): `src/pages/investigator/InvestigatorDashboard.tsx`
- [Client portal](https://github.com/puspharaj-7/osint/blob/main/src/pages/client/ClientPortal.tsx): `src/pages/client/ClientPortal.tsx`

### Investigation workflow

- [New investigation](https://github.com/puspharaj-7/osint/blob/main/src/pages/NewInvestigation.tsx): `src/pages/NewInvestigation.tsx`
- [Case management](https://github.com/puspharaj-7/osint/blob/main/src/pages/Cases.tsx): `src/pages/Cases.tsx`
- [Case details](https://github.com/puspharaj-7/osint/blob/main/src/pages/CaseDetails.tsx): `src/pages/CaseDetails.tsx`
- [Global monitor](https://github.com/puspharaj-7/osint/blob/main/src/pages/investigator/GlobalMonitor.tsx): `src/pages/investigator/GlobalMonitor.tsx`

### Intelligence and reporting

- [Relationship graph](https://github.com/puspharaj-7/osint/blob/main/src/pages/GraphView.tsx): `src/pages/GraphView.tsx`
- [Alerts](https://github.com/puspharaj-7/osint/blob/main/src/pages/Alerts.tsx): `src/pages/Alerts.tsx`
- [OSINT orchestration](https://github.com/puspharaj-7/osint/blob/main/src/lib/api/orchestrator.ts): `src/lib/api/orchestrator.ts`
- [OSINT source clients](https://github.com/puspharaj-7/osint/tree/main/src/lib/api): `src/lib/api`
- [Report service](https://github.com/puspharaj-7/osint/blob/main/src/services/reportService.ts): `src/services/reportService.ts`

### Identity and data

- [Authentication](https://github.com/puspharaj-7/osint/blob/main/src/lib/authContext.tsx): `src/lib/authContext.tsx`
- [Application store](https://github.com/puspharaj-7/osint/blob/main/src/lib/store.tsx): `src/lib/store.tsx`
- [Case service](https://github.com/puspharaj-7/osint/blob/main/src/services/caseService.ts): `src/services/caseService.ts`
- [Client service](https://github.com/puspharaj-7/osint/blob/main/src/services/clientService.ts): `src/services/clientService.ts`

### Mobile client

- [Mobile session gate](https://github.com/puspharaj-7/osint/blob/main/mobile/app/index.tsx): `mobile/app/index.tsx`
- [Mobile dashboard](https://github.com/puspharaj-7/osint/blob/main/mobile/app/(app)/dashboard.tsx): `mobile/app/(app)/dashboard.tsx`
- [Mobile cases](https://github.com/puspharaj-7/osint/blob/main/mobile/app/(app)/cases.tsx): `mobile/app/(app)/cases.tsx`
- [Mobile authentication](https://github.com/puspharaj-7/osint/blob/main/mobile/services/authService.ts): `mobile/services/authService.ts`

### Other components

- **User**

## Connections

- User → Web router: opens (evidence: `src/App.tsx`)
- Web router → Landing and login: routes to (evidence: `src/App.tsx`)
- Web router → Role dashboards: routes to (evidence: `src/App.tsx`)
- Web router → Client portal: routes to (evidence: `src/App.tsx`)
- Web router → New investigation: routes to (evidence: `src/App.tsx`)
- Web router → Case management: routes to (evidence: `src/App.tsx`)
- Web router → Case details: routes to (evidence: `src/App.tsx`)
- Web router → Global monitor: routes to (evidence: `src/App.tsx`)
- Web router → Relationship graph: routes to (evidence: `src/App.tsx`)
- Web router → Alerts: routes to (evidence: `src/App.tsx`)
- Web router → Authentication: provides auth (evidence: `src/App.tsx`)
- Web router → Application store: provides state (evidence: `src/App.tsx`)
- Client portal → Client service: loads client (evidence: `src/pages/client/ClientPortal.tsx`)
- Client portal → Case service: loads cases (evidence: `src/pages/client/ClientPortal.tsx`)
- Client portal → Report service: loads reports (evidence: `src/pages/client/ClientPortal.tsx`)
- New investigation → OSINT orchestration: may request enrichment
- OSINT orchestration → OSINT source clients: may dispatch queries
- Case details → Report service: may access reports
- User → Mobile session gate: opens (evidence: `mobile/app/index.tsx`)
- Mobile session gate → Mobile authentication: signs out (evidence: `mobile/app/index.tsx`)
- Mobile session gate → Mobile dashboard: redirects to (evidence: `mobile/app/index.tsx`)
- Mobile dashboard → Mobile cases: may navigate to
