Live: ai-index.ankitmishra.ca
An interactive index scoring 186 countries on their current AI readiness and 3–5 year trajectory — built for investors, policymakers, and researchers who need to understand which nations are winning the AI race and why.
| Finding | Detail |
|---|---|
| 🇺🇸 US leads overall | 91/100 — highest score across all 186 economies |
| 🇮🇳 India has the strongest trajectory | Current score 65 → projected 73 by 2028 (trajectory +8) |
| 🇦🇪 UAE fastest-rising advanced economy | 73 → 79 projected by 2028 (trajectory +6) |
| 🇷🇺 Russia: biggest governance gap | Average pillar 12.8 — governance score 8/20, gap of 4.8 pts |
| 🌍 Africa trailing in infrastructure | Median infrastructure score 6.2/20 vs global median 11.4 |
| 🇪🇺 Europe leads on governance | EU avg 10.2/20 governance vs 9.2/20 investment — policy ahead of capital |
- Scores 186 economies across 5 pillars: Infrastructure, Talent, Governance, Investment, Economic Readiness (each 0–20, total 0–100)
- Shows forward trajectory — which countries are accelerating, plateauing, or falling behind, with projected 2028 scores
- Generates AI-powered country narratives explaining the drivers behind each score (via OpenRouter, free tier)
- Interactive world map with country selection and AI-powered comparison chat
- Country comparison tool — side-by-side radar charts and pillar breakdowns (up to 4 countries)
- Region deep-dives — Americas, Europe, Asia-Pacific, Middle East, Africa with sub-regional analysis
- Live news feeds per country via GDELT, with AI signal analysis
- What-If simulator — adjust any pillar score and see rank impact
- Policy gap analyser — shows which pillars fall below regional average, with governance flags
- Shareable URLs — all filter state and pillar weights encoded in query params
- Embeddable widget —
<iframe src="/widget/[country]">for any site - Export to CSV or JSON (with custom weighted scores when weights are non-default)
186 countries scored across 5 AI readiness pillars
Interactive world map with country selection and AI-powered chat
Individual country profiles with pillar breakdown, trajectory, and live news signal
| Layer | Technology |
|---|---|
| Framework | Next.js 14 (App Router) + TypeScript |
| Styling | Tailwind CSS + CSS custom properties |
| Charts | Recharts (radar, bar, scatter) + react-simple-maps |
| AI Narratives | OpenRouter API (Gemini 2.0 Flash — free tier) |
| Live News | GDELT 2.0 Document API (free, no key) |
| World Data | World Bank Open Data API (17 indicators, free) |
| Policy Data | OECD AI Policy Observatory (static dataset) |
| Governance | World Governance Indicators — WGI (via World Bank API) |
| Cron | Vercel Cron (news cache warming, nightly) |
| Deployment | Vercel |
- Node.js 18+
- An OpenRouter API key (free at openrouter.ai)
# Clone the repo
git clone https://github.com/ankitmishra01/ai-trajectory-index.git
cd ai-trajectory-index
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env.local
# Edit .env.local and add your OPENROUTER_API_KEY
# Run locally
npm run devOpen http://localhost:3000.
| Variable | Required | Description |
|---|---|---|
OPENROUTER_API_KEY |
Yes | AI narrative generation + map chat |
NEXT_PUBLIC_SITE_URL |
No | Canonical URL for OG meta tags |
CRON_SECRET |
No | Protects /api/news-cron from unauthorised calls |
One-click Vercel deployment:
- Fork this repo
- Import to Vercel
- Add
OPENROUTER_API_KEYas an environment variable - Deploy — World Bank data fetches automatically, no other setup needed
Five equally-weighted pillars, each scored 0–20:
| Pillar | What it measures | Key live indicators |
|---|---|---|
| Infrastructure | Digital and physical foundations | Fixed broadband/100 (IT.NET.BBN.P2), internet users %, electricity access % |
| Talent | Human capital pipeline and deployment | Tertiary enrollment (SE.TER.ENRR), labor productivity (SL.GDP.PCAP.EM.KD) |
| Governance | Institutional quality + AI policy | Rule of Law WGI (RL.EST), Govt Effectiveness (GE.EST), Regulatory Quality (RQ.EST), national AI strategy |
| Investment | Capital environment | R&D spend % GDP (GB.XPD.RSDV.GD.ZS), FDI net inflows (BX.KLT.DINV.WD.GD.ZS) |
| Economic Readiness | Market conditions | GDP per capita PPP (NY.GDP.PCAP.PP.KD), private credit % GDP, trade openness, services share |
Full methodology: ai-index.ankitmishra.ca/methodology
- No double-counting: R&D spend only in Investment; GDP only in Economic Readiness; electricity/internet only in Infrastructure
- Continuous > binary: Governance uses continuous WGI z-scores, normalised as
((estimate + 2.5) / 5.0) × maxPts - PPP-adjusted: Economic Readiness uses constant 2017 PPP$ GDP to remove currency/price-level bias
- Quality over access: Infrastructure weights fixed broadband (quality signal) over internet user % (saturated for OECD)
- Forward signals in trajectory: High-tech exports trend (20%) and broadband growth (10%) replace binary AI strategy flag
| Score | Tier | Description |
|---|---|---|
| 75–100 | 🟢 Leading | Frontier AI readiness |
| 55–74 | 🔵 Advanced | Strong foundations |
| 40–54 | 🟡 Developing | Building blocks in place |
| 0–39 | 🔴 Nascent | Early stage |
| Label | Points | Meaning |
|---|---|---|
| ↑↑ Strong Positive | +6 to +10 | Structural acceleration |
| ↑ Positive | +2 to +5 | Measurable momentum |
| → Neutral | -1 to +1 | Steady state |
| ↓ Negative | -5 to -2 | Structural headwinds |
| ↓↓ Strong Negative | -10 to -6 | Falling behind |
Projected 2028 score = clamp(total + trajectory × 1.5, 0, 100)
| Source | What it provides | Update frequency |
|---|---|---|
| World Bank Open Data API | 17 macro indicators (infrastructure, labour, economics, governance) | Daily fetch, 24h cache |
| World Governance Indicators | Rule of Law, Govt Effectiveness, Regulatory Quality | Via World Bank API |
| OECD AI Policy Observatory | National AI strategies, regulation status | Static dataset |
| GDELT 2.0 | Country-level AI news headlines | On-demand, 1h cache |
| OpenRouter | AI country narratives, news signal analysis | On-demand, 7d/24h cache |
World Bank indicators typically lag 1–2 years — most recent data is from 2023–2024.
/app
page.tsx — Main country index
/map/page.tsx — Interactive world map + AI chat
/africa|americas|europe|asia-pacific|middle-east/page.tsx — Region deep-dives
/country/[slug]/page.tsx — Individual country profiles
/compare/[a]/page.tsx — Side-by-side country comparison
/explore/page.tsx — Scatter plot explorer
/methodology/page.tsx — Full scoring methodology
/widget/[slug]/page.tsx — Embeddable iframe widget (no client JS)
/api/
scores/route.ts — Live scoring endpoint (24h cache)
narrative/[country]/ — OpenRouter narrative generation (7d cache)
news/[slug]/ — GDELT news feed (1h cache)
news-signal/[slug]/ — AI signal analysis (24h cache)
news-cron/route.ts — Vercel Cron: warms top-50 news cache nightly
/components
CountryCard.tsx — Card with mini dimension bars + trajectory badge
CountryPageClient.tsx — Country detail page (client component)
CountryNewsFeed.tsx — Live news + AI signal panel
ComparisonPanel.tsx — Radar chart comparison (up to 4 countries)
FilterBar.tsx — Search + consolidated filter + sort (slide-out panel)
FastestMovers.tsx — Top 5 trajectory countries (compact tiles)
KeyInsights.tsx — Auto-generated insights from live data
GovernanceGapPanel.tsx — Top 10 countries where capabilities outpace governance
PolicyGapAnalyser.tsx — Pillar gaps vs regional average + governance flags
WhatIfSimulator.tsx — Interactive pillar adjustment + rank impact
RegionDeepDive.tsx — Shared region deep-dive layout (bar charts)
WorldMap.tsx — react-simple-maps SVG world map
ScoreGauge.tsx — SVG semicircle gauge
RankingsTable.tsx — Sortable tabular view
ExportButton.tsx — CSV/JSON export (includes weighted score column)
PillarWeights.tsx — Custom pillar weight sliders with URL encoding
/lib
worldbank.ts — WB API client (17 indicators, parallel fetch, 24h cache)
scoring.ts — Score calculation engine (5 pillars + trajectory)
openrouter.ts — OpenRouter client (narratives + news signal analysis)
gdelt.ts — GDELT news client (1h in-memory cache, disambiguation)
slugToIso.ts — 186 slug → ISO2 mappings
regionConfigs.ts — Region deep-dive configuration
types.ts — Country, ScoredCountry, ScoresResponse
/data
countries.json — 186 countries: static baseline scores + evidence
ai-policies.json — Policy metadata keyed by slug
narratives/.gitkeep — Cached narratives directory (files are gitignored)
Issues and pull requests are welcome. If you spot a data error, have a methodology suggestion, or want to add a feature, please open an issue first.
Areas where contributions are especially welcome:
- Additional governance data sources (Freedom House, V-Dem)
- Improved trajectory modelling (patent filings, AI publication growth)
- Better data for smaller economies where World Bank coverage is thin
- Translation and localisation
If you reference this tool in research or journalism:
Mishra, A. (2026). AI Trajectory Index: Scoring 186 Economies on AI Readiness and 3–5 Year Trajectory. Retrieved from https://ai-index.ankitmishra.ca
Built by Ankit Mishra as an independent research tool at the intersection of AI governance, emerging markets, and technology policy.
- Commercial Portfolio Director at a leading African climatetech venture fund
- Member, Schwartz Reisman Institute AI & Trust Working Group, University of Toronto
- Forbes contributor — 50+ articles, 200,000+ readers
MIT License — free to use, modify, and distribute with attribution.