Live: ai-trajectory-index.vercel.app
An interactive index scoring 186 economies on current AI readiness and 3–5 year trajectory, built for investors, policymakers, and researchers comparing national capacity to build and adopt AI.
Key Findings (live scores, 17 Oct 2026)
These come from the live scoring pipeline (/api/scores), not the static baseline, and will move as sources update. In this run, 185 of 186 economies scored on live World Bank data (Taiwan is not covered by the World Bank) and 75.5% of expected live indicators were observed.
| Finding | Detail |
|---|---|
| 🇩🇰 Denmark leads overall | 87/100, ahead of the Netherlands (86), the United States (85), Germany (84) and Singapore (84) |
| 🇸🇳 Senegal has the strongest trajectory | Trajectory +7: current 40 → projected 51 by 2028 |
| 🇵🇱 Poland is the fastest-rising advanced economy | 72 → 81 projected by 2028 (trajectory +6), the largest gain in the top 40 |
| 🇧🇾 Belarus has the largest governance gap | Non-governance pillars average 11.5/20 against governance at 4/20, a 7.5-point gap |
| 🌍 Middle East & Africa face an infrastructure constraint | Median infrastructure 7/20 against a global median of 13 |
| 🇪🇺 Europe leads on governance | Average governance 13.2/20 against 10.3/20 investment: policy ahead of capital |
---------|--------| | 🇺🇸 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 has the largest governance gap | Non-governance pillars average 14.0, compared with governance at 8/20, a 6.0-point gap | | 🌍 Africa has an infrastructure constraint | Median infrastructure score 5.5/20 vs global median 7.0 | | 🇪🇺 Europe leads on governance | EU avg 10.2/20 governance vs 9.2/20 investment: policy ahead of capital |
What It Does
- Scores 186 economies across 5 pillars: Infrastructure, Talent, Governance, Investment, Economic Readiness (each 0–20, total 0–100)
- Shows forward trajectory, including which countries are accelerating, stable, or facing structural headwinds, with projected 2028 scores
- Generates a five-section country brief per economy (Standing & Trajectory, Infrastructure & Talent, Governance & Policy, Investment & Capital, Economic Readiness & Outlook), AI-drafted via OpenRouter (free tier) with an automatic deterministic-template fallback if every model is unavailable: the brief always renders, never a bare error
- 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 The Guardian and Google News RSS, 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)
Screenshots
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
Tech Stack
| 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 (rotating free-tier models) + deterministic template fallback |
| Live News | The Guardian Open Platform, Google News RSS, and selected technology RSS feeds |
| World Data | World Bank Open Data API, IMF DataMapper, and OECD Data Explorer |
| Policy Data | OECD.AI Policy Observatory maintained dataset |
| Governance | Worldwide Governance Indicators and Oxford Insights |
| Cron | Vercel Cron (news cache warming, nightly) |
| Deployment | Vercel |
Getting Started
Prerequisites
- Node.js 20 or later
- An OpenRouter API key is optional. The deterministic country-brief fallback works without one.
Installation
# 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
# Optionally add OPENROUTER_API_KEY for AI-drafted briefs and map chat
# Run locally
npm run dev
Open http://localhost:3000.
Environment Variables
| Variable | Required | Description |
|---|---|---|
OPENROUTER_API_KEY |
No | Enables AI-drafted country briefs + map chat. Without it, briefs are served from the deterministic template (still complete, just not AI-drafted) |
NEXT_PUBLIC_SITE_URL |
No | Canonical URL for OG meta tags |
CRON_SECRET |
No | Protects /api/news-cron from unauthorised calls |
GUARDIAN_API_KEY |
No | Raises Guardian Open Platform limits. Without it, the client uses Guardian's public test key |
Deployment
One-click Vercel deployment:
- Fork this repo
- Import to Vercel
- (Optional) Add
OPENROUTER_API_KEYfor AI-drafted country briefs: omit it and briefs are served from the built-in template instead - Deploy: public World Bank, IMF, OECD, and Anthropic data fetch automatically; no paid data service is required
Methodology
The index has two separate lenses:
- Readiness measures an economy's capacity to build, govern, finance, and deploy AI. It is the primary 0–100 index.
- Adoption measures observed AI use across government, business, consumers, labour demand, and the research pipeline. It is not included in the Readiness total.
The deployed methodology is version 3. The implementation is in lib/scoring.ts, the source clients are in lib/worldbank.ts, lib/imf.ts, lib/oecd.ts, and lib/anthropic-index.ts, and the public explanation is available on the Methodology page.
Readiness score
Each of the five pillars contributes 0–20 points. The pillar scores are added without further weighting:
Readiness = Infrastructure + Talent + Governance + Investment + Economic Readiness
= 0–100
Indicator values are converted to points using documented threshold bands. Each pillar is rounded to the nearest whole point and clamped to 0–20. The total is clamped to 0–100.
| Pillar | Point allocation | What the static component represents |
|---|---|---|
| Infrastructure | Fixed broadband per 100 (6), internet users (3), mobile subscriptions per 100 (3), electricity access (3), static quality component (5) | Server density, cloud availability, grid reliability, and infrastructure quality not consistently covered by the live series |
| Talent | Tertiary enrolment (6), labour productivity at constant 2017 PPP dollars per worker (6), talent-quality component (8) | Researcher density, education quality, ICT skills, and brain-drain conditions |
| Governance | Rule of Law WGI (5), Government Effectiveness WGI (4), Regulatory Quality WGI (3), national AI strategy (3), strategy recency (up to 2), AI regulation (1), institutional component (2) | Institutional and implementation capacity not captured by the three WGI series |
| Investment | R&D expenditure as a share of GDP (6), FDI net inflows as a share of GDP (5), capital-ecosystem component (9) | Venture activity, startup density, deal flow, and related capital-market depth |
| Economic Readiness | GDP per capita at constant PPP (6), private credit (3), trade openness (3), services share (3), market-capacity component (5) | Economic complexity, digital-market capacity, and business conditions |
Indicator thresholds
The scoring bands below are the thresholds used by the code. Values exactly on a boundary remain in the lower band because the implementation uses strict > comparisons unless noted.
| Indicator | Point bands |
|---|---|
| Fixed broadband per 100 | >35: 6; >20: 4.5; >8: 3; >2: 1.5; otherwise 0.5 |
| Internet users, % | >85: 3; >65: 2.2; >40: 1.5; >15: 0.8; otherwise 0.3 |
| Mobile subscriptions per 100 | >120: 3; >80: 2.2; >40: 1.5; otherwise 0.5 |
| Electricity access, % | >97: 3; >80: 2; >50: 1; otherwise 0.3 |
| Tertiary enrolment, % | >70: 6; >50: 4.5; >30: 3; >15: 1.8; otherwise 0.8 |
| Labour productivity, constant 2017 PPP dollars | >85,000: 6; >65,000: 4.5; >40,000: 3; >18,000: 1.5; otherwise 0.75 |
| R&D expenditure, % of GDP | >3.5: 6; >2: 4.5; >1: 3; >0.3: 1.5; otherwise 0.5 |
| FDI net inflows, % of GDP | Capped at 20, then >10: 5; >4: 4; >1.5: 3; >0: 2; otherwise 0.5 |
| GDP per capita, constant 2017 PPP dollars | >55,000: 6; >30,000: 4.5; >12,000: 3; >4,000: 1.5; otherwise 0.5 |
| Private credit, % of GDP | >150: 3; >80: 2.2; >40: 1.5; >15: 0.8; otherwise 0.3 |
| Trade openness, % of GDP | Capped at 200, then >120: 3; >70: 2.2; >40: 1.5; >20: 0.8; otherwise 0.3 |
| Services value added, % of GDP | >75: 3; >60: 2.2; >45: 1.5; >30: 0.8; otherwise 0.3 |
WGI estimates are clamped to -2.5..+2.5 and converted continuously rather than placed in bands:
WGI points = ((clamp(estimate, -2.5, 2.5) + 2.5) / 5) × allocated points
National AI strategies receive 3 points. Strategies dated 2022 or later receive a 2-point recency bonus; strategies dated 2019–2021 receive 1 point. An AI regulation flag contributes 1 point.
Live enrichment and source precedence
The static baseline ensures coverage for all 186 economies. Live and external data replace defined portions of that baseline when available:
- World Bank values are the main quantitative input across all five pillars.
- OECD researcher density can replace 2 of the Talent baseline's 8 points.
- WIPO Global Innovation Index data can replace 1 additional Talent baseline point.
- Oxford Insights can replace the 2-point Governance institutional component.
- OECD R&D expenditure takes precedence over the World Bank R&D value when available.
- IMF government expenditure can replace 3 of the Investment baseline's 9 points.
- IMF government debt above 100% of GDP reduces the Economic Readiness market-capacity component by 1 point.
- Missing indicators receive the proportional share of the country's static pillar score. If a country has no usable live values for a pillar, the complete static pillar score is retained.
| Supplemental input | Point rule |
|---|---|
| OECD researchers per 1,000 employed | >10: 2; >6: 1.5; >3: 1; otherwise 0.5 |
| WIPO GII score | >55: 1; >40: 0.7; >25: 0.4; otherwise 0.2 |
| Oxford Insights score | >=65: 2; >=45: 1.5; >=30: 1; otherwise 0.5 |
| IMF government expenditure, % of GDP | >=45: 3; >=35: 2; >=25: 1; otherwise 0.5 |
| IMF government debt, % of GDP | Above 100 subtracts 1 point from the 5-point market-capacity allocation |
The API calculates every source independently with Promise.allSettled. A failed IMF, OECD, or Anthropic request does not prevent World Bank scoring or the static fallback. In /api/scores, using_live_data reports whether any World Bank indicator loaded; sources.* is true only when that source contributed data to at least one country; coverage reports the share of expected live indicators observed and any failed World Bank indicators; and each country includes data_source, wb_data_year, source-availability flags, and the raw World Bank values used in scoring.
Score provenance and coverage
Every country returned by /api/scores includes two required research fields:
provenance: five pillar arrays listing each input value, observation year, source organization and URL, points earned, points available, source status, and any missing-data substitution.coverage: source availability summarized as live, enriched, policy, and fallback counts, the oldest and newest live observation years, the share of the 100-point allocation dependent on fallbacks, and aHigh,Medium, orLimitedlabel.
Coverage is not statistical confidence and does not measure a country's performance or data quality. It reports how much of the current score is supported by available source inputs.
| Coverage label | Rule |
|---|---|
| High | At least 75% of expected inputs are live or enriched, and fallback allocation is at most 30% |
| Medium | At least 50% of expected inputs are live or enriched, and fallback allocation is at most 55% |
| Limited | All other source-availability profiles |
The descriptive source registry lives in lib/methodology.ts. The scorer remains the formula authority and records provenance at the same branches where it awards points. The Methodology page and the downloadable /api/methodology.csv both use the shared registry, so component labels, official URLs, point budgets, and source roles stay aligned.
The homepage renders all 186 static baseline rankings immediately. It then refreshes from /api/scores in the background without clearing filters, comparison state, watchlists, or the current view. If the refresh fails, the baseline ranking remains fully usable and exposes a retry control.
World Bank indicator registry
The API requests the two most recent non-empty observations (mrnev=2) for 17 indicators, reading every page of the response. The latest value supports Readiness and the prior value supports trend calculations where applicable.
| Code | Indicator | Use |
|---|---|---|
IT.NET.USER.ZS |
Individuals using the internet | Infrastructure |
IT.CEL.SETS.P2 |
Mobile subscriptions per 100 people | Infrastructure |
IT.NET.BBND.P2 |
Fixed broadband subscriptions per 100 people | Infrastructure and trajectory |
EG.ELC.ACCS.ZS |
Access to electricity | Infrastructure |
SE.TER.ENRR |
Gross tertiary enrolment | Talent |
SL.GDP.PCAP.EM.KD |
GDP per person employed, constant 2017 PPP | Talent and trajectory |
GB.XPD.RSDV.GD.ZS |
R&D expenditure as a share of GDP | Investment and trajectory |
GOV_WGI_GE.EST |
Government Effectiveness estimate | Governance |
GOV_WGI_RL.EST |
Rule of Law estimate | Governance |
GOV_WGI_RQ.EST |
Regulatory Quality estimate | Governance |
BX.KLT.DINV.WD.GD.ZS |
FDI net inflows as a share of GDP | Investment |
NY.GDP.PCAP.PP.KD |
GDP per capita at constant 2017 PPP | Economic Readiness |
NY.GDP.PCAP.CD |
GDP per capita in current US dollars | Trajectory growth only |
FS.AST.PRVT.GD.ZS |
Domestic credit to the private sector | Economic Readiness |
NE.TRD.GNFS.ZS |
Trade in goods and services | Economic Readiness |
NV.SRV.TOTL.ZS |
Services value added | Economic Readiness |
TX.VAL.TECH.MF.ZS |
High-technology exports | Trajectory |
Trajectory and projection
Trajectory is a separate -10..+10 score. Missing trend inputs use the corresponding share of the static trajectory baseline.
| Component | Weight | Maximum contribution |
|---|---|---|
| GDP per capita growth | 20% | ±2.0 |
| R&D expenditure trend | 15% | ±1.5 |
| Labour-productivity trend | 15% | ±1.5 |
| High-technology exports trend | 20% | ±2.0 |
| Fixed-broadband growth | 10% | ±1.0 |
| National AI strategy recency | 10% | ±1.0 |
| Static trajectory baseline | 10% | ±1.0 |
Anthropic Economic Index usage intensity adds a supplemental +0.5 for scores of 60 or higher and -0.5 for scores below 20. The final result is rounded and clamped to -10..+10.
| Trend input | Contribution bands |
|---|---|
| GDP per capita growth | >6%: +2; >3%: +1.2; >0%: +0.4; >-3%: -0.4; otherwise -2 |
| R&D share change | >0.3 pp: +1.5; >0.1: +0.8; >-0.1: 0; >-0.3: -0.5; otherwise -1.5 |
| Labour-productivity growth | >3%: +1.5; >1%: +0.8; >-1%: -0.3; otherwise -1.5 |
| High-technology export-share change | >3 pp: +2; >0.5: +1; >-0.5: 0; >-3: -0.8; otherwise -2 |
| Fixed-broadband change per 100 people | >2: +1; >0.5: +0.5; >-0.5: 0; otherwise -0.5 |
| National AI strategy | Dated 2022 or later: +1; dated 2019–2021: +0.5; older: 0; no strategy: -0.5 |
| Score | Label |
|---|---|
6..10 |
Strong Positive |
2..5 |
Positive |
-1..1 |
Neutral |
-5..-2 |
Negative |
-10..-6 |
Strong Negative |
The forward estimate is a directional scenario, not a forecast:
Projected 2028 score = clamp(Readiness + Trajectory × 1.5, 0, 100)
Readiness tiers
| Score | Tier | Interpretation |
|---|---|---|
| 80–100 | Leading | Frontier readiness |
| 60–79 | Advanced | Strong foundations |
| 40–59 | Developing | Core building blocks are present |
| 0–39 | Nascent | Early-stage readiness |
Adoption lens
The Adoption lens is intentionally separate from Readiness. Each of its five dimensions contributes 0–20 points: Government Deployment, Enterprise Adoption, Talent Demand, Consumer Usage, and R&D Pipeline. The values and evidence are maintained in data/adoption.json; they are not calculated by lib/scoring.ts and do not change the primary Readiness ranking.
Adoption total = Government + Enterprise + Talent Demand + Consumer + R&D Pipeline
Adoption gap = Adoption total - Readiness total
| Adoption total | Tier |
|---|---|
| 70–100 | High Adoption |
| 50–69 | Growing Adoption |
| 30–49 | Early Adoption |
| 0–29 | Nascent Adoption |
Methodological principles and limitations
- No deliberate double-counting: R&D expenditure belongs to Investment, GDP per capita at PPP belongs to Economic Readiness, and connectivity belongs to Infrastructure.
- Continuous institutional scoring: WGI estimates retain more information than binary policy flags.
- Purchasing-power adjustment: Economic Readiness uses constant 2017 PPP dollars. Current-dollar GDP is used only for its change rate in trajectory.
- Quality as well as access: Fixed broadband receives more weight than internet penetration because access rates are saturated in many advanced economies.
- Transparent fallbacks: Static components fill gaps in internationally comparable data, especially for smaller economies. This improves coverage but introduces expert-judgment risk.
- Uneven data years: World Bank and other official indicators are released on different schedules and often lag current conditions by one or more years.
wb_data_yearexposes the newest World Bank year used for each count