How unicodeveloper/globalthreatmap works
Global Threat & Event Intelligence Map is an OSINT dashboard for exploring live security events, country conflict intelligence, military and hazard layers, and research dossiers. The principal workflow loads event data into the dashboard, classifies it for map/feed presentation, and lets analysts inspect locations or research entities. Country conflicts and deep research are separate on-demand workflows; prediction markets and authentication add supporting capabilities. Edges reflect shown imports/calls or README-documented behavior; some route internals and unsampled integrations remain uncertain.
Main entry points: threat-map.tsx Threat Map · page.tsx Dashboard · entity-search.tsx Entity Research · route.ts Event API
Components 26
Situational Dashboard
- Dashboard
app/page.tsx - Event Loader
hooks/use-events.ts - Threat Map
components/map/threat-map.tsx - Event Feed
components/feed/event-feed.tsx - Research Sidebar
components/sidebar.tsx
Research Intelligence
- Country Conflicts
components/map/country-conflicts-modal.tsx - Entity Research
components/search/entity-search.tsx - Threat Markets
components/threat-markets-panel.tsx - Alert Rules
Data Services
- Event API
app/api/events/route.ts - Event Classification
lib/ai-classifier.ts - Valyu Client
lib/valyu.ts - Conflict API
app/api/countries/conflicts/route.ts - Entity API
app/api/entities/route.ts - Location Extraction
lib/geocoding.ts - Deep Research API
app/api/deepresearch/route.ts - Research Task Status
app/api/deepresearch/[taskId]/route.ts - Market Client
lib/polymarket.ts - Military Base Data
app/api/military-bases/route.ts - Hazard Layers
app/api
Client State
- Map State
stores/map-store.ts - Event State
stores/events-store.ts - Auth State
stores/auth-store.ts
Other components
- Analyst
- Valyu Search Service
- Mapbox
Connections 32
- Analyst → Dashboard: opens
app/page.tsx - Dashboard → Event Loader: loads events
app/page.tsx - Dashboard → Threat Map: renders
app/page.tsx - Dashboard → Research Sidebar: renders
app/page.tsx - Event Loader → Event State: updates
hooks/use-events.ts - Event Loader → Event API: fetches events
README.md - Event API → Valyu Client: searches
app/api/events/route.ts - Event API → Event Classification: classifies
app/api/events/route.ts - Event API → Valyu Search Service: queries
README.md - Threat Map → Map State: reads and updates
components/map/threat-map.tsx - Threat Map → Event State: reads events
components/map/threat-map.tsx - Threat Map → Country Conflicts: opens details
components/map/threat-map.tsx - Threat Map → Mapbox: renders map
README.md - Research Sidebar → Event Feed: renders
components/sidebar.tsx - Research Sidebar → Entity Research: renders
components/sidebar.tsx - Event Feed → Map State: selects location
- Country Conflicts → Conflict API: requests conflicts
README.md - Conflict API → Valyu Client: synthesizes conflict data
README.md - Entity Research → Entity API: researches entities
README.md - Entity API → Valyu Client: researches profiles
app/api/entities/route.ts - Entity API → Location Extraction: extracts locations
app/api/entities/route.ts - Entity Research → Map State: sets locations
components/search/entity-search.tsx - Entity Research → Deep Research API: starts dossier
README.md - Deep Research API → Valyu Client: starts research
README.md - Research Task Status → Valyu Client: polls research
README.md - Entity Research → Research Task Status: polls task
README.md - Dashboard → Threat Markets: renders panel
app/page.tsx - Threat Markets → Market Client: loads markets
components/threat-markets-panel.tsx - Threat Map → Military Base Data: loads bases
README.md - Threat Map → Hazard Layers: loads layers
README.md - Analyst → Alert Rules: configures alerts
README.md - Auth State → Event API: provides access token
README.md