Skip to content

Commit fc7c7e1

Browse files
committed
Add sourced model rankings and deployment shortlists
1 parent cac669a commit fc7c7e1

11 files changed

Lines changed: 395 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Open http://127.0.0.1:3000. `npm run build` creates the production build; `npm s
1616
- Six curated Trending picks on the homepage, with a separate `/models` directory containing 20 current candidates and six baselines. Trending is an editorial selection, not a live popularity ranking.
1717
- Search, dynamic family filters, current/baseline filtering, selection of up to three models, and shareable comparison URLs.
1818
- Interactive 4/8/16-bit weight-memory estimates and memory-budget exploration.
19+
- A Rankings hub with six source-linked lists: calculated weight storage, published context tiers, and compact / coding / multimodal / MoE shortlists. Performance and GPU-fit rankings remain pending real tests.
1920
- Eight original deployment field notes and four curated comparison pages and a methodology / commercial disclosure page.
2021
- Static model and guide pages, per-route metadata and canonicals, Open Graph / Twitter text metadata, JSON-LD, sitemap, robots, semantic HTML, and a custom 404.
2122
- An optional read-only WebMCP model-comparison tool on browsers that expose `document.modelContext`.
@@ -54,6 +55,7 @@ Configure analytics and actual affiliate URLs only after obtaining the relevant
5455
- Catalog assembly, baseline records, Trending slugs, and review date: `lib/models.ts`
5556
- New research profiles: `lib/latest-models.ts`
5657
- Guide content and sources: `lib/guides.ts`, `lib/field-notes.ts`
58+
- Ranking definitions, inclusion rules, and ordering: `lib/rankings.ts`
5759
- Curated comparison pages: `lib/comparisons.ts`
5860
- Metadata / origin handling: `lib/seo.ts`
5961
- Visual system and breakpoints: `app/globals.css`

