docs/Docs_To_Review/DOCUMENTATION.md
AI-powered real-time global intelligence dashboard aggregating news, markets, geopolitical data, and infrastructure monitoring into a unified situation awareness interface.
🌐 Live Demo: worldmonitor.app | 💻 Tech Variant: tech.worldmonitor.app
World Monitor runs two specialized variants from a single codebase, each optimized for different monitoring needs:
| Variant | URL | Focus |
|---|---|---|
| 🌍 World Monitor | worldmonitor.app | Geopolitical intelligence, military tracking, conflict monitoring, infrastructure security |
| 💻 Tech Monitor | tech.worldmonitor.app | Technology sector intelligence, AI/startup ecosystems, cloud infrastructure, tech events |
A compact variant switcher in the header allows seamless navigation between variants while preserving your map position and panel configuration.
The primary variant focuses on geopolitical intelligence, military tracking, and infrastructure security monitoring.
| Panel | Purpose |
|---|---|
| AI Insights | LLM-synthesized world brief with focal point detection |
| AI Strategic Posture | Theater-level military force aggregation with strike capability assessment |
| Country Instability Index | Real-time stability scores for 20 monitored countries |
| Strategic Risk Overview | Composite risk score combining all intelligence modules |
| Infrastructure Cascade | Dependency analysis for cables, pipelines, and chokepoints |
| Live Intelligence | GDELT-powered topic feeds (Military, Cyber, Nuclear, Sanctions) |
80+ curated sources across geopolitics, defense, energy, think tanks, and regional news (Middle East, Africa, Latin America, Asia-Pacific).
The tech variant (tech.worldmonitor.app) provides specialized layers for technology sector monitoring.
| Layer | Description |
|---|---|
| Tech HQs | Headquarters of major tech companies (Big Tech, unicorns, public companies) |
| Startup Hubs | Major startup ecosystems with ecosystem tier, funding data, and notable companies |
| Cloud Regions | AWS, Azure, GCP data center regions with zone counts |
| Accelerators | Y Combinator, Techstars, 500 Startups, and regional accelerator locations |
| Tech Events | Upcoming conferences and tech events with countdown timers |
| Layer | Description |
|---|---|
| AI Datacenters | 111 major AI compute clusters (≥10,000 GPUs) |
| Undersea Cables | Submarine fiber routes critical for cloud connectivity |
| Internet Outages | Network disruptions affecting tech operations |
| Region | Notable Companies |
|---|---|
| Silicon Valley | Apple, Google, Meta, Nvidia, Intel, Cisco, Oracle, VMware |
| Seattle | Microsoft, Amazon, Tableau, Expedia |
| New York | Bloomberg, MongoDB, Datadog, Squarespace |
| London | Revolut, Deliveroo, Darktrace, Monzo |
| Tel Aviv | Wix, Check Point, Monday.com, Fiverr |
| Dubai/MENA | Careem, Noon, Anghami, Property Finder, Kitopi |
| Riyadh | Tabby, Presight.ai, Ninja, XPANCEO |
| Singapore | Grab, Razer, Sea Limited |
| Berlin | Zalando, Delivery Hero, N26, Celonis |
| Tokyo | Sony, Toyota, SoftBank, Rakuten |
Dense regions with many data points use intelligent clustering to prevent visual clutter:
How It Works
Grouping Logic
This prevents issues like Dubai and Riyadh companies appearing merged at global zoom, while still providing clean visualization at continental scales.
Layers are organized into logical groups for efficient monitoring:
Geopolitical
| Layer | Description |
|---|---|
| Conflicts | Active conflict zones with involved parties and status |
| Hotspots | Intelligence hotspots with activity levels based on news correlation |
| Sanctions | Countries under economic sanctions regimes |
| Protests | Live social unrest events from ACLED and GDELT |
Military & Strategic
| Layer | Description |
|---|---|
| Military Bases | 220+ global military installations from 9 operators |
| Nuclear Facilities | Power plants, weapons labs, enrichment sites |
| Gamma Irradiators | IAEA-tracked Category 1-3 radiation sources |
| APT Groups | State-sponsored cyber threat actors with geographic attribution |
| Spaceports | 12 major launch facilities (NASA, SpaceX, Roscosmos, CNSA, ESA, ISRO, JAXA) |
| Critical Minerals | Strategic mineral deposits (lithium, cobalt, rare earths) with operator info |
Infrastructure
| Layer | Description |
|---|---|
| Undersea Cables | 55 major submarine cable routes worldwide |
| Pipelines | 88 operating oil & gas pipelines across all continents |
| Internet Outages | Network disruptions via Cloudflare Radar |
| AI Datacenters | 111 major AI compute clusters (≥10,000 GPUs) |
Transport
| Layer | Description |
|---|---|
| Ships (AIS) | Live vessel tracking via AIS with chokepoint monitoring and 61 strategic ports* |
| Delays | FAA airport delay status and ground stops |
*AIS data via AISStream.io uses terrestrial receivers with stronger coverage in European/Atlantic waters. Middle East, Asia, and open ocean coverage is limited. Satellite AIS providers (Spire, Kpler) offer global coverage but require commercial licenses.
Natural Events
| Layer | Description |
|---|---|
| Natural | USGS earthquakes (M4.5+) + NASA EONET events (storms, wildfires, volcanoes, floods) |
| Weather | NWS severe weather warnings |
Economic & Labels
| Layer | Description |
|---|---|
| Economic | Tabbed economic panel with FRED indicators, EIA oil analytics, and USASpending.gov government contracts |
| Countries | Country boundary labels |
| Waterways | Strategic waterways and chokepoints |
Beyond raw data feeds, the dashboard provides synthesized intelligence panels:
| Panel | Purpose |
|---|---|
| AI Strategic Posture | Theater-level military aggregation with strike capability analysis |
| Strategic Risk Overview | Composite risk score combining all intelligence modules |
| Country Instability Index | Real-time stability scores for 20 monitored countries |
| Infrastructure Cascade | Dependency analysis for cables, pipelines, and chokepoints |
| Live Intelligence | GDELT-powered topic feeds (Military, Cyber, Nuclear, Sanctions) |
| Intel Feed | Curated defense and security news sources |
These panels transform raw signals into actionable intelligence by applying scoring algorithms, trend detection, and cross-source correlation.
Multi-source RSS aggregation across categories:
The 📡 SOURCES button in the header opens a global source management modal, enabling fine-grained control over which news sources appear in the dashboard.
Capabilities:
Use Cases:
Technical Details:
Dedicated panels provide focused coverage for strategically significant regions:
| Panel | Coverage | Key Topics |
|---|---|---|
| Middle East | MENA region | Israel-Gaza, Iran, Gulf states, Red Sea |
| Africa | Sub-Saharan Africa | Sahel instability, coups, insurgencies, resources |
| Latin America | Central & South America | Venezuela, drug trafficking, regional politics |
| Asia-Pacific | East & Southeast Asia | China-Taiwan, Korean peninsula, ASEAN |
| Energy & Resources | Global | Oil markets, nuclear, mining, energy security |
Each panel aggregates region-specific sources to provide concentrated situational awareness for that theater. This enables focused monitoring when global events warrant attention to a particular region.
Embedded YouTube live streams from major news networks with channel switching:
| Channel | Coverage |
|---|---|
| Bloomberg | Business & financial news |
| Sky News | UK & international news |
| Euronews | European perspective |
| DW News | German international broadcaster |
| France 24 | French global news |
| Al Arabiya | Middle East news (Arabic perspective) |
| Al Jazeera | Middle East & international news |
Core Features:
Performance Optimizations:
The live stream panel uses the YouTube IFrame Player API rather than raw iframe embedding. This provides several advantages:
| Feature | Benefit |
|---|---|
| Persistent player | No iframe reload on mute/play/channel change |
| API control | Direct playVideo(), pauseVideo(), mute() calls |
| Reduced bandwidth | Same stream continues across state changes |
| Faster switching | Channel changes via loadVideoById() |
Idle Detection:
To conserve resources, the panel implements automatic idle pausing:
| Trigger | Action |
|---|---|
| Tab hidden | Stream pauses (via Visibility API) |
| 5 min idle | Stream pauses (no mouse/keyboard activity) |
| User returns | Stream resumes automatically |
| Manual pause | User intent tracked separately |
This prevents background tabs from consuming bandwidth while preserving user preference for manually-paused streams.
Universal search across all data sources:
The dashboard continuously analyzes data streams to detect significant patterns and anomalies. Signals appear in the header badge (⚡) with confidence scores.
The header displays an Intelligence Findings badge that consolidates two types of alerts:
| Alert Type | Source | Examples |
|---|---|---|
| Correlation Signals | Cross-source pattern detection | Velocity spikes, market divergence, prediction leading |
| Unified Alerts | Module-generated alerts | CII spikes, geographic convergence, infrastructure cascades |
Interaction: Clicking the badge—or clicking an individual alert—opens a detail modal showing:
This provides a unified command center for all intelligence findings, whether generated by correlation analysis or module-specific threshold detection.
The system detects 12 distinct signal types across news, markets, military, and infrastructure domains:
News & Source Signals
| Signal | Trigger | What It Means |
|---|---|---|
| ◉ Convergence | 3+ source types report same story within 30 minutes | Multiple independent channels confirming the same event—higher likelihood of significance |
| △ Triangulation | Wire + Government + Intel sources align | The "authority triangle"—when official channels, wire services, and defense specialists all report the same thing |
| 🔥 Velocity Spike | Topic mention rate doubles with 6+ sources/hour | A story is accelerating rapidly across the news ecosystem |
Market Signals
| Signal | Trigger | What It Means |
|---|---|---|
| 🔮 Prediction Leading | Prediction market moves 5%+ with low news coverage | Markets pricing in information not yet reflected in news |
| 📰 News Leads Markets | High news velocity without corresponding market move | Breaking news not yet priced in—potential mispricing |
| ✓ Market Move Explained | Market moves 2%+ with correlated news coverage | Price action has identifiable news catalyst—entity correlation found related stories |
| 📊 Silent Divergence | Market moves 2%+ with no correlated news after entity search | Unexplained price action after exhaustive search—possible insider knowledge or algorithm-driven |
| 📈 Sector Cascade | Multiple related sectors moving in same direction | Market reaction cascading through correlated industries |
Infrastructure & Energy Signals
| Signal | Trigger | What It Means |
|---|---|---|
| 🛢 Flow Drop | Pipeline flow disruption keywords detected | Physical commodity supply constraint—may precede price spike |
| 🔁 Flow-Price Divergence | Pipeline disruption news without corresponding oil price move | Energy supply disruption not yet priced in—potential information edge |
Geopolitical & Military Signals
| Signal | Trigger | What It Means |
|---|---|---|
| 🌍 Geographic Convergence | 3+ event types in same 1°×1° grid cell | Multiple independent data streams converging on same location—heightened regional activity |
| 🔺 Hotspot Escalation | Multi-component score exceeds threshold with rising trend | Hotspot showing corroborated escalation across news, CII, convergence, and military data |
| ✈ Military Surge | Transport/fighter activity 2× baseline in theater | Unusual military airlift concentration—potential deployment or crisis response |
The correlation engine maintains rolling snapshots of:
Each refresh cycle compares current state to previous snapshot, applying thresholds and deduplication to avoid alert fatigue. Signals include confidence scores (60-95%) based on the strength of the pattern.
The signal engine uses a knowledge base of 100+ entities to intelligently correlate market movements with news coverage. Rather than simple keyword matching, the system understands that "AVGO" (the ticker) relates to "Broadcom" (the company), "AI chips" (the sector), and entities like "Nvidia" (a competitor).
Each entity in the registry contains:
| Field | Purpose | Example |
|---|---|---|
| ID | Canonical identifier | broadcom |
| Name | Display name | Broadcom Inc. |
| Type | Category | company, commodity, crypto, country, person |
| Aliases | Alternative names | AVGO, Broadcom, Broadcom Inc |
| Keywords | Related topics | AI chips, semiconductors, VMware |
| Sector | Industry classification | semiconductors |
| Related | Linked entities | nvidia, intel, amd |
| Type | Count | Examples |
|---|---|---|
| Companies | 50+ | Nvidia, Apple, Tesla, Broadcom, Boeing, Lockheed Martin, TSMC, Rheinmetall |
| Indices | 5+ | S&P 500, Dow Jones, NASDAQ |
| Sectors | 10+ | Technology (XLK), Finance (XLF), Energy (XLE), Healthcare (XLV), Semiconductors (SMH) |
| Commodities | 10+ | Oil (WTI), Gold, Natural Gas, Copper, Silver, VIX |
| Crypto | 3 | Bitcoin, Ethereum, Solana |
| Countries | 15+ | China, Russia, Iran, Israel, Ukraine, Taiwan, Saudi Arabia, UAE, Qatar, Turkey, Egypt |
When a market moves significantly (≥2%), the system:
AVGO → broadcom)If correlated news is found → "Market Move Explained" signal with the news headline. If no correlation after exhaustive search → "Silent Divergence" signal.
1. Ticker AVGO detected with +2.5% move
2. Entity lookup: broadcom
3. Search terms: ["Broadcom", "AVGO", "AI chips", "semiconductors", "VMware", "nvidia", "intel", "amd"]
4. News scan finds: "Broadcom AI Revenue Beats Estimates"
5. Result: "✓ Market Move Explained: Broadcom AI Revenue Beats Estimates"
Without this system, the same move would generate a generic "Silent Divergence: AVGO +2.5%" signal.
The entity registry spans strategically significant sectors:
| Sector | Examples | Keywords Tracked |
|---|---|---|
| Technology | Apple, Microsoft, Nvidia, Google, Meta, TSMC | AI, cloud, chips, datacenter, streaming |
| Defense & Aerospace | Lockheed Martin, Raytheon, Northrop Grumman, Boeing, Rheinmetall, Airbus | F-35, missiles, drones, tanks, defense contracts |
| Semiconductors | ASML, Samsung, AMD, Intel, Broadcom | Lithography, EUV, foundry, fab, wafer |
| Critical Minerals | Albemarle, SQM, MP Materials, Freeport-McMoRan | Lithium, rare earth, cobalt, copper |
| Finance | JPMorgan, Berkshire Hathaway, Visa, Mastercard | Banking, credit, investment, interest rates |
| Healthcare | Eli Lilly, Novo Nordisk, UnitedHealth, J&J | Pharma, drugs, GLP-1, obesity, diabetes |
| Energy | Exxon, Chevron, ConocoPhillips | Oil, gas, drilling, refinery, LNG |
| Consumer | Tesla, Walmart, Costco, Home Depot | EV, retail, grocery, housing |
This broad coverage enables correlation detection across diverse geopolitical and market events.
The entity registry is a knowledge base of 600+ entities with rich metadata for intelligent correlation:
{
id: 'NVDA', // Unique identifier
name: 'Nvidia', // Display name
type: 'company', // company | country | index | commodity | currency
sector: 'semiconductors',
searchTerms: ['Nvidia', 'NVDA', 'Jensen Huang', 'H100', 'CUDA'],
aliases: ['nvidia', 'nvda'],
competitors: ['AMD', 'INTC'],
related: ['AVGO', 'TSM', 'ASML'], // Related entities
country: 'US', // Headquarters/origin
}
Entity Types:
| Type | Count | Use Case |
|---|---|---|
company | 100+ | Market-news correlation, sector analysis |
country | 200+ | Focal point detection, CII scoring |
index | 20+ | Market overview, regional tracking |
commodity | 15+ | Energy and mineral correlation |
currency | 10+ | FX market tracking |
Lookup Indexes:
The registry provides multiple lookup paths for fast entity resolution:
| Index | Query Example | Use Case |
|---|---|---|
byId | 'NVDA' → Nvidia entity | Direct lookup from ticker |
byAlias | 'nvidia' → Nvidia entity | Case-insensitive name match |
byKeyword | 'AI chips' → [Nvidia, AMD, Intel] | News keyword extraction |
bySector | 'semiconductors' → all chip companies | Sector cascade analysis |
byCountry | 'US' → all US entities | Country-level aggregation |
To prevent alert fatigue, signals use type-specific TTL (time-to-live) values for deduplication:
| Signal Type | TTL | Rationale |
|---|---|---|
| Silent Divergence | 6 hours | Market moves persist; don't re-alert on same stock |
| Flow-Price Divergence | 6 hours | Energy events unfold slowly |
| Explained Market Move | 6 hours | Same correlation shouldn't repeat |
| Prediction Leading | 2 hours | Prediction markets update more frequently |
| Other signals | 30 minutes | Default for fast-moving events |
Market signals use symbol-only keys (e.g., silent_divergence:AVGO) rather than including the price change. This means a stock moving +2.5% then +3.0% won't trigger duplicate alerts—the first alert covers the story.
Not all sources are equal. The system implements a dual classification to prioritize authoritative information.
| Tier | Sources | Characteristics |
|---|---|---|
| Tier 1 | Reuters, AP, AFP, Bloomberg, White House, Pentagon | Wire services and official government—fastest, most reliable |
| Tier 2 | BBC, Guardian, NPR, Al Jazeera, CNBC, Financial Times | Major outlets—high editorial standards, some latency |
| Tier 3 | Defense One, Bellingcat, Foreign Policy, MIT Tech Review | Domain specialists—deep expertise, narrower scope |
| Tier 4 | Hacker News, The Verge, VentureBeat, aggregators | Useful signal but requires corroboration |
When multiple sources report the same story, the lowest tier (most authoritative) source is displayed as the primary, with others listed as corroborating.
Sources are also categorized by function for triangulation detection:
The dashboard visually flags sources with known state affiliations or propaganda risk, enabling users to appropriately weight information from these outlets.
Risk Levels
| Level | Visual | Meaning |
|---|---|---|
| High | ⚠ State Media (red) | Direct state control or ownership |
| Medium | ! Caution (orange) | Significant state influence or funding |
| Low | (none) | Independent editorial control |
Flagged Sources
| Source | Risk Level | State Affiliation | Notes |
|---|---|---|---|
| Xinhua | High | China (CCP) | Official news agency of PRC |
| TASS | High | Russia | State-owned news agency |
| RT | High | Russia | Registered foreign agent in US |
| CGTN | High | China (CCP) | China Global Television Network |
| PressTV | High | Iran | IRIB subsidiary |
| Al Jazeera | Medium | Qatar | Qatari government funded |
| TRT World | Medium | Turkey | Turkish state broadcaster |
Display Locations
Propaganda risk badges appear in:
Why Include State Media?
State-controlled outlets are included rather than filtered because:
The badges ensure users can contextualize state media reports rather than unknowingly treating them as independent journalism.
The dashboard extracts named entities (companies, countries, leaders, organizations) from news headlines to enable news-to-market correlation and entity-based filtering.
Headlines are scanned against a curated entity index containing:
| Entity Type | Examples | Purpose |
|---|---|---|
| Companies | Apple, Tesla, NVIDIA, Boeing | Market symbol correlation |
| Countries | Russia, China, Iran, Ukraine | Geopolitical attribution |
| Leaders | Putin, Xi Jinping, Khamenei | Political event tracking |
| Organizations | NATO, OPEC, Fed, SEC | Institutional news filtering |
| Commodities | Oil, Gold, Bitcoin | Commodity news correlation |
Each entity has multiple match patterns for comprehensive detection:
Entity: NVIDIA (NVDA)
Aliases: nvidia, nvda, jensen huang
Keywords: gpu, h100, a100, cuda, ai chip
Match Types:
- Name match: "NVIDIA announces..." → 95% confidence
- Alias match: "Jensen Huang says..." → 90% confidence
- Keyword match: "H100 shortage..." → 70% confidence
Entity extraction produces confidence scores based on match quality:
| Match Type | Confidence | Example |
|---|---|---|
| Direct name | 95% | "Apple reports earnings" |
| Alias | 90% | "Tim Cook announces..." |
| Keyword | 70% | "iPhone sales decline" |
| Related cluster | 63% | Secondary headline mention (90% × 0.7) |
When a market symbol moves significantly, the system searches news clusters for related entities:
AAPL → Apple)This enables signals like:
Every signal includes contextual information explaining its analytical significance:
| Field | Purpose | Example |
|---|---|---|
| Why It Matters | Analytical significance | "Markets pricing in information before news" |
| Actionable Insight | What to do next | "Monitor for breaking news in 1-6 hours" |
| Confidence Note | Signal reliability caveats | "Higher confidence if multiple markets align" |
| Signal | Why It Matters |
|---|---|
| Prediction Leading | Prediction markets often price in information before it becomes news—traders may have early access to developments |
| Silent Divergence | Market moving without identifiable catalyst—possible insider knowledge, algorithmic trading, or unreported development |
| Velocity Spike | Story accelerating across multiple sources—indicates growing significance and potential for market/policy impact |
| Triangulation | The "authority triangle" (wire + government + intel) aligned—gold standard for breaking news confirmation |
| Flow-Price Divergence | Supply disruption not yet reflected in prices—potential information edge or markets have better information |
| Hotspot Escalation | Geopolitical hotspot showing escalation across news, instability, convergence, and military presence |
This contextual layer transforms raw alerts into actionable intelligence by explaining the analytical reasoning behind each signal.
Related articles are grouped using Jaccard similarity on tokenized headlines:
similarity(A, B) = |A ∩ B| / |A ∪ B|
Tokenization:
Inverted Index Optimization: Rather than O(n²) pairwise comparison, the algorithm uses an inverted index:
Clustering Rules:
Each news cluster tracks publication velocity:
Headlines are scored against curated word lists:
Negative indicators: war, attack, killed, crisis, crash, collapse, threat, sanctions, invasion, missile, terror, assassination, recession, layoffs...
Positive indicators: peace, deal, agreement, breakthrough, recovery, growth, ceasefire, treaty, alliance, victory...
Score determines sentiment classification: negative (<-1), neutral (-1 to +1), positive (>+1)
News headlines are scanned against the entity knowledge base using word-boundary regex matching:
regex = /\b{escaped_alias}\b/gi
Index Structure: The entity index pre-builds five lookup maps for O(1) access:
| Map | Key | Value | Purpose |
|---|---|---|---|
byId | Entity ID | Full entity record | Direct lookup |
byAlias | Lowercase alias | Entity ID | Name matching |
byKeyword | Lowercase keyword | Set of entity IDs | Topic matching |
bySector | Sector name | Set of entity IDs | Sector queries |
byType | Entity type | Set of entity IDs | Type filtering |
Matching Algorithm:
Alias matching (highest confidence):
Keyword matching (medium confidence):
Related entity expansion:
related field, those entities are also checkedPerformance:
The system maintains rolling baselines for news volume per topic:
Deviation levels:
This enables detection of anomalous activity even when absolute numbers seem normal.
Hotspots on the map are not static threat levels. Activity is calculated in real-time based on news correlation.
Each hotspot defines keywords:
{
id: 'dc',
name: 'DC',
keywords: ['pentagon', 'white house', 'congress', 'cia', 'nsa', ...],
agencies: ['Pentagon', 'CIA', 'NSA', 'State Dept'],
}
The system counts matching news articles in the current feed, applies velocity analysis, and assigns activity levels:
| Level | Criteria | Visual |
|---|---|---|
| Low | <3 matches, normal velocity | Gray marker |
| Elevated | 3-6 matches OR elevated velocity | Yellow pulse |
| High | >6 matches OR spike velocity | Red pulse |
This creates a dynamic "heat map" of global attention based on live news flow.
Beyond visual activity levels, the system generates escalation signals when hotspots show significant changes across multiple dimensions. This multi-component approach reduces false positives by requiring corroboration from independent data streams.
Escalation Components
Each hotspot's escalation score blends four weighted components:
| Component | Weight | Data Source | What It Measures |
|---|---|---|---|
| News Activity | 35% | RSS feeds | Matching news count, breaking flags, velocity |
| CII Contribution | 25% | Country Instability Index | Instability score of associated country |
| Geographic Convergence | 25% | Multi-source events | Event type diversity in geographic cell |
| Military Activity | 15% | OpenSky/AIS | Flights and vessels within 200km |
Score Calculation
static_baseline = hotspot.baselineRisk // 1-5 per hotspot
dynamic_score = (
news_component × 0.35 +
cii_component × 0.25 +
geo_component × 0.25 +
military_component × 0.15
)
proximity_boost = hotspot_proximity_multiplier // 1.0-2.0
final_score = (static_baseline × 0.30 + dynamic_score × 0.70) × proximity_boost
Trend Detection
The system maintains 48-point history (24 hours at 30-minute intervals) per hotspot:
Signal Generation
Escalation signals (hotspot_escalation) are emitted when:
Signal Context
| Field | Content |
|---|---|
| Why It Matters | "Geopolitical hotspot showing significant escalation based on news activity, country instability, geographic convergence, and military presence" |
| Actionable Insight | "Increase monitoring priority; assess downstream impacts on infrastructure, markets, and regional stability" |
| Confidence Note | "Weighted by multiple data sources—news (35%), CII (25%), geo-convergence (25%), military (15%)" |
This multi-signal approach means a hotspot escalation signal represents corroborated evidence across independent data streams—not just a spike in news mentions.
The FOCUS selector in the header provides instant navigation to strategic regions. Each preset is calibrated to center on the region's geographic area with an appropriate zoom level.
| Region | Coverage | Primary Use Cases |
|---|---|---|
| Global | Full world view | Overview, cross-regional comparison |
| Americas | North America focus | US monitoring, NORAD activity |
| Europe | EU + UK + Scandinavia + Western Russia | NATO activity, energy infrastructure |
| MENA | Middle East + North Africa | Conflict zones, oil infrastructure |
| Asia | East Asia + Southeast Asia | China-Taiwan, Korean peninsula |
| Latin America | Central + South America | Regional instability, drug trafficking |
| Africa | Sub-Saharan Africa | Conflict zones, resource extraction |
| Oceania | Australia + Pacific | Indo-Pacific activity |
The FOCUS dropdown enables rapid context switching:
Regional views are encoded in shareable URLs, enabling direct links to specific geographic contexts.
By default, the map scrolls with the page, allowing you to scroll down to view panels below. The pin button (📌) in the map header toggles sticky behavior:
| State | Behavior |
|---|---|
| Unpinned (default) | Map scrolls with page; scroll down to see panels |
| Pinned | Map stays fixed at top; panels scroll beneath |
Pin state persists across sessions via localStorage.
The dashboard maintains a real-time instability score for 20 strategically significant countries. Rather than relying on static risk ratings, the CII dynamically reflects current conditions based on multiple input streams.
| Region | Countries |
|---|---|
| Americas | United States, Venezuela |
| Europe | Germany, France, United Kingdom, Poland |
| Eastern Europe | Russia, Ukraine |
| Middle East | Iran, Israel, Saudi Arabia, Turkey, Syria, Yemen |
| Asia-Pacific | China, Taiwan, North Korea, India, Pakistan, Myanmar |
Each country's CII is computed from three weighted components:
| Component | Weight | Data Sources | What It Measures |
|---|---|---|---|
| Unrest | 40% | ACLED protests, GDELT events | Civil unrest intensity, fatalities, event severity |
| Security | 30% | Military flights, naval vessels | Unusual military activity patterns |
| Information | 30% | News velocity, alert clusters | Media attention intensity and acceleration |
Unrest Score:
base = min(50, protest_count × 8)
fatality_boost = min(30, total_fatalities × 5)
severity_boost = min(20, high_severity_count × 10)
unrest = min(100, base + fatality_boost + severity_boost)
Security Score:
flight_score = min(50, military_flights × 3)
vessel_score = min(30, naval_vessels × 5)
security = min(100, flight_score + vessel_score)
Information Score:
base = min(40, news_count × 5)
velocity_boost = min(40, avg_velocity × 10)
alert_boost = 20 if any_alert else 0
information = min(100, base + velocity_boost + alert_boost)
Final CII = round(unrest × 0.4 + security × 0.3 + information × 0.3)
Raw news volume creates a natural bias—English-language media generates far more coverage of the US, UK, and Western Europe than conflict zones. Without correction, stable democracies would consistently score higher than actual crisis regions.
Log Scaling for High-Volume Countries
Countries with high media coverage receive logarithmic dampening on their unrest and information scores:
if (newsVolume > threshold):
dampingFactor = 1 / (1 + log10(newsVolume / threshold))
score = rawScore × dampingFactor
This ensures the US receiving 50 news mentions about routine political activity doesn't outscore Ukraine with 10 mentions about active combat.
Conflict Zone Floor Scores
Active conflict zones have minimum score floors that prevent them from appearing stable during data gaps or low-coverage periods:
| Country | Floor | Rationale |
|---|---|---|
| Ukraine | 55 | Active war with Russia |
| Syria | 50 | Ongoing civil war |
| Yemen | 50 | Ongoing civil war |
| Myanmar | 45 | Military coup, civil conflict |
| Israel | 45 | Active Gaza conflict |
The floor applies after the standard calculation—if the computed score exceeds the floor, the computed score is used. This prevents false "all clear" signals while preserving sensitivity to actual escalations.
| Level | Score Range | Visual | Meaning |
|---|---|---|---|
| Critical | 81-100 | Red | Active crisis or major escalation |
| High | 66-80 | Orange | Significant instability requiring close monitoring |
| Elevated | 51-65 | Yellow | Above-normal activity patterns |
| Normal | 31-50 | Gray | Baseline geopolitical activity |
| Low | 0-30 | Green | Unusually quiet period |
The CII tracks 24-hour changes to identify trajectory:
Beyond the base component scores, several contextual factors can boost a country's CII score (up to a combined maximum of 23 additional points):
| Boost Type | Max Points | Condition | Purpose |
|---|---|---|---|
| Hotspot Activity | 10 | Events near defined hotspots | Captures localized escalation |
| News Urgency | 5 | Information component ≥50 | High media attention indicator |
| Focal Point | 8 | AI focal point detection on country | Multi-source convergence indicator |
Hotspot Boost Calculation:
News Urgency Boost Tiers:
Focal Point Boost Tiers:
These boosts are designed to elevate scores only when corroborating evidence exists—a country must have both high base scores AND contextual signals to reach extreme levels.
To eliminate the "cold start" problem where new users would see blank data during the Learning Mode warmup, CII scores are pre-computed server-side via the /api/risk-scores endpoint. See the Server-Side Risk Score API section for details.
On dashboard startup, the CII system enters Learning Mode—a 15-minute calibration period where scores are calculated but alerts are suppressed. This prevents the flood of false-positive alerts that would otherwise occur as the system establishes baseline values.
Note: Server-side pre-computation now provides immediate scores to new users—Learning Mode primarily affects client-side dynamic adjustments and alert generation rather than initial score display.
Why 15 minutes? Real-world testing showed that CII scores stabilize after approximately 10-20 minutes of data collection. The 15-minute window provides sufficient time for:
Visual Indicators
During Learning Mode, the dashboard provides clear visual feedback:
| Location | Indicator |
|---|---|
| CII Panel | Yellow banner with progress bar and countdown timer |
| Strategic Risk Overview | "Learning Mode - Xm until reliable" status |
| Score Display | Scores shown at 60% opacity (dimmed) |
Behavior
Minutes 0-15: Learning Mode Active
- CII scores calculated and displayed (dimmed)
- Trend detection active (stores baseline)
- All CII-related alerts suppressed
- Progress bar fills as time elapses
After 15 minutes: Learning Complete
- Full opacity scores
- Alert generation enabled (threshold ≥10 point change)
- "All data sources active" status shown
This ensures users understand that early scores are provisional while preventing alert fatigue during the calibration period.
Countries are matched to data via keyword lists:
russia, moscow, kremlin, putinchina, beijing, xi jinping, prctaiwan, taipeiThis enables attribution of news and events to specific countries even when formal country codes aren't present in the source data.
One of the most valuable intelligence signals is when multiple independent data streams converge on the same geographic area. This often precedes significant events.
The system maintains a real-time grid of geographic cells (1° × 1° resolution). Each cell tracks four event types:
| Event Type | Source | Detection Method |
|---|---|---|
| Protests | ACLED/GDELT | Direct geolocation |
| Military Flights | OpenSky | ADS-B position |
| Naval Vessels | AIS stream | Ship position |
| Earthquakes | USGS | Epicenter location |
When 3 or more different event types occur within the same cell during a 24-hour window, a convergence alert is generated.
type_score = event_types × 25 # Max 100 (4 types)
count_boost = min(25, total_events × 2)
convergence_score = min(100, type_score + count_boost)
| Types Converging | Score Range | Alert Level |
|---|---|---|
| 4 types | 80-100 | Critical |
| 3 types | 60-80 | High |
| 3 types (low count) | 40-60 | Medium |
Taiwan Strait Buildup
25°N, 121°EMiddle East Flashpoint
32°N, 35°EIndividual data points are often noise. But when protests break out, military assets reposition, and seismic monitors detect anomalies in the same location simultaneously, it warrants attention—regardless of whether any single source is reporting a crisis.
Critical infrastructure is interdependent. A cable cut doesn't just affect connectivity—it creates cascading effects across dependent countries and systems. The cascade analysis system visualizes these dependencies.
The system builds a graph of 279 infrastructure nodes and 280 dependency edges:
| Node Type | Count | Examples |
|---|---|---|
| Undersea Cables | 18 | MAREA, FLAG Europe-Asia, SEA-ME-WE 6 |
| Pipelines | 88 | Nord Stream, Trans-Siberian, Keystone |
| Ports | 61 | Singapore, Rotterdam, Shenzhen |
| Chokepoints | 8 | Suez, Hormuz, Malacca |
| Countries | 105 | End nodes representing national impact |
When a user selects an infrastructure asset for analysis, a breadth-first cascade propagates through the graph:
1. Start at source node (e.g., "cable:marea")
2. For each dependent node:
impact = edge_strength × disruption_level × (1 - redundancy)
3. Categorize impact:
- Critical: impact > 0.8
- High: impact > 0.5
- Medium: impact > 0.2
- Low: impact ≤ 0.2
4. Recurse to depth 3 (prevent infinite loops)
The system accounts for alternative routes:
MAREA Cable Disruption:
Source: MAREA (US ↔ Spain, 200 Tbps)
Countries Affected: 4
- Spain: Medium (redundancy via other Atlantic cables)
- Portugal: Low (secondary landing)
- France: Low (alternative routes via UK)
- US: Low (high redundancy)
Alternative Routes: TAT-14 (35%), Hibernia (22%), AEConnect (18%)
FLAG Europe-Asia Disruption:
Source: FLAG Europe-Asia (UK ↔ Japan)
Countries Affected: 7
- India: Medium (major capacity share)
- UAE, Saudi Arabia: Medium (limited alternatives)
- UK, Japan: Low (high redundancy)
Alternative Routes: SEA-ME-WE 6 (11%), 2Africa (8%), Falcon (8%)
The dashboard monitors real-time cable operations and advisories from official maritime warning systems, providing early warning of potential connectivity disruptions.
| Source | Coverage | Data Type |
|---|---|---|
| NGA Warnings | Global | NAVAREA maritime warnings |
| Cable Operators | Route-specific | Maintenance advisories |
The system parses NGA (National Geospatial-Intelligence Agency) maritime warnings for cable-related activity:
| Type | Trigger | Map Display |
|---|---|---|
| Cable Advisory | Any cable-related NAVAREA warning | ⚠ Yellow marker at location |
| Repair Ship | Cableship name detected in warning | 🚢 Ship icon with status |
When a cableship is mentioned in warnings, the system extracts:
This enables monitoring of ongoing repair operations before official carrier announcements.
Undersea cables carry 95% of intercontinental data traffic. A cable cut can:
Early visibility into cable operations—even maintenance windows—provides advance warning for contingency planning.
The Strategic Risk Overview provides a composite dashboard that synthesizes all intelligence modules into a single risk assessment.
The strategic risk score combines three components:
| Component | Weight | Calculation |
|---|---|---|
| Convergence | 40% | min(100, convergence_zones × 20) |
| CII Deviation | 35% | min(100, avg_deviation × 2) |
| Infrastructure | 25% | min(100, incidents × 25) |
| Score | Level | Trend Icon | Meaning |
|---|---|---|---|
| 70-100 | Critical | 📈 Escalating | Multiple converging crises |
| 50-69 | Elevated | ➡️ Stable | Heightened global tension |
| 30-49 | Moderate | ➡️ Stable | Normal fluctuation |
| 0-29 | Low | 📉 De-escalating | Unusually quiet period |
Alerts from all modules are merged using temporal and spatial deduplication:
When alerts merge, they become composite alerts that show the full picture:
Type: Composite Alert
Title: Convergence + CII + Infrastructure: Ukraine
Components:
- Geographic Convergence: 4 event types in Kyiv region
- CII Spike: Ukraine +15 points (Critical)
- Infrastructure: Black Sea cables at risk
Priority: Critical
| Priority | Criteria |
|---|---|
| Critical | CII critical level, convergence score ≥80, cascade critical impact |
| High | CII high level, convergence score ≥60, cascade affecting ≥5 countries |
| Medium | CII change ≥10 points, convergence score ≥40 |
| Low | Minor changes and low-impact events |
The system tracks the composite score over time:
The dashboard integrates real-time foot traffic data from strategic locations near government and military facilities. This "Pizza Index" concept—tracking late-night activity spikes at restaurants near the Pentagon, Langley, and other facilities—provides an unconventional indicator of crisis activity.
The system aggregates percentage-of-usual metrics from monitored locations:
Aggregate activity maps to a 5-level readiness scale:
| Level | Threshold | Label | Meaning |
|---|---|---|---|
| DEFCON 1 | ≥90% | COCKED PISTOL | Maximum readiness; crisis response active |
| DEFCON 2 | ≥75% | FAST PACE | High activity; significant event underway |
| DEFCON 3 | ≥50% | ROUND HOUSE | Elevated; above-normal operations |
| DEFCON 4 | ≥25% | DOUBLE TAKE | Increased vigilance |
| DEFCON 5 | <25% | FADE OUT | Normal peacetime operations |
The indicator also displays geopolitical tension scores from GDELT (Global Database of Events, Language, and Tone):
| Pair | Monitored Relationship |
|---|---|
| USA ↔ Russia | Primary nuclear peer adversary |
| USA ↔ China | Economic and military competition |
| USA ↔ Iran | Middle East regional tensions |
| Israel ↔ Iran | Direct conflict potential |
| China ↔ Taiwan | Cross-strait relations |
| Russia ↔ Ukraine | Active conflict zone |
Each pair shows:
This provides context for the activity levels—a spike at Pentagon locations during a rising China-Taiwan tension score carries different weight than during a quiet period.
News clusters are automatically enriched with nearby critical infrastructure. When a story mentions a geographic region, the system identifies relevant assets within 600km, providing immediate operational context.
| Type | Source | Examples |
|---|---|---|
| Pipelines | 88 global routes | Nord Stream, Keystone, Trans-Siberian |
| Undersea Cables | 55 major cables | TAT-14, SEA-ME-WE, Pacific Crossing |
| AI Datacenters | 111 clusters (≥10k GPUs) | Azure East US, GCP Council Bluffs |
| Military Bases | 220+ installations | Ramstein, Diego Garcia, Guam |
| Nuclear Facilities | 100+ sites | Power plants, weapons labs, enrichment |
The system infers the geographic focus of news stories through:
Assets are ranked by Haversine distance from the inferred location:
d = 2r × arcsin(√(sin²(Δφ/2) + cos(φ₁) × cos(φ₂) × sin²(Δλ/2)))
Up to 3 assets per type are displayed, sorted by proximity.
A news cluster about "pipeline explosion in Germany" would show:
Clicking an asset zooms the map to its location and displays detailed information.
Create personalized keyword alerts that scan all incoming news:
Monitors persist across sessions via LocalStorage.
The dashboard highlights newly-arrived items so you can quickly identify what changed since your last look.
| Indicator | Duration | Purpose |
|---|---|---|
| NEW tag | 2 minutes | Badge on items that just appeared |
| Glow highlight | 30 seconds | Subtle animation drawing attention |
| Panel badge | Until viewed | Count of new items in collapsed panels |
The system uses IntersectionObserver to detect when panels become visible:
Each panel maintains independent activity state:
This enables focused monitoring—you can collapse panels you've reviewed and see at a glance which have new activity.
The dashboard captures periodic snapshots for historical analysis:
Baselines (7-day and 30-day averages) are stored in IndexedDB for deviation analysis.
The Ships layer provides real-time vessel tracking and maritime domain awareness through AIS (Automatic Identification System) data.
The system monitors eight critical maritime chokepoints where disruptions could impact global trade:
| Chokepoint | Strategic Importance |
|---|---|
| Strait of Hormuz | 20% of global oil transits; Iran control |
| Suez Canal | Europe-Asia shipping; single point of failure |
| Strait of Malacca | Primary Asia-Pacific oil route |
| Bab el-Mandeb | Red Sea access; Yemen/Houthi activity |
| Panama Canal | Americas east-west transit |
| Taiwan Strait | Semiconductor supply chain; PLA activity |
| South China Sea | Contested waters; island disputes |
| Black Sea | Ukraine grain exports; Russian naval activity |
Vessel positions are aggregated into a 2° grid to calculate traffic density. Each cell tracks:
Density changes of ±30% trigger alerts, indicating potential congestion, diversions, or blockades.
The system monitors for AIS gaps—vessels that stop transmitting their position. An AIS gap exceeding 60 minutes in monitored regions may indicate:
Vessels reappearing after gaps are flagged for the duration of the session.
AIS data flows through a WebSocket relay for real-time updates without polling:
AISStream → WebSocket Relay → Browser
(ws://relay)
The connection automatically reconnects on disconnection with a 30-second backoff. When the Ships layer is disabled, the WebSocket disconnects to conserve resources.
Some APIs block requests from cloud providers (Vercel, AWS, Cloudflare Workers). A Railway relay server provides authenticated access:
Browser → Railway Relay → External APIs
(Node.js) (AIS, OpenSky, RSS)
Relay Functions:
| Endpoint | Purpose | Authentication |
|---|---|---|
/ (WebSocket) | AIS vessel stream | AISStream API key |
/opensky | Military aircraft | OAuth2 Bearer token |
/rss | Blocked RSS feeds | None (user-agent spoofing) |
/health | Status check | None |
Environment Variables (Railway):
AISSTREAM_API_KEY - AIS data accessOPENSKY_CLIENT_ID - OAuth2 client IDOPENSKY_CLIENT_SECRET - OAuth2 client secretWhy Railway?
The relay is stateless—it simply authenticates and proxies requests. All caching and processing happens client-side or in Vercel Edge Functions.
The Military layer provides specialized tracking of military vessels and aircraft, identifying assets by their transponder characteristics and monitoring activity patterns.
Vessels are identified as military through multiple methods:
MMSI Analysis: Maritime Mobile Service Identity numbers encode the vessel's flag state. The system maintains a mapping of 150+ country codes to identify naval vessels:
| MID Range | Country | Notes |
|---|---|---|
| 338-339 | USA | US Navy, Coast Guard |
| 273 | Russia | Russian Navy |
| 412-414 | China | PLAN vessels |
| 232-235 | UK | Royal Navy |
| 226-228 | France | Marine Nationale |
Known Vessel Database: A curated database of 50+ named vessels enables positive identification when AIS transmits vessel names:
| Category | Tracked Vessels |
|---|---|
| US Carriers | All 11 Nimitz/Ford-class (CVN-68 through CVN-78) |
| UK Carriers | HMS Queen Elizabeth (R08), HMS Prince of Wales (R09) |
| Chinese Carriers | Liaoning (16), Shandong (17), Fujian (18) |
| Russian Carrier | Admiral Kuznetsov |
| Notable Destroyers | USS Zumwalt (DDG-1000), HMS Defender (D36), HMS Duncan (D37) |
| Research/Intel | USNS Victorious (T-AGOS-19), USNS Impeccable (T-AGOS-23), Yuan Wang |
Vessel Classification Algorithm:
Callsign Patterns: Known military callsign prefixes (NAVY, GUARD, etc.) provide secondary identification.
The system monitors 12 critical maritime chokepoints with configurable detection radii:
| Chokepoint | Strategic Significance |
|---|---|
| Strait of Hormuz | Persian Gulf access, oil transit |
| Suez Canal | Mediterranean-Red Sea link |
| Strait of Malacca | Pacific-Indian Ocean route |
| Taiwan Strait | Cross-strait tensions |
| Bosphorus | Black Sea access |
| GIUK Gap | North Atlantic submarine route |
When military vessels enter these zones, proximity alerts are generated.
Activity near 12 major naval installations is tracked:
Vessels within 50km of these bases are flagged, enabling detection of unusual activity patterns.
Military aircraft are tracked via the OpenSky Network using ADS-B data. OpenSky blocks unauthenticated requests from cloud provider IPs (Vercel, Railway, AWS), so aircraft tracking requires a relay server with credentials.
Authentication:
OPENSKY_CLIENT_ID and OPENSKY_CLIENT_SECRETIdentification Methods:
Tracked Metrics:
Activity Detection:
The system maintains position trails for tracked vessels:
This enables detection of loitering, circling, or other anomalous behavior patterns.
The system continuously monitors military aircraft activity to detect surge events—significant increases above normal operational baselines that may indicate mobilization, exercises, or crisis response.
Theater Classification
Military activity is analyzed across five geographic theaters:
| Theater | Coverage | Key Areas |
|---|---|---|
| Middle East | Persian Gulf, Levant, Arabian Peninsula | US CENTCOM activity, Iranian airspace |
| Eastern Europe | Ukraine, Baltics, Black Sea | NATO-Russia border activity |
| Western Europe | Central Europe, North Sea | NATO exercises, air policing |
| Pacific | East Asia, Southeast Asia | Taiwan Strait, Korean Peninsula |
| Horn of Africa | Red Sea, East Africa | Counter-piracy, Houthi activity |
Aircraft Classification
Aircraft are categorized by callsign pattern matching:
| Type | Callsign Patterns | Significance |
|---|---|---|
| Transport | RCH, REACH, MOOSE, HERKY, EVAC, DUSTOFF | Airlift operations, troop movement |
| Fighter | VIPER, EAGLE, RAPTOR, STRIKE | Combat air patrol, interception |
| Reconnaissance | SIGNT, COBRA, RIVET, JSTARS | Intelligence gathering |
Baseline Calculation
The system maintains rolling 48-hour activity baselines per theater:
Surge Detection Algorithm
surge_ratio = current_count / baseline
surge_triggered = (
ratio ≥ 2.0 AND
transport ≥ 5 AND
fighters ≥ 4
)
Surge Signal Output
When a surge is detected, the system generates a military_surge signal:
| Field | Content |
|---|---|
| Location | Theater centroid coordinates |
| Message | "Military Transport Surge in [Theater]: [X] aircraft (baseline: [Y])" |
| Details | Aircraft types, nearby bases (150km radius), top callsigns |
| Confidence | Based on surge ratio (0.6–0.9) |
Beyond surge detection, the system monitors for foreign military aircraft in sensitive regions—situations where aircraft from one nation appear in geopolitically significant areas outside their normal operating range.
Sensitive Regions
The system tracks 18 strategically significant geographic areas:
| Region | Sensitivity | Monitored For |
|---|---|---|
| Taiwan Strait | Critical | PLAAF activity, US transits |
| Persian Gulf | Critical | Iranian, US, Gulf state activity |
| Baltic Sea | High | Russian activity near NATO |
| Black Sea | High | NATO reconnaissance, Russian activity |
| South China Sea | High | PLAAF patrols, US FONOPs |
| Korean Peninsula | High | DPRK activity, US-ROK exercises |
| Eastern Mediterranean | Medium | Russian naval aviation, NATO |
| Arctic | Medium | Russian bomber patrols |
Detection Logic
For each sensitive region, the system:
Critical Combinations
Certain operator-region combinations trigger critical severity alerts:
| Operator | Region | Rationale |
|---|---|---|
| PLAAF | Taiwan Strait | Potential invasion rehearsal |
| Russian VKS | Arctic | Nuclear bomber patrols |
| USAF | Persian Gulf | Potential strike package |
Signal Output
Foreign presence detection generates a foreign_military_presence signal:
| Field | Content |
|---|---|
| Title | "Foreign Military Presence: [Region]" |
| Details | "[Operator] aircraft detected: [count] [types]" |
| Severity | Critical/High/Medium based on combination |
| Confidence | 0.7–0.95 based on aircraft count and type diversity |
Military aircraft tracking is enhanced with Wingbits enrichment data, providing detailed aircraft information that goes beyond basic transponder data.
When an aircraft is detected via OpenSky ADS-B, the system queries Wingbits for:
| Field | Description | Use Case |
|---|---|---|
| Registration | Aircraft tail number (e.g., N12345) | Unique identification |
| Owner | Legal owner of the aircraft | Military branch detection |
| Operator | Operating entity | Distinguish military vs. contractor |
| Manufacturer | Boeing, Lockheed Martin, etc. | Aircraft type classification |
| Model | Specific aircraft model | Capability assessment |
| Built Year | Year of manufacture | Fleet age analysis |
The enrichment service analyzes owner and operator fields against curated keyword lists:
Confirmed Military (owner/operator match):
Likely Military (operator ICAO codes):
AIO (Air Mobility Command), RRR (Royal Air Force), GAF (German Air Force)RCH (REACH flights), CNV (Convoy flights), DOD (Department of Defense)Possible Military (defense contractors):
Aircraft Type Matching:
Each enriched aircraft receives a confidence classification:
| Level | Criteria | Display |
|---|---|---|
| Confirmed | Direct military owner/operator match | Green badge |
| Likely | Military ICAO code or aircraft type | Yellow badge |
| Possible | Defense contractor ownership | Gray badge |
| Civilian | No military indicators | No badge |
Aircraft details rarely change, so aggressive caching reduces API load:
This means an aircraft's details are fetched at most once per day, regardless of how many times it appears on the map.
The Spaceports layer displays global launch facilities for monitoring space-related activity and supply chain implications.
| Site | Country | Operator | Activity Level |
|---|---|---|---|
| Kennedy Space Center | USA | NASA/Space Force | High |
| Vandenberg SFB | USA | US Space Force | Medium |
| Starbase | USA | SpaceX | High |
| Baikonur Cosmodrome | Kazakhstan | Roscosmos | Medium |
| Plesetsk Cosmodrome | Russia | Roscosmos/Military | Medium |
| Vostochny Cosmodrome | Russia | Roscosmos | Low |
| Jiuquan SLC | China | CNSA | High |
| Xichang SLC | China | CNSA | High |
| Wenchang SLC | China | CNSA | Medium |
| Guiana Space Centre | France | ESA/CNES | Medium |
| Satish Dhawan SC | India | ISRO | Medium |
| Tanegashima SC | Japan | JAXA | Low |
Space launches are geopolitically significant:
The Minerals layer displays strategic mineral extraction sites essential for modern technology and defense supply chains.
| Mineral | Strategic Importance | Major Producers |
|---|---|---|
| Lithium | EV batteries, energy storage | Australia, Chile, China |
| Cobalt | Battery cathodes, superalloys | DRC (60%+ global), Australia |
| Rare Earths | Magnets, electronics, defense | China (60%+ global), Australia, USA |
| Site | Mineral | Country | Significance |
|---|---|---|---|
| Greenbushes | Lithium | Australia | World's largest hard-rock lithium mine |
| Salar de Atacama | Lithium | Chile | Largest brine lithium source |
| Mutanda | Cobalt | DRC | World's largest cobalt mine |
| Tenke Fungurume | Cobalt | DRC | Major Chinese-owned cobalt source |
| Bayan Obo | Rare Earths | China | 45% of global REE production |
| Mountain Pass | Rare Earths | USA | Only active US rare earth mine |
Critical minerals are geopolitically concentrated:
News about these regions or mining companies can signal supply disruptions affecting technology and defense sectors.
The map displays geographic attribution markers for major state-sponsored Advanced Persistent Threat (APT) groups. These markers show the approximate operational centers of known threat actors.
| Group | Aliases | Sponsor | Notable Activity |
|---|---|---|---|
| APT28/29 | Fancy Bear, Cozy Bear | Russia (GRU/FSB) | Election interference, government espionage |
| APT41 | Double Dragon | China (MSS) | Supply chain attacks, intellectual property theft |
| Lazarus | Hidden Cobra | North Korea (RGB) | Financial theft, cryptocurrency heists |
| APT33/35 | Elfin, Charming Kitten | Iran (IRGC) | Critical infrastructure, aerospace targeting |
Cyber operations often correlate with geopolitical tensions. When news reports reference Russian cyber activity during a Ukraine escalation, or Iranian hacking during Middle East tensions, these markers provide geographic context for the threat landscape.
APT markers appear as warning triangles (⚠) with distinct styling. Clicking a marker shows:
The Protests layer aggregates civil unrest data from two independent sources, providing corroboration and global coverage.
Academic-grade conflict data with human-verified events:
Real-time news-derived event data:
Events from both sources are deduplicated using a 0.5° spatial grid and date matching. When both ACLED and GDELT report events in the same area:
| Severity | Criteria |
|---|---|
| High | Fatalities reported, riots, or clashes |
| Medium | Large demonstrations, strikes |
| Low | Smaller protests, localized events |
Events near intelligence hotspots are cross-referenced to provide geopolitical context.
To reduce visual clutter and focus attention on significant events, the map displays only high-severity protests and riots:
| Displayed | Event Type | Visual |
|---|---|---|
| ✅ Yes | Riot | Bright red marker |
| ✅ Yes | High-severity protest | Red marker |
| ❌ No | Medium/low-severity protest | Not shown on map |
Lower-severity events are still tracked for CII scoring and data exports—they simply don't create map markers. This filtering prevents dense urban areas (which naturally generate more low-severity demonstrations) from overwhelming the map display.
The Flights layer tracks airport delays and ground stops at major US airports using FAA NASSTATUS data.
| Type | Description |
|---|---|
| Ground Stop | No departures permitted; severe disruption |
| Ground Delay | Departures held; arrival rate limiting |
| Arrival Delay | Inbound traffic backed up |
| Departure Delay | Outbound traffic delayed |
| Severity | Average Delay | Visual |
|---|---|---|
| Severe | ≥60 minutes | Red |
| Major | 45-59 minutes | Orange |
| Moderate | 25-44 minutes | Yellow |
| Minor | 15-24 minutes | Gray |
The 30 largest US airports are tracked:
Ground stops are particularly significant—they indicate severe disruption (weather, security, or infrastructure failure) and can cascade across the network.
The dashboard handles untrusted data from dozens of external sources. Defense-in-depth measures prevent injection attacks and API abuse.
All user-visible content is sanitized before DOM insertion:
escapeHtml(str) // Encodes & < > " ' as HTML entities
sanitizeUrl(url) // Allows only http/https protocols
This applies to:
The <mark> highlighting in search escapes text before wrapping matches, preventing injection via crafted search queries.
Serverless proxy functions validate and clamp all parameters:
| Endpoint | Validation |
|---|---|
/api/yahoo-finance | Symbol format [A-Za-z0-9.^=-], max 20 chars |
/api/coingecko | Coin IDs alphanumeric+hyphen, max 20 IDs |
/api/polymarket | Order field allowlist, limit clamped 1-100 |
This prevents upstream API abuse and rate limit exhaustion from malformed requests.
URL() constructor—only http: and https: protocols are permittedrel="noopener" to prevent reverse tabnappingeval()—all code is bundled at build timeExternal APIs are unreliable. Rate limits, outages, and network errors are inevitable. The system implements circuit breaker patterns to maintain availability.
Each external service is wrapped in a circuit breaker that tracks failures:
Normal → Failure #1 → Failure #2 → OPEN (cooldown)
↓
5 minutes pass
↓
CLOSED
Behavior during cooldown:
| Service | Cooldown | Cache TTL |
|---|---|---|
| Yahoo Finance | 5 min | 10 min |
| Polymarket | 5 min | 10 min |
| USGS Earthquakes | 5 min | 10 min |
| NWS Weather | 5 min | 10 min |
| FRED Economic | 5 min | 10 min |
| Cloudflare Radar | 5 min | 10 min |
| ACLED | 5 min | 10 min |
| GDELT | 5 min | 10 min |
| FAA Status | 5 min | 5 min |
| RSS Feeds | 5 min per feed | 10 min |
RSS feeds use per-feed circuit breakers—one failing feed doesn't affect others.
When a service enters cooldown:
The status panel (accessed via the health indicator in the header) provides real-time visibility into data source status and system health.
The header displays a system health badge:
| State | Visual | Meaning |
|---|---|---|
| Healthy | Green dot | All data sources operational |
| Degraded | Yellow dot | Some sources in cooldown |
| Unhealthy | Red dot | Multiple sources failing |
Click the indicator to expand the full status panel.
The status panel lists all data feeds with their current state:
| Status | Icon | Description |
|---|---|---|
| Active | ● Green | Fetching data normally |
| Cooldown | ● Yellow | Temporarily paused (circuit breaker) |
| Disabled | ○ Gray | Layer not enabled |
| Error | ● Red | Persistent failure |
Each feed entry shows:
External APIs are unreliable. The status panel helps you understand:
This transparency enables informed interpretation of the dashboard data.
Beyond simple "online/offline" status, the system tracks fine-grained freshness for each data source to indicate data reliability and staleness.
| Status | Color | Criteria | Meaning |
|---|---|---|---|
| Fresh | Green | Updated within expected interval | Data is current |
| Aging | Yellow | 1-2× expected interval elapsed | Data may be slightly stale |
| Stale | Orange | 2-4× expected interval elapsed | Data is outdated |
| Critical | Red | >4× expected interval elapsed | Data unreliable |
| Disabled | Gray | Layer toggled off | Not fetching |
Each data source has calibrated freshness expectations:
| Source | Expected Interval | "Fresh" Threshold |
|---|---|---|
| News feeds | 5 minutes | <10 minutes |
| Stock quotes | 1 minute | <5 minutes |
| Earthquakes | 5 minutes | <15 minutes |
| Weather | 10 minutes | <30 minutes |
| Flight delays | 10 minutes | <20 minutes |
| AIS vessels | Real-time | <1 minute |
The status panel displays freshness for each source:
Understanding data freshness is critical for decision-making:
This visibility enables appropriate confidence calibration when interpreting the dashboard.
Data sources are classified by their importance to risk assessment:
| Classification | Sources | Impact |
|---|---|---|
| Core | GDELT, RSS feeds | Required for meaningful risk scores |
| Optional | ACLED, Military, AIS, Weather, Economic | Enhance but not required |
The Strategic Risk Overview panel adapts its display based on core source availability:
| Status | Display Mode | Behavior |
|---|---|---|
| Sufficient | Full data view | All metrics shown with confidence |
| Limited | Limited data view | Shows "Limited Data" warning banner |
| Insufficient | Insufficient data view | "Insufficient Data" message, no risk score |
The composite risk score is adjusted based on data freshness:
If core sources fresh:
→ Full confidence in risk score
→ "All data sources active" indicator
If core sources stale:
→ Display warning: "Limited Data - [active sources]"
→ Score shown but flagged as potentially unreliable
If core sources unavailable:
→ "Insufficient data for risk assessment"
→ No score displayed
This prevents false "all clear" signals when the system actually lacks data to make that determination.
API calls are expensive. The system only fetches data for enabled layers, reducing unnecessary network traffic and rate limit consumption.
When a layer is toggled OFF:
When a layer is toggled ON:
Some data sources require API keys (AIS relay, Cloudflare Radar). If credentials are not configured:
This prevents confusion when deploying without full API access.
The dashboard processes thousands of data points in real-time. Several techniques keep the UI responsive even with heavy data loads.
CPU-intensive operations run in a dedicated Web Worker to avoid blocking the main thread:
| Operation | Complexity | Worker? |
|---|---|---|
| News clustering (Jaccard) | O(n²) | ✅ Yes |
| Correlation detection | O(n × m) | ✅ Yes |
| DOM rendering | O(n) | ❌ Main thread |
The worker manager implements:
Large lists (100+ news items) use virtualized rendering:
Fixed-Height Mode (VirtualList):
Variable-Height Mode (WindowedList):
This reduces DOM node count from thousands to ~30, dramatically improving scroll performance.
Identical requests within a short window are deduplicated:
Promise.allSettled ensures one failing request doesn't block othersWhen refreshing data:
The Prediction Markets panel focuses on geopolitically relevant markets, filtering out sports and entertainment.
Markets matching these topics are displayed:
Markets matching these are filtered out:
This ensures the panel shows markets like "Will Russia withdraw from Ukraine?" rather than "Will the Lakers win the championship?"
The dashboard organizes data into draggable, collapsible panels that persist user preferences across sessions.
Panels can be reorganized by dragging:
This enables personalized layouts—put your most-watched panels at the top.
Toggle panels on/off via the Settings menu (⚙):
Hiding a panel is different from disabling a layer—the panel itself doesn't appear in the interface.
Panels are organized by intelligence priority:
| Priority | Panels | Purpose |
|---|---|---|
| Critical | Strategic Risk, Live Intel | Immediate situational awareness |
| Primary | News, CII, Markets | Core monitoring data |
| Supporting | Predictions, Economic, Monitor | Supplementary analysis |
| Reference | Live News Video | Background context |
Panel state survives browser restarts:
The dashboard is optimized for mobile devices with a streamlined interface that prioritizes usability on smaller screens.
When accessing the dashboard on a mobile device for the first time, a welcome modal explains the mobile-optimized experience:
On screens narrower than 768px or touch devices:
The mobile experience focuses on the most essential intelligence layers:
| Layer | Purpose |
|---|---|
| Conflicts | Active conflict zones |
| Hotspots | Intelligence hotspots with activity levels |
| Sanctions | Countries under economic sanctions |
| Outages | Network disruptions |
| Natural | Earthquakes, storms, wildfires |
| Weather | Severe weather warnings |
Layers disabled by default on mobile (but available on desktop):
This curated set provides situational awareness without overwhelming the interface or consuming excessive data/battery.
Map navigation supports:
Mobile optimizations reduce resource consumption:
| Optimization | Benefit |
|---|---|
| Fewer layers | Reduced API calls, lower battery usage |
| No labels | Faster rendering, cleaner interface |
| Hidden controls | More screen space for content |
| Simplified header | Reduced visual processing |
On larger screens, the full feature set is available:
The correlation engine detects signals related to energy infrastructure and commodity markets.
The system monitors news for pipeline-related events:
Infrastructure terms: pipeline, pipeline explosion, pipeline leak, pipeline attack, pipeline sabotage, pipeline disruption, nord stream, keystone, druzhba
Flow indicators: gas flow, oil flow, supply disruption, transit halt, capacity reduction
When news mentions flow disruptions, two signal types may trigger:
| Signal | Criteria | Meaning |
|---|---|---|
| Flow Drop | Pipeline keywords + disruption terms | Potential supply interruption |
| Flow-Price Divergence | Flow drop news + oil price stable (< $1.50 move) | Markets not yet pricing in disruption |
Energy supply disruptions create cascading effects:
Early detection of flow drops—especially when markets haven't reacted—provides an information edge.
The Signal Aggregator is the central nervous system that collects, groups, and summarizes intelligence signals from all data sources.
| Signal Type | Source | Frequency |
|---|---|---|
military_flight | OpenSky ADS-B | Real-time |
military_vessel | AIS WebSocket | Real-time |
protest | ACLED + GDELT | Hourly |
internet_outage | Cloudflare Radar | 5 min |
ais_disruption | AIS analysis | Real-time |
All signals are grouped by country code, creating a unified view:
{
country: 'UA', // Ukraine
countryName: 'Ukraine',
totalCount: 15,
highSeverityCount: 3,
signalTypes: Set(['military_flight', 'protest', 'internet_outage']),
signals: [/* all signals for this country */]
}
The aggregator identifies geographic convergence—when multiple signal types cluster in the same region:
| Convergence Level | Criteria | Alert Priority |
|---|---|---|
| Critical | 4+ signal types within 200km | Immediate |
| High | 3 signal types within 200km | High |
| Medium | 2 signal types within 200km | Normal |
The aggregator provides a real-time summary for dashboards and AI context:
[SIGNAL SUMMARY]
Top Countries: Ukraine (15 signals), Iran (12), Taiwan (8)
Convergence Zones: Baltic Sea (military_flight + military_vessel),
Tehran (protest + internet_outage)
Active Signal Types: 5 of 5
Total Signals: 47
For offline resilience and reduced API costs, the system includes browser-based ML capabilities using ONNX Runtime Web.
| Model | Task | Size | Use Case |
|---|---|---|---|
| T5-small | Text summarization | ~60MB | Offline briefing generation |
| DistilBERT | Sentiment analysis | ~67MB | News tone classification |
Browser ML serves as the final fallback when cloud APIs are unavailable:
User requests summary
↓
1. Try Groq API (fast, free tier)
↓ (rate limited or error)
2. Try OpenRouter API (fallback provider)
↓ (unavailable)
3. Use Browser T5 (offline, always available)
Models are loaded on-demand to minimize initial page load:
All ML inference runs in a dedicated Web Worker:
Browser ML has constraints compared to cloud models:
| Aspect | Cloud (Llama 3.3) | Browser (T5) |
|---|---|---|
| Context window | 128K tokens | 512 tokens |
| Output quality | High | Moderate |
| Inference speed | 2-3 seconds | 5-10 seconds |
| Offline support | No | Yes |
Browser summarization is intentionally limited to 6 headlines × 80 characters to stay within model constraints.
Intelligence modules don't operate in isolation. Data flows between systems to enable composite analysis.
News Feeds → Clustering → Velocity Analysis → Hotspot Correlation
↓ ↓
Topic Extraction CII Information Score
↓ ↓
Keyword Monitors Strategic Risk Overview
↑
Military Flights → Near-Hotspot Detection ──────────┤
↑
AIS Vessels → Chokepoint Monitoring ────────────────┤
↑
ACLED/GDELT → Protest Events ───────────────────────┤
↓
CII Unrest Score
| Consumer Module | Data Source | Integration |
|---|---|---|
| CII Unrest Score | ACLED, GDELT protests | Event count, fatalities |
| CII Security Score | Military flights, vessels | Activity near hotspots |
| CII Information Score | News clusters | Velocity, keyword matches |
| Strategic Risk | CII, Convergence, Cascade | Composite scoring |
| Related Assets | News location inference | Pipeline/cable proximity |
| Geographic Convergence | All geo-located events | Multi-type clustering |
When a threshold is crossed:
This ensures a single escalation (e.g., Ukraine military flights + protests + news spike) surfaces as one coherent signal rather than three separate alerts.
The Insights Panel provides AI-powered analysis of the current news landscape, transforming raw headlines into actionable intelligence briefings.
Every 2 minutes (with rate limiting), the system generates a concise situation brief using a multi-provider fallback chain:
| Priority | Provider | Model | Latency | Use Case |
|---|---|---|---|---|
| 1 | Groq | Llama 3.3 70B | ~2s | Primary provider (fast inference) |
| 2 | OpenRouter | Llama 3.3 70B | ~3s | Fallback when Groq rate-limited |
| 3 | Browser | T5 (ONNX) | ~5s | Offline fallback (local ML) |
Caching Strategy: Redis server-side caching prevents redundant API calls. When the same headline set has been summarized recently, the cached result is returned immediately.
The AI receives enriched context about focal points—entities that appear in both news coverage AND map signals. This enables intelligence-grade analysis:
[INTELLIGENCE SYNTHESIS]
FOCAL POINTS (entities across news + signals):
- IRAN [CRITICAL]: 12 news mentions + 5 map signals (military_flight, protest, internet_outage)
KEY: "Iran protests continue..." | SIGNALS: military activity, outage detected
- TAIWAN [ELEVATED]: 8 news mentions + 3 map signals (military_vessel, military_flight)
KEY: "Taiwan tensions rise..." | SIGNALS: naval vessels detected
Not all news is equally important. Headlines are scored to identify the most significant stories for the briefing:
Score Boosters (high weight):
Geopolitical Multipliers:
Score Reducers (demoted):
This ensures military conflicts and humanitarian crises surface above routine business news.
Headlines are analyzed for overall sentiment distribution:
| Sentiment | Detection Method | Display |
|---|---|---|
| Negative | Crisis, conflict, death keywords | Red percentage |
| Positive | Agreement, growth, peace keywords | Green percentage |
| Neutral | Neither detected | Gray percentage |
The overall sentiment balance provides a quick read on whether the news cycle is trending toward escalation or de-escalation.
Fast-moving stories are flagged when the same topic appears in multiple recent headlines:
The Focal Point Detector is the intelligence synthesis layer that correlates news entities with map signals to identify "main characters" driving current events.
Without synthesis, intelligence streams operate in silos:
Entity Extraction: Extract countries, companies, and organizations from all news clusters using the entity registry (600+ entities with aliases)
Signal Aggregation: Collect all map signals (military flights, protests, outages, vessels) and group by country
Cross-Reference: Match news entities with signal countries
Score & Rank: Calculate focal scores based on correlation strength
FocalScore = NewsScore + SignalScore + CorrelationBonus
NewsScore (0-40):
base = min(20, mentionCount × 4)
velocity = min(10, newsVelocity × 2)
confidence = avgConfidence × 10
SignalScore (0-40):
types = signalTypes.count × 10
count = min(15, signalCount × 3)
severity = highSeverityCount × 5
CorrelationBonus (0-20):
+10 if entity appears in BOTH news AND signals
+5 if news keywords match signal types (e.g., "military" + military_flight)
+5 if related entities also have signals
| Urgency | Criteria | Visual |
|---|---|---|
| Critical | Score > 70 OR 3+ signal types | Red badge |
| Elevated | Score > 50 OR 2+ signal types | Orange badge |
| Watch | Default | Yellow badge |
Focal points display icons indicating which signal types are active:
| Icon | Signal Type | Meaning |
|---|---|---|
| ✈️ | military_flight | Military aircraft detected nearby |
| ⚓ | military_vessel | Naval vessels in waters |
| 📢 | protest | Civil unrest events |
| 🌐 | internet_outage | Network disruption |
| 🚢 | ais_disruption | Shipping anomaly |
A focal point for IRAN might show:
Focal point urgency levels feed into the Country Instability Index:
The Natural layer combines two authoritative sources for comprehensive disaster monitoring.
UN-backed disaster alert system providing official severity assessments:
| Event Type | Code | Icon | Sources |
|---|---|---|---|
| Earthquake | EQ | 🔴 | USGS, EMSC |
| Flood | FL | 🌊 | Satellite imagery |
| Tropical Cyclone | TC | 🌀 | NOAA, JMA |
| Volcano | VO | 🌋 | Smithsonian GVP |
| Wildfire | WF | 🔥 | MODIS, VIIRS |
| Drought | DR | ☀️ | Multiple sources |
Alert Levels:
| Level | Color | Meaning |
|---|---|---|
| Red | Critical | Significant humanitarian impact expected |
| Orange | Alert | Moderate impact, monitoring required |
| Green | Advisory | Minor event, localized impact |
Near-real-time natural event detection from satellite observation:
| Category | Detection Method | Typical Delay |
|---|---|---|
| Severe Storms | GOES/Himawari imagery | Minutes |
| Wildfires | MODIS thermal anomalies | 4-6 hours |
| Volcanoes | Thermal + SO2 emissions | Hours |
| Floods | SAR imagery + gauges | Hours to days |
| Sea/Lake Ice | Passive microwave | Daily |
| Dust/Haze | Aerosol optical depth | Hours |
When both GDACS and EONET report the same event:
To prevent map clutter, natural events are filtered:
The system detects unusual concentrations of military activity using two complementary algorithms.
Surges are detected by comparing current aircraft counts to historical baselines within defined military theaters:
| Parameter | Value | Purpose |
|---|---|---|
| Surge threshold | 2.0× baseline | Minimum multiplier to trigger alert |
| Baseline window | 48 hours | Historical data used for comparison |
| Minimum samples | 6 observations | Required data points for valid baseline |
Aircraft Categories Tracked:
| Category | Examples | Minimum Count |
|---|---|---|
| Transport/Airlift | C-17, C-130, KC-135, REACH flights | 5 aircraft |
| Fighter | F-15, F-16, F-22, Typhoon | 4 aircraft |
| Reconnaissance | RC-135, E-3 AWACS, U-2 | 3 aircraft |
| Severity | Criteria | Meaning |
|---|---|---|
| Critical | 4× baseline or higher | Major deployment |
| High | 3× baseline | Significant increase |
| Medium | 2× baseline | Elevated activity |
Surge detection groups activity into strategic theaters:
| Theater | Center | Key Bases |
|---|---|---|
| Middle East | Persian Gulf | Al Udeid, Al Dhafra, Incirlik |
| Eastern Europe | Poland | Ramstein, Spangdahlem, Łask |
| Pacific | Guam/Japan | Andersen, Kadena, Yokota |
| Horn of Africa | Djibouti | Camp Lemonnier |
A separate system monitors for military operators outside their normal operating areas:
| Operator | Home Regions | Alert When Found In |
|---|---|---|
| USAF/USN | Alaska ADIZ | Persian Gulf, Taiwan Strait |
| Russian VKS | Kaliningrad, Arctic, Black Sea | Baltic Region, Alaska ADIZ |
| PLAAF/PLAN | Taiwan Strait, South China Sea | (alerts when increased) |
| Israeli IAF | Eastern Med | Iran border region |
Example alert:
FOREIGN MILITARY PRESENCE: Persian Gulf
USAF: 3 aircraft detected (KC-135, RC-135W, E-3)
Severity: HIGH - Operator outside normal home regions
Both surge and foreign presence alerts query the Focal Point Detector for context:
Example with correlation:
MILITARY AIRLIFT SURGE: Middle East Theater
Current: 8 transport aircraft (2.5× baseline)
Aircraft: C-17 (3), KC-135 (3), C-130J (2)
NEWS CORRELATION:
Iran: "Iran protests continue amid military..."
→ Iran appears in both news (12) and map signals (9)
The AI Strategic Posture panel aggregates military aircraft and naval vessels across defined theaters, providing at-a-glance situational awareness of global force concentrations.
Nine geographic theaters are monitored continuously, each with custom thresholds based on typical peacetime activity levels:
| Theater | Bounds | Elevated Threshold | Critical Threshold |
|---|---|---|---|
| Iran Theater | Persian Gulf, Iraq, Syria (20°N–42°N, 30°E–65°E) | 50 aircraft | 100 aircraft |
| Taiwan Strait | Taiwan, East China Sea (18°N–30°N, 115°E–130°E) | 30 aircraft | 60 aircraft |
| Korean Peninsula | North/South Korea (33°N–43°N, 124°E–132°E) | 20 aircraft | 50 aircraft |
| Baltic Theater | Baltics, Poland, Scandinavia (52°N–65°N, 10°E–32°E) | 20 aircraft | 40 aircraft |
| Black Sea | Ukraine, Turkey, Romania (40°N–48°N, 26°E–42°E) | 15 aircraft | 30 aircraft |
| South China Sea | Philippines, Vietnam (5°N–25°N, 105°E–121°E) | 25 aircraft | 50 aircraft |
| Eastern Mediterranean | Syria, Cyprus, Lebanon (33°N–37°N, 25°E–37°E) | 15 aircraft | 30 aircraft |
| Israel/Gaza | Israel, Gaza Strip (29°N–33°N, 33°E–36°E) | 10 aircraft | 25 aircraft |
| Yemen/Red Sea | Bab el-Mandeb, Houthi areas (11°N–22°N, 32°E–54°E) | 15 aircraft | 30 aircraft |
Beyond raw counts, the system assesses whether forces in a theater constitute an offensive strike package—the combination of assets required for sustained combat operations.
Strike-Capable Criteria:
Each theater has custom thresholds reflecting realistic strike package sizes:
| Theater | Min Tankers | Min AWACS | Min Fighters |
|---|---|---|---|
| Iran Theater | 10 | 2 | 30 |
| Taiwan Strait | 5 | 1 | 20 |
| Korean Peninsula | 4 | 1 | 15 |
| Baltic/Black Sea | 3-4 | 1 | 10-15 |
| Israel/Gaza | 2 | 1 | 8 |
When all three criteria are met, the theater is flagged as STRIKE CAPABLE, indicating forces sufficient for sustained offensive operations.
The panel augments aircraft data with real-time naval vessel positions from AIS tracking. Vessels are classified into categories:
| Category | Examples | Strategic Significance |
|---|---|---|
| Carriers | CVN, CV, LHD | Power projection, air superiority |
| Destroyers | DDG, DDH | Air defense, cruise missile strike |
| Frigates | FFG, FF | Multi-role escort, ASW |
| Submarines | SSN, SSK, SSBN | Deterrence, ISR, strike |
| Patrol | PC, PG | Coastal defense |
| Auxiliary | T-AO, AOR | Fleet support, logistics |
Data Accumulation Note: AIS vessel data arrives via WebSocket stream and accumulates gradually. The panel automatically re-checks vessel counts at 30, 60, 90, and 120 seconds after initial load to capture late-arriving data.
| Level | Indicator | Criteria | Meaning |
|---|---|---|---|
| Normal | 🟢 NORM | Below elevated threshold | Routine peacetime activity |
| Elevated | 🟡 ELEV | At or above elevated threshold | Increased activity, possible exercises |
| Critical | 🔴 CRIT | At or above critical threshold | Major deployment, potential crisis |
Elevated + Strike Capable is treated as a higher alert state than regular elevated status.
Activity trends are computed from rolling historical data:
Theater posture computations run on edge servers with Redis caching:
| Cache Type | TTL | Purpose |
|---|---|---|
| Active cache | 5 minutes | Matches OpenSky refresh rate |
| Stale cache | 1 hour | Fallback when upstream APIs fail |
This ensures consistent data across all users and minimizes redundant API calls to OpenSky Network.
Strategic risk and Country Instability Index (CII) scores are pre-computed server-side rather than calculated in the browser. This eliminates the "cold start" problem where new users would see no data while the system accumulated enough information to generate scores.
The /api/risk-scores edge function:
Each country's score combines:
Baseline Risk (0–50 points): Static geopolitical risk based on historical instability, ongoing conflicts, and authoritarian governance.
| Country | Baseline | Rationale |
|---|---|---|
| Syria, Ukraine, Yemen | 50 | Active conflict zones |
| Myanmar, Venezuela, North Korea | 40-45 | Civil unrest, authoritarian |
| Iran, Israel, Pakistan | 35-45 | Regional tensions |
| Saudi Arabia, Turkey, India | 20-25 | Moderate instability |
| Germany, UK, US | 5-10 | Stable democracies |
Unrest Component (0–50 points): Recent protest and riot activity, weighted by event significance multiplier.
Information Component (0–25 points): News coverage intensity (proxy for international attention).
Security Component (0–25 points): Baseline plus riot contribution.
Events in some countries carry more global significance than others:
| Multiplier | Countries | Rationale |
|---|---|---|
| 3.0× | North Korea | Any visible unrest is highly unusual |
| 2.0-2.5× | China, Russia, Iran, Saudi Arabia | Authoritarian states suppress protests |
| 1.5-1.8× | Taiwan, Pakistan, Myanmar, Venezuela | Regional flashpoints |
| 0.5-0.8× | US, UK, France, Germany | Protests are routine in democracies |
The composite strategic risk score is computed as a weighted average of the top 5 CII scores:
Weights: [1.0, 0.85, 0.70, 0.55, 0.40] (total: 3.5)
Strategic Risk = (Σ CII[i] × weight[i]) / 3.5 × 0.7 + 15
The top countries contribute most heavily, with diminishing influence for lower-ranked countries.
When ACLED data is unavailable (API errors, rate limits, expired auth):
stale: true flagbaseline: true flagThis ensures the dashboard always displays meaningful data even during upstream outages.
The Service Status panel tracks the operational health of external services that World Monitor users may depend on.
| Service | Status Endpoint | Parser |
|---|---|---|
| Anthropic (Claude) | status.claude.com | Statuspage.io |
| OpenAI | status.openai.com | Statuspage.io |
| Vercel | vercel-status.com | Statuspage.io |
| Cloudflare | cloudflarestatus.com | Statuspage.io |
| AWS | health.aws.amazon.com | Custom |
| GitHub | githubstatus.com | Statuspage.io |
| Status | Color | Meaning |
|---|---|---|
| Operational | Green | All systems functioning normally |
| Degraded | Yellow | Partial outage or performance issues |
| Partial Outage | Orange | Some components unavailable |
| Major Outage | Red | Significant service disruption |
External service outages can affect:
Monitoring these services provides context when dashboard features behave unexpectedly.
Different data sources update at different frequencies based on volatility and API constraints.
| Data Type | Interval | Rationale |
|---|---|---|
| News feeds | 5 min | Balance freshness vs. rate limits |
| Stock quotes | 1 min | Market hours require near-real-time |
| Crypto prices | 1 min | 24/7 markets, high volatility |
| Predictions | 5 min | Probabilities shift slowly |
| Earthquakes | 5 min | USGS updates every 5 min |
| Weather alerts | 10 min | NWS alert frequency |
| Flight delays | 10 min | FAA status update cadence |
| Internet outages | 60 min | BGP events are rare |
| Economic data | 30 min | FRED data rarely changes intraday |
| Military tracking | 5 min | Activity patterns need timely updates |
| PizzINT | 10 min | Foot traffic changes slowly |
AIS vessel tracking uses WebSocket for true real-time:
Time range selector affects displayed data, not fetch frequency:
| Selection | Effect |
|---|---|
| 1 hour | Show only events from last 60 minutes |
| 6 hours | Show events from last 6 hours |
| 24 hours | Show events from last day |
| 7 days | Show all recent events |
Historical filtering is client-side—all data is fetched but filtered for display.
| Layer | Technology | Purpose |
|---|---|---|
| Language | TypeScript 5.x | Type safety across 60+ source files |
| Build | Vite | Fast HMR, optimized production builds |
| Map (Desktop) | deck.gl + MapLibre GL | WebGL-accelerated rendering for large datasets |
| Map (Mobile) | D3.js + TopoJSON | SVG fallback for battery efficiency |
| Concurrency | Web Workers | Off-main-thread clustering and correlation |
| AI/ML | ONNX Runtime Web | Browser-based inference for offline summarization |
| Networking | WebSocket + REST | Real-time AIS stream, HTTP for other APIs |
| Storage | IndexedDB | Snapshots, baselines (megabytes of state) |
| Preferences | LocalStorage | User settings, monitors, panel order |
| Deployment | Vercel Edge | Serverless proxies with global distribution |
The map uses a hybrid rendering strategy optimized for each platform:
Desktop (deck.gl + MapLibre GL):
Mobile (D3.js + TopoJSON):
The entire UI is hand-crafted DOM manipulation—no React, Vue, or Angular. This keeps the bundle small (~250KB gzipped) and provides fine-grained control over rendering performance.
Vite injects configuration values at build time, enabling features like automatic version syncing:
| Variable | Source | Purpose |
|---|---|---|
__APP_VERSION__ | package.json version field | Header displays current version |
This ensures the displayed version always matches the published package—no manual synchronization required.
// vite.config.ts
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
}
// App.ts
const header = `World Monitor v${__APP_VERSION__}`;
# Clone the repository
git clone https://github.com/koala73/worldmonitor.git
cd worldmonitor
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
The dashboard fetches data from various public APIs and data sources:
| Service | Data | Auth Required |
|---|---|---|
| RSS2JSON | News feed parsing | No |
| Finnhub | Stock quotes (primary) | Yes (free) |
| Yahoo Finance | Stock indices & commodities (backup) | No |
| CoinGecko | Cryptocurrency prices | No |
| USGS | Earthquake data | No |
| NASA EONET | Natural events (storms, fires, volcanoes, floods) | No |
| NWS | Weather alerts | No |
| FRED | Economic indicators (Fed data) | No |
| EIA | Oil analytics (prices, production, inventory) | Yes (free) |
| USASpending.gov | Federal government contracts & awards | No |
| Polymarket | Prediction markets | No |
| ACLED | Armed conflict & protest data | Yes (free) |
| GDELT Geo | News-derived event geolocation + tensions | No |
| GDELT Doc | Topic-based intelligence feeds (cyber, military, nuclear) | No |
| FAA NASSTATUS | Airport delay status | No |
| Cloudflare Radar | Internet outage data | Yes (free) |
| AISStream | Live vessel positions | Yes (relay) |
| OpenSky Network | Military aircraft tracking | Yes (free) |
| Wingbits | Aircraft enrichment (owner, operator) | Yes (free) |
| PizzINT | Pentagon-area activity metrics | No |
Some features require API credentials. Without them, the corresponding layer is hidden:
| Variable | Service | How to Get |
|---|---|---|
FINNHUB_API_KEY | Stock quotes (primary) | Free registration at finnhub.io |
EIA_API_KEY | Oil analytics | Free registration at eia.gov/opendata |
VITE_WS_RELAY_URL | AIS vessel tracking | Deploy AIS relay or use hosted service |
VITE_OPENSKY_RELAY_URL | Military aircraft | Deploy relay with OpenSky credentials |
OPENSKY_CLIENT_ID | OpenSky auth (relay) | Free registration at opensky-network.org |
OPENSKY_CLIENT_SECRET | OpenSky auth (relay) | API key from OpenSky account settings |
CLOUDFLARE_API_TOKEN | Internet outages | Free Cloudflare account with Radar access |
ACLED_ACCESS_TOKEN | Protest data (server-side) | Free registration at acleddata.com |
WINGBITS_API_KEY | Aircraft enrichment | Contact Wingbits for API access |
The dashboard functions fully without these keys—affected layers simply don't appear. Core functionality (news, markets, earthquakes, weather) requires no configuration.
src/
├── App.ts # Main application orchestrator
├── main.ts # Entry point
├── components/
│ ├── DeckGLMap.ts # WebGL map with deck.gl + MapLibre (desktop)
│ ├── Map.ts # D3.js SVG map (mobile fallback)
│ ├── MapContainer.ts # Map wrapper with platform detection
│ ├── MapPopup.ts # Contextual info popups
│ ├── SearchModal.ts # Universal search (⌘K)
│ ├── SignalModal.ts # Signal intelligence display with focal points
│ ├── PizzIntIndicator.ts # Pentagon Pizza Index display
│ ├── VirtualList.ts # Virtual/windowed scrolling
│ ├── InsightsPanel.ts # AI briefings + focal point display
│ ├── EconomicPanel.ts # FRED economic indicators
│ ├── GdeltIntelPanel.ts # Topic-based intelligence (cyber, military, etc.)
│ ├── LiveNewsPanel.ts # YouTube live news streams with channel switching
│ ├── NewsPanel.ts # News feed with clustering
│ ├── MarketPanel.ts # Stock/commodity display
│ ├── MonitorPanel.ts # Custom keyword monitors
│ ├── CIIPanel.ts # Country Instability Index display
│ ├── CascadePanel.ts # Infrastructure cascade analysis
│ ├── StrategicRiskPanel.ts # Strategic risk overview dashboard
│ ├── StrategicPosturePanel.ts # AI strategic posture with theater analysis
│ ├── ServiceStatusPanel.ts # External service health monitoring
│ └── ...
├── config/
│ ├── feeds.ts # 70+ RSS feeds, source tiers, regional sources
│ ├── geo.ts # 30+ hotspots, conflicts, 55 cables, waterways, spaceports, minerals
│ ├── pipelines.ts # 88 oil & gas pipelines
│ ├── ports.ts # 61 strategic ports worldwide
│ ├── bases-expanded.ts # 220+ military bases
│ ├── ai-datacenters.ts # 313 AI clusters (filtered to 111)
│ ├── airports.ts # 30 monitored US airports
│ ├── irradiators.ts # IAEA gamma irradiator sites
│ ├── nuclear-facilities.ts # Global nuclear infrastructure
│ ├── markets.ts # Stock symbols, sectors
│ ├── entities.ts # 100+ entity definitions (companies, indices, commodities, countries)
│ └── panels.ts # Panel configs, layer defaults, mobile optimizations
├── services/
│ ├── ais.ts # WebSocket vessel tracking with density analysis
│ ├── military-vessels.ts # Naval vessel identification and tracking
│ ├── military-flights.ts # Aircraft tracking via OpenSky relay
│ ├── military-surge.ts # Surge detection with news correlation
│ ├── cached-theater-posture.ts # Theater posture API client with caching
│ ├── wingbits.ts # Aircraft enrichment (owner, operator, type)
│ ├── pizzint.ts # Pentagon Pizza Index + GDELT tensions
│ ├── protests.ts # ACLED + GDELT integration
│ ├── gdelt-intel.ts # GDELT Doc API topic intelligence
│ ├── gdacs.ts # UN GDACS disaster alerts
│ ├── eonet.ts # NASA EONET natural events + GDACS merge
│ ├── flights.ts # FAA delay parsing
│ ├── outages.ts # Cloudflare Radar integration
│ ├── rss.ts # RSS parsing with circuit breakers
│ ├── markets.ts # Finnhub, Yahoo Finance, CoinGecko
│ ├── earthquakes.ts # USGS integration
│ ├── weather.ts # NWS alerts
│ ├── fred.ts # Federal Reserve data
│ ├── oil-analytics.ts # EIA oil prices, production, inventory
│ ├── usa-spending.ts # USASpending.gov contracts & awards
│ ├── polymarket.ts # Prediction markets (filtered)
│ ├── clustering.ts # Jaccard similarity clustering
│ ├── correlation.ts # Signal detection engine
│ ├── velocity.ts # Velocity & sentiment analysis
│ ├── related-assets.ts # Infrastructure near news events
│ ├── activity-tracker.ts # New item detection & highlighting
│ ├── analysis-worker.ts # Web Worker manager
│ ├── ml-worker.ts # Browser ML inference (ONNX)
│ ├── summarization.ts # AI briefings with fallback chain
│ ├── parallel-analysis.ts # Concurrent headline analysis
│ ├── storage.ts # IndexedDB snapshots & baselines
│ ├── data-freshness.ts # Real-time data staleness tracking
│ ├── signal-aggregator.ts # Central signal collection & grouping
│ ├── focal-point-detector.ts # Intelligence synthesis layer
│ ├── entity-index.ts # Entity lookup maps (by alias, keyword, sector)
│ ├── entity-extraction.ts # News-to-entity matching for market correlation
│ ├── country-instability.ts # CII scoring algorithm
│ ├── geo-convergence.ts # Geographic convergence detection
│ ├── infrastructure-cascade.ts # Dependency graph and cascade analysis
│ └── cross-module-integration.ts # Unified alerts and strategic risk
├── workers/
│ └── analysis.worker.ts # Off-thread clustering & correlation
├── utils/
│ ├── circuit-breaker.ts # Fault tolerance pattern
│ ├── sanitize.ts # XSS prevention (escapeHtml, sanitizeUrl)
│ ├── urlState.ts # Shareable link encoding/decoding
│ └── analysis-constants.ts # Shared thresholds for worker sync
├── styles/
└── types/
api/ # Vercel Edge serverless proxies
├── cloudflare-outages.js # Proxies Cloudflare Radar
├── coingecko.js # Crypto prices with validation
├── eia/[[...path]].js # EIA petroleum data (oil prices, production)
├── faa-status.js # FAA ground stops/delays
├── finnhub.js # Stock quotes (batch, primary)
├── fred-data.js # Federal Reserve economic data
├── gdelt-doc.js # GDELT Doc API (topic intelligence)
├── gdelt-geo.js # GDELT Geo API (event geolocation)
├── polymarket.js # Prediction markets with validation
├── yahoo-finance.js # Stock indices/commodities (backup)
├── opensky-relay.js # Military aircraft tracking
├── wingbits.js # Aircraft enrichment proxy
├── risk-scores.js # Pre-computed CII and strategic risk (Redis cached)
├── theater-posture.js # Theater-level force aggregation (Redis cached)
├── groq-summarize.js # AI summarization with Groq API
└── openrouter-summarize.js # AI summarization fallback via OpenRouter
⌘K / Ctrl+K - Open search↑↓ - Navigate search resultsEnter - Select resultEsc - Close modalsInfrastructure markers (nuclear facilities, economic centers, ports) display without labels to reduce visual clutter. Full information is available through interaction:
| Layer | Label Behavior | Interaction |
|---|---|---|
| Nuclear facilities | Hidden | Click for popover with details |
| Economic centers | Hidden | Click for popover with details |
| Protests | Hidden | Hover for tooltip, click for details |
| Military bases | Hidden | Click for popover with base info |
| Hotspots | Visible | Color-coded activity levels |
| Conflicts | Visible | Status and involved parties |
This design prioritizes geographic awareness over label density—users can quickly scan for markers and then interact for context.
The current view state is encoded in the URL, enabling:
Encoded Parameters:
| Parameter | Description |
|---|---|
lat, lon | Map center coordinates |
zoom | Zoom level (1-10) |
time | Active time filter (1h, 6h, 24h, 7d) |
view | Preset view (global, us, mena) |
layers | Comma-separated enabled layer IDs |
Example: ?lat=38.9&lon=-77&zoom=6&layers=bases,conflicts,hotspots
Values are validated and clamped to prevent invalid states.
Aggregates 70+ RSS feeds from major news outlets, government sources, and specialty publications with source-tier prioritization. Categories include world news, MENA, Africa, Latin America, Asia-Pacific, energy, technology, AI/ML, finance, government releases, defense/intel, think tanks, and international crisis organizations.
This project uses data from the following sources. Please respect their terms of use.
Data provided by The OpenSky Network. If you use this data in publications, please cite:
Matthias Schäfer, Martin Strohmeier, Vincent Lenders, Ivan Martinovic and Matthias Wilhelm. "Bringing Up OpenSky: A Large-scale ADS-B Sensor Network for Research". In Proceedings of the 13th IEEE/ACM International Symposium on Information Processing in Sensor Networks (IPSN), pages 83-94, April 2014.
Original dashboard concept inspired by Reggie James (@HipCityReg) - with thanks for the vision of a comprehensive situation awareness tool
Special thanks to Yanal at Wingbits for providing API access for aircraft enrichment data, enabling military aircraft classification and ownership tracking
Thanks to @fai9al for the inspiration and original PR that led to the Tech Monitor variant
This project is a proof of concept demonstrating what's possible with publicly available data. While functional, there are important limitations:
Some data sources require paid accounts for full access:
The dashboard works with free tiers but may have gaps in coverage or update frequency.
The Ships layer uses terrestrial AIS receivers via AISStream.io. This creates a geographic bias:
Terrestrial receivers only detect vessels within ~50km of shore. Satellite AIS (commercial) provides true global coverage but is not included in this free implementation.
Some publishers block requests from cloud providers (Vercel, Railway, AWS):
The system degrades gracefully—blocked sources are skipped while others continue functioning.
See ROADMAP.md for detailed planning. Recent intelligence enhancements:
High Priority:
Medium Priority:
Future Enhancements:
The full ROADMAP.md documents implementation details, API endpoints, and 30+ free data sources for future integration.
Information density over aesthetics. Every pixel should convey signal. The dark interface minimizes eye strain during extended monitoring sessions. Panels are collapsible, draggable, and hideable—customize to show only what matters.
Authority matters. Not all sources are equal. Wire services and official government channels are prioritized over aggregators and blogs. When multiple sources report the same story, the most authoritative source is displayed as primary.
Correlation over accumulation. Raw news feeds are noise. The value is in clustering related stories, detecting velocity changes, and identifying cross-source patterns. A single "Broadcom +2.5% explained by AI chip news" signal is more valuable than showing both data points separately.
Signal, not noise. Deduplication is aggressive. The same market move doesn't generate repeated alerts. Signals include confidence scores so you can prioritize attention. Alert fatigue is the enemy of situational awareness.
Knowledge-first matching. Simple keyword matching produces false positives. The entity knowledge base understands that AVGO is Broadcom, that Broadcom competes with Nvidia, and that both are in semiconductors. This semantic layer transforms naive string matching into intelligent correlation.
Fail gracefully. External APIs are unreliable. Circuit breakers prevent cascading failures. Cached data displays during outages. The status panel shows exactly what's working and what isn't—no silent failures.
Local-first. No accounts, no cloud sync. All preferences and history stored locally. The only network traffic is fetching public data. Your monitoring configuration is yours alone.
Compute where it matters. CPU-intensive operations (clustering, correlation) run in Web Workers to keep the UI responsive. The main thread handles only rendering and user interaction.
┌─────────────────────────────────┐
│ External Data Sources │
│ RSS Feeds, APIs, WebSockets │
└─────────────┬───────────────────┘
│
┌────────────────────────┼────────────────────────┐
│ │ │
▼ ▼ ▼
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ RSS Parser │ │ API Client │ │ WebSocket Hub │
│ (News Feeds) │ │ (USGS, FAA...) │ │ (AIS, Markets) │
└────────┬────────┘ └────────┬────────┘ └────────┬────────┘
│ │ │
└──────────────────────┼──────────────────────┘
│
▼
┌─────────────────────────────────┐
│ Circuit Breakers │
│ (Rate Limiting, Retry Logic) │
└─────────────┬───────────────────┘
│
┌─────────────────┼─────────────────┐
│ │ │
▼ ▼ ▼
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Data Freshness │ │ Search Index │ │ Web Worker │
│ Tracker │ │ (Searchables) │ │ (Clustering) │
└────────┬────────┘ └────────┬────────┘ └────────┬────────┘
│ │ │
└───────────────────┼───────────────────┘
│
▼
┌─────────────────────────────────┐
│ App State │
│ (Map, Panels, Intelligence) │
└─────────────┬───────────────────┘
│
▼
┌─────────────────────────────────┐
│ Rendering Pipeline │
│ D3.js Map + React-like Panels │
└─────────────────────────────────┘
Different data types refresh at different intervals based on volatility and API limits:
| Data Type | Refresh Interval | Rationale |
|---|---|---|
| News Feeds | 3 minutes | Balance between freshness and API politeness |
| Market Data | 60 seconds | Real-time awareness with rate limit constraints |
| Military Tracking | 30 seconds | High-priority for situational awareness |
| Weather Alerts | 5 minutes | NWS update frequency |
| Earthquakes | 5 minutes | USGS update cadence |
| Internet Outages | 5 minutes | Cloudflare Radar update frequency |
| AIS Vessels | Real-time | WebSocket streaming |
The system implements defense-in-depth for external service failures:
Circuit Breakers
Graceful Degradation
User Feedback
The project uses Vite for optimal production builds:
Code Splitting
Variant Builds
npm run build - Standard geopolitical dashboardnpm run build:tech - Tech sector variant with different defaultsAsset Optimization
Client-Side Security
escapeHtml() before renderingsanitizeUrl() before href assignmentinnerHTML with user-controllable contentAPI Security
Privacy
Contributions are welcome! Whether you're fixing bugs, adding features, improving documentation, or suggesting ideas, your help makes this project better.
git clone https://github.com/YOUR_USERNAME/worldmonitor.git
cd worldmonitor
npm install
git checkout -b feature/your-feature-name
npm run dev
This project follows specific patterns to maintain consistency:
TypeScript
any where possibleconst over let, never use varArchitecture
src/services/) handle data fetching and business logicsrc/components/) handle UI renderingsrc/config/) contains static data and constantssrc/utils/) contain shared helper functionsSecurity
escapeHtml() when rendering user-controlled or external datasanitizeUrl() for any URLs from external sourcesPerformance
No Comments Policy
Ensure your code builds:
npm run build
Test your changes manually in the browser
Write a clear commit message:
Add earthquake magnitude filtering to map layer
- Adds slider control to filter by minimum magnitude
- Persists preference to localStorage
- Updates URL state for shareable links
Push to your fork:
git push origin feature/your-feature-name
Open a Pull Request with:
| Do | Don't |
|---|---|
| Focus on one feature or fix | Bundle unrelated changes |
| Follow existing code patterns | Introduce new frameworks without discussion |
| Keep changes minimal and targeted | Refactor surrounding code unnecessarily |
| Update README if adding features | Add features without documentation |
| Test edge cases | Assume happy path only |
🐛 Bug Fixes
✨ New Features
📊 Data Sources
📝 Documentation
🔒 Security
PRs that don't follow the code style or introduce security issues will be asked to revise.
Adding a New Data Layer
src/services/ for data fetchingsrc/components/Map.tsAdding a New API Proxy
api/ directoryDebugging
[ServiceName] for easy filteringMIT
Elie Habib
Built for situational awareness and open-source intelligence gathering.