import type { Metadata } from 'next'; import Link from 'next/link'; import type { ScatterPoint } from '@/components/charts'; import { EfficiencyScatter } from '@/components/intelligence/client-charts'; import { ChangeRow } from '@/components/changes/change-row'; import { DistBars, Methodology, RankChips, TrustChip } from '@/components/intelligence/bits'; import { SectionNav, Ticker, type TickerItem } from '@/components/layout/terminal'; import { Chip, OpennessBadge } from '@/components/ui/badges'; import { DataTable, EmptyRow, Td, Th } from '@/components/ui/data-table'; import { EntityLink } from '@/components/ui/entity'; import { Container, Note, PageHeader, Section } from '@/components/ui/section'; import { EmptyState, Unavailable } from '@/components/ui/unavailable'; import { intel } from '@/lib/api'; import { safe } from '@/lib/api'; import { fmtDate, fmtDateTime, fmtInt, fmtParams, fmtScore, fmtTokens, fmtUsdPerM, num } from '@/lib/format'; import { eventTone, routes, SITE_NAME, SITE_URL } from '@/lib/site'; import { eventDate, type Deployment, type EntitySummary, type ModelRef } from '@/lib/types'; export const revalidate = 300; const TITLE = 'The AI frontier right now — leaders per benchmark, price, context and open weights'; const DESC = 'What defines the AI frontier today: the latest major models, the leader and runner-up of every benchmark comparability group, the cheapest frontier offers, the largest context windows, the open-weight frontier, the quality-vs-price Pareto set, agentic and multimodal leaders and recent movements — observed dimensions only, no composite score.'; export const metadata: Metadata = { title: TITLE, description: DESC, alternates: { canonical: routes.frontier() }, openGraph: { title: `${TITLE} | ${SITE_NAME}`, description: DESC, url: `${SITE_URL}${routes.frontier()}`, type: 'website', siteName: SITE_NAME }, twitter: { card: 'summary_large_image', title: TITLE, description: DESC }, }; const NAV = [ { id: 'latest', label: 'Latest major models' }, { id: 'benchmarks', label: 'Benchmark frontier' }, { id: 'price', label: 'Price frontier' }, { id: 'context', label: 'Context frontier' }, { id: 'open', label: 'Open-weight frontier' }, { id: 'efficiency', label: 'Efficiency frontier' }, { id: 'agentic', label: 'Agentic' }, { id: 'multimodal', label: 'Multimodal' }, { id: 'movements', label: 'Recent movements' }, ]; const modelHref = (m: { slug: string; entity_type?: string }) => routes.entity({ entity_type: m.entity_type ?? 'model', slug: m.slug }); const orgName = (m: ModelRef | EntitySummary) => m.organization?.name ?? null; function DeploymentStrip({ d, label }: { d: Deployment | null | undefined; label: string }) { return (

{label}

{d && d.model ? ( <>

{d.model.organization && {d.model.organization.name}}

{fmtUsdPerM(d.prices.output)} output / 1M

input {fmtUsdPerM(d.prices.input)} · context {fmtTokens(d.context_length)} · via · observed {fmtDate(d.observed_at)}

) : (

No frontier model has a current priced offer in the API response.

)}
); } export default async function FrontierPage() { const [f, idx] = await Promise.all([safe(intel.frontier(12)), safe(intel.priceIndex(30))]); if (!f) { return ( ); } const latest = f.latest_major_models ?? []; const bench = f.benchmark_frontier ?? []; const pf = f.price_frontier; const ctx = f.context_frontier ?? []; const open = f.open_weight_frontier; const eff = f.efficiency_frontier; const agentic = f.agentic_frontier ?? []; const multi = f.multimodal_frontier ?? []; const moves = f.recent_frontier_movements ?? []; const compo = pf?.composition ?? f.price_frontier?.composition ?? null; // efficiency scatter const points: ScatterPoint[] = (eff?.points ?? []) .filter((p) => num(p.x) !== null && num(p.y) !== null) .map((p) => ({ id: p.id, x: num(p.x) as number, y: num(p.y) as number, label: p.model.name, sub: `${p.model.organization ?? ''}${p.provider ? ` · via ${p.provider.name}` : ''} · rank ${p.rank}`, href: modelHref(p.model), color: p.pareto ? 'var(--accent-2)' : undefined })); const frontierSet = new Set(eff?.frontier ?? []); const frontierLine = points.filter((p) => frontierSet.has(p.id)).sort((a, b) => a.x - b.x); const ticker: TickerItem[] = moves.slice(0, 24).map((e) => ({ id: e.id, tone: eventTone(e.event_type), href: e.entity ? routes.entity(e.entity) : routes.changes(), label: e.summary.length > 100 ? `${e.summary.slice(0, 99)}…` : e.summary, meta: num(e.percent_change) !== null ? `${(num(e.percent_change) as number) > 0 ? '+' : ''}${(num(e.percent_change) as number).toFixed(0)}%` : fmtDate(eventDate(e)) })); const ld = { '@context': 'https://schema.org', '@type': 'Dataset', name: 'AI Atlas Frontier', description: DESC, url: `${SITE_URL}${routes.frontier()}`, dateModified: f.generated_at, creator: { '@type': 'Organization', name: SITE_NAME, url: SITE_URL }, isAccessibleForFree: true, }; return (