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.