‎app/globals.css‎

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2900,3 +2900,84 @@ h2 { letter-spacing: -0.6px; }
29002900
.comparison-note-grid { grid-template-columns: 1fr; }
29012901
.comparison-note-grid > a { padding: 20px; }
29022902
}
2903+
2904+
/* Rankings: restrained, source-linked tables and deployment collections. */
2905+
.rankings-page { padding-bottom: 64px; }
2906+
.ranking-intro { max-width: 850px; }
2907+
.ranking-intro .ranking-label { margin-bottom: 16px; }
2908+
.ranking-byline { margin-top: 20px; color: var(--muted); font-size: 12px; }
2909+
.ranking-evidence { display: flex; align-items: center; gap: 12px; padding: 18px 0; margin: 0 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
2910+
.ranking-evidence p { flex: 1; margin: 0; line-height: 1.65; }
2911+
.ranking-evidence strong { color: var(--strong); font-weight: 500; }
2912+
.ranking-evidence a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--accent); }
2913+
.ranking-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
2914+
.ranking-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 9px; background: white; transition: border-color .15s; }
2915+
.ranking-card:hover { border-color: #d6a48b; }
2916+
.ranking-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #a1a1aa; }
2917+
.ranking-label { display: inline-block; padding: 5px 8px; border: 1px solid #e4e4e7; border-radius: 4px; background: #fafafa; color: #52525b; font-size: 11px; font-weight: 500; line-height: 1.3; }
2918+
.ranking-label--calculated { color: #9a3412; background: #fff7ed; border-color: #fed7aa; }
2919+
.ranking-card h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.5px; margin: 22px 0 10px; }
2920+
.ranking-card > p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 22px; }
2921+
.ranking-card-preview { display: flex; flex-direction: column; gap: 7px; margin-top: auto; font-size: 12px; color: #52525b; }
2922+
.ranking-card-preview > span:first-child { font-size: 10px; letter-spacing: 1px; color: #a1a1aa; margin-bottom: 3px; }
2923+
.ranking-card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; margin-top: 22px; border-top: 1px solid #f0f0f2; font-size: 12px; color: var(--muted); }
2924+
.ranking-card-bottom svg { color: var(--accent); }
2925+
.ranking-pending { padding: 28px; background: #f4f4f5; border-radius: 8px; margin-top: 40px; }
2926+
.ranking-pending-heading { display: flex; gap: 12px; align-items: flex-start; }
2927+
.ranking-pending-heading > svg { color: var(--accent); margin-top: 4px; flex-shrink: 0; }
2928+
.ranking-pending-heading h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.5px; }
2929+
.ranking-pending-heading p, .ranking-pending-grid p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; }
2930+
.ranking-pending-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 26px; padding-top: 24px; border-top: 1px solid #e4e4e7; }
2931+
.ranking-pending-label { font-size: 9px; letter-spacing: .8px; color: #71717a; }
2932+
.ranking-pending-grid h3 { font-size: 16px; margin: 10px 0; }
2933+
.ranking-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 0 0 24px; }
2934+
.ranking-rules dt { font-size: 12px; font-weight: 600; margin-bottom: 9px; }
2935+
.ranking-rules dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
2936+
.ranking-table-help { font-size: 12px; color: var(--muted); line-height: 1.65; }
2937+
.ranking-table-help > span { display: none; }
2938+
.ranking-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: white; margin-top: 14px; }
2939+
.ranking-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
2940+
.ranking-table { width: 100%; min-width: 860px; border-collapse: collapse; text-align: left; font-size: 13px; }
2941+
.ranking-table thead { background: #f4f4f5; }
2942+
.ranking-table thead th { padding: 16px 20px; font-size: 11px; font-weight: 500; color: #71717a; white-space: nowrap; }
2943+
.ranking-table tbody th, .ranking-table td { padding: 22px 20px; border-top: 1px solid var(--line); vertical-align: top; }
2944+
.ranking-table tbody th { width: 29%; min-width: 250px; font-weight: 500; }
2945+
.ranking-table tbody tr:hover { background: #fdfdfd; }
2946+
.ranking-position { color: #a1a1aa; font-variant-numeric: tabular-nums; width: 55px; }
2947+
.ranking-model { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
2948+
.ranking-model > a { font-size: 14px; line-height: 1.5; }
2949+
.ranking-model > a:hover { color: var(--accent); }
2950+
.ranking-model-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 12px; }
2951+
.ranking-model-meta a { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); }
2952+
.ranking-baseline { background: #f4f4f5; border-radius: 3px; padding: 2px 5px; font-size: 10px; }
2953+
.ranking-value { font-size: 14px; font-weight: 500; min-width: 145px; font-variant-numeric: tabular-nums; }
2954+
.ranking-value small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 8px; }
2955+
.ranking-context { min-width: 115px; color: #52525b; }
2956+
.ranking-note { color: var(--muted); line-height: 1.7; min-width: 270px; }
2957+
.ranking-note a { display: flex; align-items: center; gap: 5px; color: var(--accent); font-size: 11px; margin-top: 12px; }
2958+
.ranking-editorial { margin-top: 48px; }
2959+
.ranking-related { border-top: 1px solid var(--line); padding-top: 36px; }
2960+
.home-rankings { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 40px; }
2961+
.model-ranking-links { margin: 36px 0; }
2962+
.model-ranking-links h2 { font-size: 22px; }
2963+
.model-ranking-links > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
2964+
.model-ranking-links a { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; background: white; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
2965+
.model-ranking-links a:hover { color: var(--accent); }
2966+
@media (max-width: 1050px) {
2967+
.ranking-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
2968+
}
2969+
@media (max-width: 760px) {
2970+
.site-header { height: auto; }
2971+
.header-inner { flex-wrap: wrap; gap: 16px; padding-top: 16px; padding-bottom: 14px; }
2972+
.site-header nav { display: flex; width: 100%; justify-content: flex-end; gap: 22px; }
2973+
.site-header nav a:first-child { display: inline; }
2974+
.ranking-card-grid, .ranking-pending-grid, .ranking-rules { grid-template-columns: 1fr; }
2975+
.ranking-evidence { align-items: flex-start; flex-wrap: wrap; }
2976+
.ranking-evidence .status-indicator { margin-top: 6px; }
2977+
.ranking-evidence a { margin-left: 18px; }
2978+
.ranking-card, .ranking-pending, .ranking-rules { padding: 20px; }
2979+
.ranking-rules { gap: 20px; }
2980+
.ranking-table-help > span { display: inline; }
2981+
.ranking-pending-grid { gap: 24px; }
2982+
.home-rankings { margin-top: 28px; }
2983+
}

‎app/models/[slug]/page.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { models, getModel, formatGB, weightGB, reviewed } from "@/lib/models";
55
import { pageMetadata, jsonLd, siteUrl } from "@/lib/seo";
66
import { Breadcrumb, ArrowLink } from "@/components/chrome";
77
import { ModelMark } from "@/components/model-directory";
8+
import { rankings } from "@/lib/rankings";
89
import { comparisonNotes } from "@/lib/comparisons";
910
import { MemoryCalculator } from "@/components/memory-calculator";
1011
export function generateStaticParams() {
@@ -187,6 +188,7 @@ export default async function ModelPage({
187188
</div>
188189
</section>
189190
{comparisonNotes.some((note) => note.models.includes(slug)) && <section className="comparison-collection"><h2>Compare {model.name}</h2><div className="comparison-note-grid">{comparisonNotes.filter((note) => note.models.includes(slug)).map((note) => <Link href={`/compare/${note.slug}`} key={note.slug}><h3>{note.title}</h3><p>{note.description}</p><span>Read comparison →</span></Link>)}</div></section>}
191+
{rankings.some((entry) => entry.slugs.includes(slug)) && <section className="model-ranking-links"><h2>Find this model in</h2><div>{rankings.filter((entry) => entry.slugs.includes(slug)).map((entry) => <Link key={entry.slug} href={`/rankings/${entry.slug}`}>{entry.title}<ArrowRight size={14} /></Link>)}</div></section>}
190192
<section className="related-section">
191193
<span className="eyebrow">KEEP EXPLORING</span>
192194
<div className="related-grid">

‎app/page.tsx‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { MemorySnapshot } from "@/components/memory-snapshot";
44
import { ModelDirectory } from "@/components/model-directory";
55
import { pageMetadata, jsonLd, siteUrl } from "@/lib/seo";
66
import { trendingModels } from "@/lib/models";
7+
import { rankings } from "@/lib/rankings";
8+
import { RankingCards } from "@/components/ranking-cards";
79

810
export const metadata = pageMetadata(
911
"Compare AI models: GPU memory & deployment specs",
@@ -33,6 +35,10 @@ export default function Home() {
3335
<Link href="/methodology">How we get the data <ArrowRight size={14} /></Link>
3436
</div>
3537
<ModelDirectory variant="trending" />
38+
<section className="home-rankings" aria-labelledby="home-rankings-title">
39+
<div className="section-heading"><div><h2 id="home-rankings-title">Find your shortlist</h2><p className="trending-caption">Start with a deployment question.</p></div><Link className="browse-models-link" href="/rankings">Explore all rankings <ArrowRight size={16} /></Link></div>
40+
<RankingCards entries={rankings.slice(0, 3)} />
41+
</section>
3642
<section className="deployment-resources" aria-label="Memory estimates and deployment guides">
3743
<MemorySnapshot />
3844
<div className="resource-guides">

‎app/rankings/[slug]/page.tsx‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import Link from "next/link";
2+
import { notFound } from "next/navigation";
3+
import { ArrowUpRight, ArrowRight } from "lucide-react";
4+
import { Breadcrumb } from "@/components/chrome";
5+
import { ModelMark } from "@/components/model-directory";
6+
import { RankingCards } from "@/components/ranking-cards";
7+
import { rankings, rankingModels, rankingMetric, contextTier } from "@/lib/rankings";
8+
import { weightGB } from "@/lib/models";
9+
import { guides } from "@/lib/guides";
10+
import { pageMetadata, jsonLd, siteUrl } from "@/lib/seo";
11+
12+
export function generateStaticParams() { return rankings.map(({ slug }) => ({ slug })); }
13+
export async function generateMetadata({ params }: { params: Promise<{ slug: string }> }) {
14+
const { slug } = await params;
15+
const ranking = rankings.find((entry) => entry.slug === slug);
16+
return ranking ? pageMetadata(ranking.title, ranking.description, `/rankings/${slug}`) : { title: "Ranking not found" };
17+
}
18+
export default async function RankingPage({ params }: { params: Promise<{ slug: string }> }) {
19+
const { slug } = await params;
20+
const ranking = rankings.find((entry) => entry.slug === slug);
21+
if (!ranking) notFound();
22+
const models = rankingModels(ranking);
23+
const guide = guides.find((guide) => guide.slug === ranking.guide)!;
24+
const order = ranking.kind === "calculated" ? "ItemListOrderAscending" : ranking.kind === "specification" ? "ItemListOrderDescending" : "ItemListUnordered";
25+
return <main id="main" className="page-width rankings-page">
26+
<Breadcrumb items={[{ label: "Rankings", href: "/rankings" }, { label: ranking.title }]} />
27+
<div className="page-intro ranking-intro"><span className={`ranking-label ranking-label--${ranking.kind}`}>{ranking.label}</span><h1>{ranking.title}</h1><p>{ranking.description}</p><div className="ranking-byline">{models.length} models · Reviewed <time dateTime={ranking.updated}>September 22, 2026</time> · BenchGrid editorial</div></div>
28+
<dl className="ranking-rules"><div><dt>What is included</dt><dd>{ranking.scope}</dd></div><div><dt>How this list is ordered</dt><dd>{ranking.ordering}</dd></div></dl>
29+
<p className="ranking-table-help" id="ranking-scroll-help">Publisher sources are linked for every model. {ranking.kind === "calculated" ? "≈ marks nominal parameter arithmetic. Weight storage excludes serving overhead." : "No independent performance scores have been measured."} <span>On smaller screens, scroll the table horizontally.</span></p>
30+
<div className="ranking-table-wrap" role="region" aria-label={`${ranking.title} model table`} aria-describedby="ranking-scroll-help" tabIndex={0}>
31+
<table className="ranking-table" data-ranking-kind={ranking.kind}>
32+
<caption className="sr-only">{ranking.title}. {ranking.ordering}</caption>
33+
<thead><tr>{ranking.kind === "calculated" && <th scope="col">Rank</th>}<th scope="col">Model</th><th scope="col">{ranking.metric}</th>{ranking.kind !== "specification" && <th scope="col">Context</th>}<th scope="col">Deployment note</th></tr></thead>
34+
<tbody>{models.map((model) => {
35+
const rank = ranking.kind === "calculated" ? models.findIndex((entry) => entry.params === model.params) + 1 : undefined;
36+
const value = ranking.kind === "calculated" ? weightGB(model.params!) : ranking.kind === "specification" ? contextTier(model) : undefined;
37+
return <tr key={model.slug} data-model-slug={model.slug} data-sort-value={value}>
38+
{rank !== undefined && <td className="ranking-position">{String(rank).padStart(2, "0")}</td>}
39+
<th scope="row"><div className="ranking-model"><ModelMark model={model} /><Link href={`/models/${model.slug}`}>{model.name}</Link></div><div className="ranking-model-meta"><span>{model.maker}</span>{model.baseline && <span className="ranking-baseline">Baseline</span>}<a href={model.source} target="_blank" rel="noopener noreferrer" aria-label={`${model.name} official model card`}>Source <ArrowUpRight size={12} /></a></div></th>
40+
<td className="ranking-value">{rankingMetric(ranking, model)}{ranking.kind === "calculated" && <small>{model.size} parameters</small>}</td>
41+
{ranking.kind !== "specification" && <td className="ranking-context">{model.context}</td>}
42+
<td className="ranking-note">{ranking.notes[model.slug] || model.takeaway}<Link href={`/compare?models=${model.slug},${models.find((entry) => entry.slug !== model.slug)!.slug}`}>Compare model <ArrowRight size={13} /></Link></td>
43+
</tr>;
44+
})}</tbody>
45+
</table>
46+
</div>
47+
<div className="comparison-editorial ranking-editorial">{ranking.sections.map((section) => <section key={section.title}><h2>{section.title}</h2><p>{section.body}</p></section>)}<section><h2>Before you choose hardware</h2><p><Link href={`/guides/${guide.slug}`}>{guide.title}</Link> explains the next planning step. For the distinction between publisher specifications, calculations, and measurements, read the <Link href="/methodology">BenchGrid methodology</Link>.</p></section></div>
48+
<section className="ranking-related" aria-labelledby="related-rankings"><div className="section-heading"><h2 id="related-rankings">Explore another question</h2><Link className="browse-models-link" href="/rankings">All rankings <ArrowRight size={16} /></Link></div><RankingCards entries={rankings.filter((entry) => entry.slug !== slug).slice(0, 3)} /></section>
49+
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: jsonLd([
50+
{ "@context": "https://schema.org", "@type": "CollectionPage", name: ranking.title, description: ranking.description, url: `${siteUrl}/rankings/${slug}`, dateModified: ranking.updated, author: { "@type": "Organization", name: "BenchGrid", url: siteUrl }, citation: models.map((model) => model.source), mainEntity: { "@type": "ItemList", name: ranking.title, description: ranking.ordering, numberOfItems: models.length, itemListOrder: `https://schema.org/${order}`, itemListElement: models.map((model, i) => ({ "@type": "ListItem", position: i + 1, name: model.name, url: `${siteUrl}/models/${model.slug}` })) } },
51+
{ "@context": "https://schema.org", "@type": "BreadcrumbList", itemListElement: [{ "@type": "ListItem", position: 1, name: "Home", item: siteUrl }, { "@type": "ListItem", position: 2, name: "Rankings", item: `${siteUrl}/rankings` }, { "@type": "ListItem", position: 3, name: ranking.title, item: `${siteUrl}/rankings/${slug}` }] },
52+
]) }} />
53+
</main>;
54+
}

0 commit comments

Comments
 (0)