πŸ“ˆ StockMonitor AI

Stock Intelligence Wired to Critical Minerals, Key Energy & Geopolitical Chokepoints

Inspired by worldmonitor.app β€” see the real supply-chain wiring behind every stock you hold

⛓️

Geo-Dependency Engine

Maps every stock to its critical-mineral and key-energy inputs, then resolves the producer & processor countries that dominate them β€” and the maritime chokepoints its supply must transit. Country concentration is derived from a curated mine, refinery, and chokepoint dataset, not guesswork.

πŸ“Š

Stock Global Intelligence

AI-powered analysis that synthesizes global data sources β€” now enriched with mineral, energy, and chokepoint supply-chain risks β€” to provide stock-specific geopolitical and macro insights in real-time.

🌐

Global Situation Monitor

Strategic risk overview dashboard tracking global events, intelligence alerts, and market implications across 30+ data sources.

πŸ“ˆ

Stock Monitor

A persistent portfolio with real-time quotes, returns, and concentration risk. Add, edit, or remove holdings, upload a CSV, and tune alert & risk thresholds β€” everything is saved locally and rides settings export/sync.

πŸ€–

Browser-Based LLM

ONNX-powered text analysis runs locally in your browser using Transformers.js. No data leaves your machine.

⚑

Real-Time Updates

Live news feeds, intelligence events, market data, and satellite imagery update continuously with event-driven architecture.

πŸ”’

Privacy First

No subscription required. All features available to all users. Open-source. Full control over your data.

⛓️ Geo-Dependency Engine

The wiring behind every stock

Most tools stop at "where is this company headquartered?" StockMonitor goes deeper: it models the critical minerals and key energy a business actually depends on, traces those inputs to the countries that mine and refine them, and flags the maritime chokepoints the supply must pass through. The result is a single dependency score that reflects real geopolitical exposure β€” not just the flag on the logo.

What it surfaces per stock

πŸͺ¨ Critical Minerals

Rare earths, lithium, cobalt, nickel, copper, tin, aluminum and more β€” with the reason each one matters to the business

🌍 Producer & Processor Concentration

Top mining and refining countries per mineral, with a concentration score derived from a curated mine & plant dataset

⚑ Key Energy Inputs

Crude oil, natural gas / LNG, refined fuels, grid electricity, nuclear fuel and coal β€” mapped to their source regions

🚒 Maritime Chokepoints

Hormuz, Malacca, Taiwan Strait, Bab-el-Mandeb, Suez, Panama and more β€” the routes a stock's supply transits

πŸ“Š Dependency Score

A 0–100 composite of mineral concentration, energy intensity, and chokepoint load with a low / medium / high band

πŸ—ΊοΈ On the Map

Producer countries and at-risk chokepoints light up on the globe when you select a stock

How a dependency is resolved

1
Each stock is mapped to its critical-mineral and key-energy inputs (per-company profiles with sector-template fallbacks)
2
Producer & processor country concentration is computed from the app's curated mine and refinery dataset
3
Minerals and energy are linked to the maritime chokepoints their supply must transit, each risk-coded
4
A composite geo-dependency score is produced and surfaced in the panel, the AI intelligence feed, and the map

Example wirings

NVDA β†’ Rare Earths Β· Taiwan Strait TSLA β†’ Lithium / Cobalt / Nickel ASML β†’ Tin (EUV) Β· Rare Earths XOM / ENB β†’ Crude Β· LNG Β· Hormuz BA β†’ Aluminum Β· Nickel superalloys DSX β†’ Bunker fuel Β· Iron ore freight

Stock Global Intelligence

How It Works

Select any stock in the Stock Monitor panel and the AI instantly analyzes how global events affect it. The system aggregates live news, geopolitical intelligence, market signals, supply chain risks, macro indicatorsβ€”then uses browser-based LLM to generate actionable insights specific to that stock and sector.

Data Sources Analyzed

πŸ“° Live News Headlines

Sector-relevant news filtered from 30+ global sources

πŸ” Intelligence Events

Geopolitical, conflict, and threat alerts from GDELT

πŸ“ˆ Market Signals

Volatility spikes, sector rotations, unusual volume

πŸ”— Supply Chain Risks

Country exposure plus modeled critical-mineral, energy, and chokepoint dependencies

⚠️ Geopolitical Threats

Sanctions, conflicts, policy changes affecting sectors

πŸ’Ή Macro Indicators

VIX, Gold, DXY, Yield Curve, commodity prices

Analysis Workflow

1
User selects a stock from the Stock Monitor portfolio
2
System aggregates all relevant global data for that stock's sector and geographic exposure
3
Browser-based LLM (ONNX Transformers.js) analyzes context and generates insights
4
Results display with confidence score and supporting data points
5
Results are cached to prevent re-analysis on re-selection

Technology Stack

TypeScript Vite Preact ONNX Transformers.js Web Workers IndexedDB Custom Events Edge Functions Redis (Upstash)

Features

Core Capabilities

Getting Started

Live Demo

Visit the live application at sinhaankur.github.io/Stockmonitor

Self-Host

Clone the repository and run locally:

git clone https://github.com/sinhaankur/Stockmonitor
cd Stockmonitor
npm install
npm run dev

Usage

  1. Click on Stock Monitor panel or search for a ticker (your portfolio persists across reloads)
  2. Select any stock to open its detail view, then jump to Geo-wiring to see its mineral, energy, and chokepoint dependencies
  3. The Stock Global Intelligence panel generates insights enriched with those supply-chain risks
  4. Open the panel βš™ Settings to tune alert and concentration-risk thresholds
  5. Optional: Connect local LLM via Settings ⚑ Connect AI button

Documentation

πŸ“– Full Documentation: docs/

πŸ—οΈ Architecture: ARCHITECTURE.md

🀝 Contributing: CONTRIBUTING.md

πŸ“š Data Sources: data-sources.mdx

πŸ”Œ API Reference: docs/api/