3031 source-verified AI-built games from 2724 repos, attributed to GPT-6 Astra, GPT-6.1 Sol, Gemini 4 Argon, Claude Opus, Claude Sonnet and Claude Fable
Python ai-gamesai-generatedawesome-listbrowser-gamesclaudeclaude-opusclaude-opus-5-5game-developmentgeminigemini-4gemini-4-argongpt-6-astrallmopen-source-gamesopus-5-5threejsvibe-coding
import fs from 'node:fs';
import path from 'node:path';
const allRecords = JSON.parse(fs.readFileSync('games.json', 'utf8'));
const lowQualityThreshold = 7;
const allGameRecords = allRecords.filter((record) => record.is_independent_game && record.counted_game_units > 0);
const badGameRecords = allGameRecords.filter((record) => Number(record.quality_estimate_10) < lowQualityThreshold);
const games = allGameRecords.filter((record) => Number(record.quality_estimate_10) >= lowQualityThreshold);
const otherRecords = allRecords.filter((record) => !record.is_independent_game);
const esc = (value) => String(value ?? '').replaceAll('|', '\\|').replaceAll('\n', ' ').trim();
const techText = (record, technology = null) => (technology ?? record.technology ?? []).join(', ') || 'Browser';
const compactTechText = (record, technology = null) => {
const values = technology ?? record.technology ?? [];
return values.length > 5 ? `${values.slice(0, 5).join(', ')}, +${values.length - 5} more` : values.join(', ') || 'Browser';
};
const modelText = (record, unit = null) => (unit?.model_family ?? record.model_family ?? []).join(', ') || 'Unspecified';
const evidenceText = (record, unit = null) => unit?.model_evidence ?? record.model_evidence ?? record.method_evidence ?? 'unknown';
const evidenceMeta = {
confirmed: { label: 'direct model evidence', icon: '✓' },
confirmed_at_repository_level: { label: 'repository-level model evidence', icon: '✓' },
confirmed_supporting_game_code: { label: 'model evidence with supporting game code', icon: '✓' },
'creator-reported': { label: 'creator-reported model evidence', icon: '≈' },
'directory-method': { label: 'directory-method model evidence', icon: '△' },
'repository/topic trail': { label: 'repository-topic model evidence', icon: '△' },
inferred: { label: 'inferred model evidence', icon: '?' },
unknown: { label: 'unclassified model evidence', icon: '?' },
};
const evidence = (record, unit = null) => evidenceMeta[evidenceText(record, unit)] ?? evidenceMeta.unknown;
function category(record, gameName, technology = null) {
const text = `${gameName} ${record.name} ${record.verification_notes ?? ''} ${techText(record, technology)}`.toLowerCase();
const runtimeText = techText(record, technology).toLowerCase();
if (/godot|unity|unreal|pygame|playstation|ps1|minecraft|mcfunction|datapack|cocos|libgdx|monogame|love2d|sdl|raylib|bevy|defold|rpg maker|game maker|python, cli|c\+\+|native|luanti|mineclonia|psn00bsdk|duckstation|desktop export|roblox|luau|flutter|evennia|\bmud\b|telnet|source 2|dota 2/.test(runtimeText)) return 'Non-Browser Engines';
if (/racing|racer|kart|car game|drift|flight|mountain-bike|motorbike|formula/.test(text)) return 'Racing and Vehicles';
if (/shooter|fps|doom|assault|zombie|surviv|combat|war|iron man|invader|battle|arena/.test(text)) return 'Action and Shooters';
if (/puzzle|tetris|sudoku|breakout|minesweeper|word|match|snake|pinball|flap|platform|arcade/.test(text)) return 'Puzzle, Arcade, and Platformers';
if (/rpg|dungeon|quest|horror|adventure|explor|space|planet|story|castle|hollow|rooms/.test(text)) return 'Adventure, RPG, and Exploration';
if (/strategy|tactic|chess|card|board|farm|kingdom|gm|simulator|simulation|soccer|football|basketball|monopoly/.test(text)) return 'Strategy, Simulation, and Sports';
if (/three\.js|threejs|webgl|webgpu/.test(text)) return 'Three.js and WebGL';
return 'Other Browser Games';
}
function units(record) {
const names = [...(record.contained_games ?? [])];
const target = record.counted_game_units || 1;
if (target > 1 && names.length !== target) {
return [{
name: record.name,
rating: record.quality_estimate_10 ?? 0,
technology: record.technology,
gameLink: record.game_links?.[0],
demoLink: record.live_demo_url,
screenshot_urls: record.screenshot_urls ?? [],
screenshot_rating_10: record.screenshot_rating_10,
screenshot_rating_evidence_url: record.screenshot_rating_evidence_url,
prompt: record.prompt_note_enabled ? record.prompt : '',
evidenceUrl: record.evidence_url,
model_family: record.model_family,
model_evidence: record.model_evidence ?? record.method_evidence,
published_on: record.published_on,
recent_game_evidence_on: record.recent_game_evidence_on,
unitCount: target,
aggregateLabel: names[0] ?? `${target} documented game units`,
record,
}];
}
while (names.length < target) names.push(record.name);
const estimates = record.contained_game_estimates ?? [];
const gameLinks = record.contained_game_links ?? record.game_links ?? [];
const demos = record.live_demo_urls ?? [record.live_demo_url];
return names.slice(0, target).map((name, index) => {
const estimate = estimates[index] ?? {};
return {
name,
rating: estimate.quality_estimate_10 ?? record.quality_estimate_10 ?? 0,
technology: estimate.technology ?? record.technology,
gameLink: gameLinks[index],
demoLink: demos[index],
screenshot_urls: record.contained_game_screenshots ? (record.contained_game_screenshots[name] ?? []) : (record.screenshot_urls ?? []),
screenshot_rating_10: estimate.screenshot_rating_10 ?? (record.contained_game_screenshots ? undefined : record.screenshot_rating_10),
screenshot_rating_evidence_url: estimate.screenshot_rating_evidence_url ?? (record.contained_game_screenshots ? undefined : record.screenshot_rating_evidence_url),
prompt: estimate.prompt ?? (record.prompt_note_enabled ? record.prompt : ''),
evidenceUrl: estimate.evidence_url ?? record.evidence_url,
model_family: estimate.model_family ?? record.model_family,
model_evidence: estimate.model_evidence ?? record.model_evidence ?? record.method_evidence,
estimate,
published_on: estimate.published_on,
recent_game_evidence_on: estimate.recent_game_evidence_on,
unitCount: 1,
record,
};
});
}
const rows = games.flatMap(units).map((unit) => ({ ...unit, category: category(unit.record, unit.name, unit.technology) }));
const groups = new Map();
for (const row of rows) {
if (!groups.has(row.category)) groups.set(row.category, []);
groups.get(row.category).push(row);
}
for (const group of groups.values()) group.sort((a, b) => b.rating - a.rating || a.name.localeCompare(b.name));
const unitTotal = (items) => items.reduce((total, item) => total + item.unitCount, 0);
const count = unitTotal(rows);
const repoCount = games.length;
const badRows = badGameRecords.flatMap(units);
const badCount = unitTotal(badRows);
const hasDate = (value) => typeof value === 'string' && /^\d{4}-\d{2}-\d{2}$/.test(value);
const publicationDateRecords = games.filter((record) => hasDate(record.published_on) || record.contained_game_estimates?.some((estimate) => hasDate(estimate.published_on)));
const repositoryDateRecords = games.filter((record) => hasDate(record.repository_created_at?.slice(0, 10)));
const publicationDateUnits = unitTotal(rows.filter((row) => hasDate(row.published_on ?? row.record.published_on)));
const repositoryDateUnits = unitTotal(rows.filter((row) => hasDate(row.record.repository_created_at?.slice(0, 10))));
const totalRecordCount = allRecords.length;
const relatedRecordCount = totalRecordCount - repoCount;
const verifiedOn = allRecords.map((record) => record.verified_on).filter(Boolean).sort().at(-1) ?? 'unknown';
const iconLinks = (row) => {
const screenshots = row.screenshot_urls ?? [];
const directPrompts = row.record.prompt_urls ?? [];
const prompt = directPrompts[0] ?? (row.prompt ? `${gameNoteUrl(row)}#reverse-engineered-prompt` : '');
return [
Number.isFinite(row.screenshot_rating_10) ? `📸 **${Number(row.screenshot_rating_10).toFixed(1)}/10**` : '',
screenshots[0] ? `[screenshot](${screenshots[0]})` : '',
screenshots.length > 1 ? `+${screenshots.length - 1} more screenshots in data` : '',
prompt ? `[prompt](${prompt})` : '',
directPrompts.length > 1 ? `+${directPrompts.length - 1} more prompts in data` : '',
].filter(Boolean).join(' · ');
};
const categoryIcons = {
'Racing and Vehicles': '🏎️',
'Action and Shooters': '💥',
'Puzzle, Arcade, and Platformers': '🧩',
'Adventure, RPG, and Exploration': '🗺️',
'Strategy, Simulation, and Sports': '♟️',
'Three.js and WebGL': '🧊',
'Other Browser Games': '🎮',
'Non-Browser Engines': '🛠️',
};
const slug = (title) => title.toLowerCase().replaceAll(/[^a-z0-9 ]/g, '').replaceAll(' ', '-');
const rankedRows = [...rows].sort((a, b) => b.rating - a.rating || a.name.localeCompare(b.name));
const featuredRepos = new Set();
const topPicks = rankedRows.filter((row) => {
if (featuredRepos.has(row.record.github_url)) return false;
featuredRepos.add(row.record.github_url);
return true;
}).slice(0, 15);
const localDate = (value) => new Intl.DateTimeFormat('en-CA', {
timeZone: 'Asia/Ho_Chi_Minh', year: 'numeric', month: '2-digit', day: '2-digit',
}).format(new Date(value));
const today = localDate(new Date());
const dateOffset = (date, days) => {
const value = new Date(`${date}T00:00:00Z`);
value.setUTCDate(value.getUTCDate() + days);
return value.toISOString().slice(0, 10);
};
const recentDate = (row) => row.recent_game_evidence_on ?? row.published_on ?? row.record.recent_game_evidence_on ?? row.record.published_on ?? '';
const createdDate = (row) => row.estimate?.game_created_on ?? row.record.game_created_on
?? (row.record.repository_created_at ? localDate(row.record.repository_created_at) : '');
const createdBasis = (row) => row.estimate?.game_created_on || row.record.game_created_on
? 'creator-reported game creation' : 'repository creation proxy';
const uniqueRanked = (predicate, limit) => {
const seen = new Set();
return rankedRows.filter((row) => {
if (!predicate(row)) return false;
if (seen.has(row.record.github_url)) return false;
seen.add(row.record.github_url);
return true;
}).slice(0, limit);
};
const topToday = uniqueRanked((row) => row.record.verified_on === today, 10);
const yesterday = dateOffset(today, -1);
const newlyCreated = [...games]
.filter((record) => {
const date = record.repository_created_at ? localDate(record.repository_created_at) : '';
return date === yesterday || date === today;
})
.sort((a, b) => b.repository_created_at.localeCompare(a.repository_created_at));
const weekStart = dateOffset(today, -6);
const monthStart = `${today.slice(0, 8)}01`;
const topWeek = uniqueRanked((row) => {
const date = createdDate(row);
return date >= weekStart && date <= today;
}, 15);
const topMonth = uniqueRanked((row) => {
const date = recentDate(row);
return date >= monthStart && date <= today;
}, 20);
const gameNoteLinks = new Map();
const gamesDirectory = path.join(process.cwd(), 'games');
if (fs.existsSync(gamesDirectory)) {
for (const entry of fs.readdirSync(gamesDirectory, { withFileTypes: true })) {
if (!entry.isDirectory()) continue;
const notePath = path.join(gamesDirectory, entry.name, 'readme.md');
if (!fs.existsSync(notePath)) continue;
const note = fs.readFileSync(notePath, 'utf8');
const title = note.match(/^# (.+)$/m)?.[1];
const repository = note.match(/^- \*\*Repository:\*\* \[(https:\/\/github\.com\/[^)]+)\]/m)?.[1];
if (title && repository) gameNoteLinks.set(`${repository}\n${title}`, `games/${entry.name}/readme.md`);
}
}
const gameNoteUrl = (row) => gameNoteLinks.get(`${row.record.github_url}\n${row.name}`) ?? row.record.github_url;
const pageGameUrl = (row, prefix = '') => {
const url = gameNoteUrl(row);
return url.startsWith('games/') ? `${prefix}${url}` : url;
};
const rowModels = (row) => [...new Set(row.model_family?.length ? row.model_family : ['Unspecified'])];
const modelGroups = new Map();
for (const row of rows) {
for (const model of rowModels(row)) {
if (!modelGroups.has(model)) modelGroups.set(model, []);
modelGroups.get(model).push(row);
}
}
const modelSlug = (model) => model.toLowerCase().replaceAll(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '');
const modelPages = [...modelGroups].sort(([a, aRows], [b, bRows]) => unitTotal(bRows) - unitTotal(aRows) || a.localeCompare(b));
const html = (value) => String(value ?? '').replaceAll('&', '&').replaceAll('<', '<').replaceAll('>', '>').replaceAll('"', '"');
const gallery = JSON.parse(fs.readFileSync('assets/screenshot-gallery/gallery.json', 'utf8'));
const screenshotGallery = () => {
let text = `## Top games by screenshot\n\n`;
text += `Rank 30 games by the score of each game's best manually reviewed screenshot, not by source-quality score. Review composition, scene detail, visual coherence, and readable gameplay. Reward polished stylized art as well as realism; discount title cards, menus, concept art, and frames that do not show play. Treat this as a visual impression, not a runtime playtest or proof of AAA production quality. Select a thumbnail or title to inspect every image's score, rating method, and reason on the game's Markdown page. Secondary images use relative frame adjustments, not independent manual reviews.\n\n`;
text += `<table>\n`;
for (let index = 0; index < gallery.length; index += 3) {
text += `<tr>\n`;
for (const item of gallery.slice(index, index + 3)) {
const detailUrl = gameNoteLinks.get(`${item.github_url}\n${item.name}`);
if (!detailUrl) throw new Error(`Missing Markdown game page for gallery item: ${item.name}`);
text += `<td align="center" width="33%"><a href="${html(detailUrl)}"><img src="${html(item.thumbnail)}" alt="${html(item.name)} screenshot" width="100%"></a><br><a href="${html(detailUrl)}"><strong>${html(item.name)}</strong></a> · 📸 ${Number(item.screenshot_rating_10).toFixed(1)}/10</td>\n`;
}
text += `</tr>\n`;
}
return `${text}</table>\n\n`;
};
const periodTable = (title, description, items, period) => {
let text = `## ${title}\n\n> ${description}\n\n`;
if (!items.length) return `${text}_No verified entries match this period yet._\n\n`;
const dateHeading = period === 'today' ? 'Verified date' : period === 'week' ? 'Created date (basis)' : 'Evidence date';
text += `| Rank | Game | Score | Model | ${dateHeading} |\n| ---: | --- | ---: | --- | --- |\n`;
items.forEach((row, index) => {
const date = period === 'today' ? row.record.verified_on : period === 'week'
? `${createdDate(row)} · ${createdBasis(row)}` : recentDate(row);
text += `| ${index + 1} | [**${esc(row.name)}**](${gameNoteUrl(row)}) | ⭐ **${Number(row.rating).toFixed(1)}** | ${esc(modelText(row.record, row))} | ${esc(date)} |\n`;
});
return `${text}\n`;
};
const threeCount = unitTotal(rows.filter((row) => /three\.js|threejs|webgl|webgpu/i.test(techText(row.record, row.technology))));
const nonBrowserCount = unitTotal(rows.filter((row) => row.category === 'Non-Browser Engines'));
const directPromptCount = unitTotal(rows.filter((row) => row.record.prompt_urls?.length));
const promptFieldCount = unitTotal(rows.filter((row) => row.record.prompt));
const screenshotCount = unitTotal(rows.filter((row) => row.screenshot_urls?.length));
const evidenceCounts = rows.reduce((counts, row) => {
const key = evidenceText(row.record, row);
counts[key] = (counts[key] ?? 0) + row.unitCount;
return counts;
}, {});
const evidenceCount = (key) => evidenceCounts[key] ?? 0;
let output = `<div align="center">\n\n`;
output += `# 🎮 Awesome AI Games\n\n`;
output += `<a href="https://games.omgithub.com/"><img src="assets/awesome-ai-games.svg" alt="Awesome AI Games: a curated field guide to AI-made games" width="100%" /></a>\n\n`;
output += `### ${count} curated game units. ${repoCount} qualifying source repositories.\n\n`;
output += `[](#browse-by-model) `;
output += `[](games.json) `;
output += `[](#collection-at-a-glance)\n\n`;
output += `[](https://github.com/gamingnews5/awesome-opus-5.5-games/stargazers) `;
output += `[](https://github.com/gamingnews5/awesome-opus-5.5-games/forks)\n\n`;
output += `> **Browse source-backed games attributed to GPT-6 Astra, GPT-6.1 Sol, Gemini 4 Argon, Claude Opus, Claude Sonnet, or Claude Fable.**<br />\n`;
output += `> Every listed unit maps to a qualifying GitHub source repository. The model-evidence grade is visible on every entry.\n\n`;
output += `<a href="https://github.com/SubmitGame"><img src="https://github.com/SubmitGame/.github/raw/main/assets/submit-your-game.svg" alt="Submit your game" width="320" /></a>\n\n`;
output += `</div>\n\n---\n\n`;
output += screenshotGallery();
output += `## Browse by model\n\n`;
output += `Select a model to browse its ranked games and screenshots. Count each multi-model game on every matching model page; do not sum these counts for a collection total. Keep broad and unspecified model labels separate from versioned labels.\n\n`;
output += `| Model | Game units | Source repositories |\n| --- | ---: | ---: |\n`;
for (const [model, modelRows] of modelPages) output += `| [${esc(model)}](models/${modelSlug(model)}.md) | **${unitTotal(modelRows)}** | ${new Set(modelRows.map((row) => row.record.github_url)).size} |\n`;
output += `\n`;
output += periodTable('Top games today', `Rank the highest-rated repositories verified in this curation run on **${today}**.`, topToday, 'today');
output += `## New source repositories yesterday and today\n\n`;
output += `Filter repository creation to **${yesterday}–${today}** in **Asia/Ho_Chi_Minh (UTC+7)**; read the UTC dates below separately. Do not treat repository creation as proof of game publication. Inspect the source and model-evidence links before using an entry.\n\n`;
if (newlyCreated.length) {
output += `| Repository | Game units | Model | Created (UTC) |\n| --- | ---: | --- | --- |\n`;
for (const record of newlyCreated) {
const first = rows.find((row) => row.record.github_url === record.github_url);
output += `| [${esc(record.name)}](${first ? gameNoteUrl(first) : record.github_url}) ([source](${record.github_url})) | ${record.counted_game_units} | ${esc(modelText(record))} | ${record.repository_created_at.slice(0, 10)} |\n`;
}
output += `\n`;
} else output += `_No qualifying repositories were created in this window._\n\n`;
output += periodTable('Top games this week', `Rank source-verified games with a creation signal in the last seven calendar days, **${weekStart}–${today}** (Asia/Ho_Chi_Minh). Prefer an explicit creator-reported game-creation date; otherwise use repository creation as a proxy, not proof of the game's actual creation or publication. Exclude older creation dates even when gameplay evidence is recent.`, topWeek, 'week');
output += periodTable('Top games this month', `Rank the highest-rated games with publication or qualifying gameplay evidence from **${monthStart}** through **${today}**.`, topMonth, 'month');
output += `## Top-rated picks\n\n`;
output += `> **Start here. These projects have the strongest combined evidence, scope, and source quality. Ratings do not replace evidence grades.**\n\n`;
output += `| Game | Score | Built with | Evidence |\n| --- | ---: | --- | --- |\n`;
for (const row of topPicks) output += `| [**${esc(row.name)}**](${gameNoteUrl(row)}) | ⭐ **${Number(row.rating).toFixed(1)}** | ${esc(modelText(row.record, row))} | [${evidence(row.record, row).icon} ${esc(evidence(row.record, row).label)}](${row.evidenceUrl}) |\n`;
output += `\n`;
output += `## What is this?\n\n`;
output += `Browse playable game units with public GitHub source and evidence that connects them to GPT-6 Astra, GPT-6.1 Sol, Gemini 4 Argon, Claude Opus, Claude Sonnet, or Claude Fable. “Curated” does not mean every attribution has the same strength: the per-entry evidence grade states whether the model claim is direct, creator-reported, repository-level, or inferred.\n\n`;
output += `The source of truth is [games.json](games.json). It was last verified on **${verifiedOn}**.\n\n`;
output += `Browse [the awesome-list index](awesomelists.md) for verified game catalogs with their counted entry totals.\n\n`;
output += `Browse [where to submit a game](game-submission-options.md) to compare publishing sites and GitHub lists by fit, route, and review rules.\n\n`;
output += `Browse [latest game additions by date](latest-games.md) to compare each source repository's creation time with the date this collection first recorded it.\n\n`;
output += `Browse [AI game generators and engines](https://github.com/AgentsLoop/awesome-ai-game-maker) for tools that build or edit playable games from prompts, with verified example games.\n\n`;
output += `Browse [Awesome Game Resources](awesome-game-resources.md) to find game assets, VFX, shaders, sound effects, music, and production tools.\n\n`;
output += `Browse [Claude Opus 5.5 release-week games](opus-5.5-games.md) for direct source and model-evidence links.\n\n`;
output += `Browse [Gemini 4 Argon release-week games](gemini-4-argon-games.md) for direct source, play, and model-evidence links.\n\n`;
output += `Browse [publication-date rankings](rankings/README.md) for daily, weekly, and monthly reports. These reports exclude games without a reliable publication or qualifying evidence date. The audit keeps repository creation dates separate from publication dates.\n\n`;
output += `The dataset stores source-derived reconstruction prompts without presenting them as original transcripts. Newly expanded Opus 5.5 entries link to their per-game prompt notes.\n\n`;
output += `## Collection at a glance\n\n`;
output += `| Signal | Result |\n| --- | ---: |\n`;
output += `| Counted game units | **${count}** |\n`;
output += `| Qualifying source repositories | **${repoCount}** |\n`;
output += `| Dataset records, including related or excluded records | **${totalRecordCount}** |\n`;
output += `| Low-quality game units moved to bad-games.md | **${badCount}** (${badGameRecords.length} repositories) |\n`;
output += `| Other non-game records moved to other.md | **${otherRecords.length}** |\n`;
output += `| WebGL-family game units, across all categories | **${threeCount}** |\n`;
output += `| Non-browser engine game units | **${nonBrowserCount}** |\n`;
output += `| Game units with screenshot links | **${screenshotCount}** |\n`;
output += `| Game units with direct prompt links | **${directPromptCount}** |\n`;
output += `| Game units with source-derived prompt fields | **${promptFieldCount}** |\n`;
output += `| Game units with exact publication dates | **${publicationDateUnits}** (${publicationDateRecords.length} repositories) |\n`;
output += `| Game units with repository creation dates | **${repositoryDateUnits}** (${repositoryDateRecords.length} repositories) |\n\n`;
output += `## Verification snapshot\n\n`;
output += `The list contains **${count}** game units from **${repoCount}** qualifying repositories. The dataset also retains **${relatedRecordCount}** related or excluded records for audit history. Each row uses one of these model-evidence grades.\n\n`;
output += `| Grade | Meaning | Game units |\n| --- | --- | ---: |\n`;
output += `| ✓ Direct | A public primary source directly attributes the listed model. | **${evidenceCount('confirmed') + evidenceCount('confirmed_at_repository_level') + evidenceCount('confirmed_supporting_game_code')}** |\n`;
output += `| ≈ Creator report | The creator attributes the listed model. | **${evidenceCount('creator-reported')}** |\n`;
output += `| △ Repository trail | A repository, directory, or topic trail supports the model claim. | **${evidenceCount('directory-method') + evidenceCount('repository/topic trail')}** |\n`;
output += `| ? Inferred | The model attribution is inferred and should be independently checked. | **${evidenceCount('inferred') + evidenceCount('unknown')}** |\n\n`;
output += `## More records\n\n`;
output += `- ⚠️ [Bad games](bad-games.md) — **${badCount}** low-quality game units excluded from the curated library\n`;
output += `- 📦 [Other](other.md) — **${otherRecords.length}** related, derivative, forked, or non-game records\n`;
output += `\n## How to use this guide\n\n`;
output += `- Select a game title to open its local per-game note in [games/](games/).\n`;
output += `- Select the repository link inside the note to open the canonical GitHub source.\n`;
output += `- Select **files** to inspect linked gameplay source. Select **play** for a published demo.\n`;
output += `- Read the evidence grade before relying on a model-attribution claim. The rating is a curation aid, not a benchmark.\n\n`;
output += `Each compact row shows **source-quality rating**, **model**, **technology**, **model-evidence grade**, and relevant source links. Rows with usable screenshots also show a separate 📸 **screenshot rating**. FLOPS estimates remain in the dataset but are omitted here because they are static, low-confidence estimates.\n\n`;
const modelsDirectory = path.join(process.cwd(), 'models');
fs.mkdirSync(modelsDirectory, { recursive: true });
const expectedModelFiles = new Set();
for (const [model, modelRows] of modelPages) {
const filename = `${modelSlug(model)}.md`;
expectedModelFiles.add(filename);
const modelGroupsByCategory = new Map();
for (const row of modelRows) {
if (!modelGroupsByCategory.has(row.category)) modelGroupsByCategory.set(row.category, []);
modelGroupsByCategory.get(row.category).push(row);
}
let page = `# ${model} games\n\n`;
page += `Browse **${unitTotal(modelRows)} curated game units** from **${new Set(modelRows.map((row) => row.record.github_url)).size} source repositories** attributed to ${model}. Read each evidence grade before relying on the attribution. Include multi-model games here and on every other applicable model page.\n\n`;
page += `[Back to all models](../README.md#browse-by-model) · [Source data](../games.json)\n\n`;
page += `## Top-rated games\n\n| Game | Score | Evidence |\n| --- | ---: | --- |\n`;
for (const row of [...modelRows].sort((a, b) => b.rating - a.rating || a.name.localeCompare(b.name)).slice(0, 10)) {
const grade = evidence(row.record, row);
page += `| [${esc(row.name)}](${pageGameUrl(row, '../')}) | ⭐ ${Number(row.rating).toFixed(1)} | [${grade.icon} ${grade.label}](${row.evidenceUrl}) |\n`;
}
page += `\n`;
const modelGallery = gallery.filter((item) => modelRows.some((row) => row.record.github_url === item.github_url && row.name === item.name));
if (modelGallery.length) {
page += `## Screenshot highlights\n\n`;
page += `Inspect these manually rated screenshots. Treat the scores as visual impressions, not runtime playtests.\n\n<table>\n`;
for (let index = 0; index < modelGallery.length; index += 3) {
page += `<tr>\n`;
for (const item of modelGallery.slice(index, index + 3)) {
const detailUrl = gameNoteLinks.get(`${item.github_url}\n${item.name}`);
if (!detailUrl) throw new Error(`Missing Markdown game page for gallery item: ${item.name}`);
page += `<td align="center" width="33%"><a href="../${html(detailUrl)}"><img src="../${html(item.thumbnail)}" alt="${html(item.name)} screenshot" width="100%"></a><br><a href="../${html(detailUrl)}"><strong>${html(item.name)}</strong></a> · 📸 ${Number(item.screenshot_rating_10).toFixed(1)}/10</td>\n`;
}
page += `</tr>\n`;
}
page += `</table>\n\n`;
}
page += `## Game library\n\n`;
for (const [title, group] of modelGroupsByCategory) page += `- ${categoryIcons[title]} [${title}](#${slug(title)}) — **${unitTotal(group)} game units**\n`;
page += `\n`;
for (const [title, group] of modelGroupsByCategory) {
page += `## ${title}\n\n`;
for (const row of group.sort((a, b) => b.rating - a.rating || a.name.localeCompare(b.name))) {
const grade = evidence(row.record, row);
const extra = iconLinks(row).replaceAll('(games/', '(../games/');
const directLinks = [row.gameLink ? `[files](${row.gameLink})` : '', row.demoLink ? `[play](${row.demoLink})` : ''].filter(Boolean).join(' · ');
const aggregate = row.aggregateLabel ? ` · **${row.unitCount} documented units:** ${esc(row.aggregateLabel)}` : '';
page += `- [**${esc(row.name)}**](${pageGameUrl(row, '../')}) — ⭐ **${Number(row.rating).toFixed(1)}/10** · ${esc(modelText(row.record, row))} · ${esc(compactTechText(row.record, row.technology))} · [${grade.icon} ${grade.label}](${row.evidenceUrl})${aggregate}${directLinks ? ` · ${directLinks}` : ''}${extra ? ` · ${extra}` : ''}\n`;
}
page += `\n[Back to game library](#game-library)\n\n`;
}
fs.writeFileSync(path.join(modelsDirectory, filename), `${page.trimEnd()}\n`);
}
for (const filename of fs.readdirSync(modelsDirectory)) {
if (filename.endsWith('.md') && !expectedModelFiles.has(filename)) fs.unlinkSync(path.join(modelsDirectory, filename));
}
output += `## Method\n\n> **Proof over promises. Repository evidence decides what gets counted.**\n\n`;
output += `- Verify the canonical GitHub repository URL. Record its numeric ID when public API metadata is available.\n`;
output += `- Inspect the README, entry point, and gameplay source. Confirm input, rules or objectives, and game state.\n`;
output += `- Place native-engine games in the dedicated non-browser section.\n`;
output += `- Record model evidence as direct, creator-reported, repository-level, directory/topic trail, or inferred. Link every grade to its public evidence URL. Do not present weaker evidence as direct confirmation.\n`;
output += `- Treat source inspection as proof that the code exists. Treat it separately from runtime playtesting.\n`;
output += `- Do not count catalogs, skills, screenshots, visual-only scenes, empty repositories, unchanged forks, or prompt-only projects.\n`;
output += `- Keep source records in [games.json](games.json). Keep rejected candidates in [research/candidates.json](research/candidates.json). Run the validator and regenerate the README and model pages after each dataset edit.\n`;
output += `\n## Rating and data notes\n\n`;
output += `The **0–10 rating** uses source completeness, playable mechanics, scope, tests or deployment, and model-evidence strength. It is a curation estimate, not a review score or performance benchmark. The dataset keeps a FLOPS field as a low-confidence static FP32-work estimate at 60 FPS; it is not measured device performance or model-training compute.\n\n`;
output += `## Per-game notes\n\n`;
output += `Open the [games/](games/) directory or the [per-game notes index](games/README.md) to read a short source-backed note for every named game unit. Each note links model evidence, gameplay source, and available screenshot assets. Use the placeholder only when the repository and related-source scan found no screenshot.\n\n`;
output += `## Ranking reports\n\n`;
output += `Open [rankings/](rankings/README.md) for generated top games this week, top games this month, and daily rankings for the last seven dates. Read each row's date basis before treating it as a publication date.\n\n`;
output += `## Contributing\n\n`;
output += `Follow [the contribution guide](CONTRIBUTING.md). Provide the canonical repository, model-evidence URL, playable-source path, and evidence notes. Validate the dataset and regenerate the README and model pages before opening a pull request.\n\n`;
output += `## Sources and limitations\n\n`;
output += `Primary GitHub repository evidence is preferred. Creator reports and repository trails are useful discovery evidence but are not equivalent to direct model attribution. A source inspection confirms that code exists; it does not claim that a current live demo was playtested unless the record states it. This project follows the practical principle in [Google’s AI-search guidance](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide): publish clear, original, useful, crawlable information instead of special markup or artificial content tricks.\n\n`;
output += `## Star this collection\n\n`;
output += `If source-backed AI game history should stay searchable, [**star the repository**](https://github.com/gamingnews5/awesome-opus-5.5-games).\n`;
fs.writeFileSync('README.md', output);
const link = (label, url) => `[${label}](${url})`;
const short = (value, length = 280) => {
const text = esc(value);
return text.length > length ? `${text.slice(0, length - 1)}…` : text;
};
let badMarkdown = `# Bad Games\n\n> Excluded from the curated library because the quality estimate is below **${lowQualityThreshold.toFixed(1)}/10**. Keep these records for transparent audit history.\n\n`;
badMarkdown += `| Game | Score | Model | Technology | Reason | Links |\n| --- | ---: | --- | --- | --- | --- |\n`;
for (const row of badRows) {
const record = row.record;
const links = [link('GitHub', record.github_url), record.evidence_url ? link('evidence', record.evidence_url) : ''].filter(Boolean).join(' · ');
badMarkdown += `| **${esc(row.name)}** | ${Number(row.rating).toFixed(1)} | ${esc(modelText(record, row))} | ${esc(techText(record, row.technology))} | ${short(record.quality_estimate_basis)} | ${links} |\n`;
}
badMarkdown += `\nDo not use this category as a quality recommendation. Re-run the prompt and quality review workflow after materially improving a source repository.\n`;
fs.writeFileSync('bad-games.md', badMarkdown);
let otherMarkdown = `# Other\n\n> Records retained for audit history but excluded from the game library because they are forks, derivatives, catalogs, tools, engines, or otherwise not independently qualifying games.\n\n`;
otherMarkdown += `| Record | Repository | Reason | Evidence |\n| --- | --- | --- | --- |\n`;
for (const record of otherRecords.sort((a, b) => a.name.localeCompare(b.name))) {
otherMarkdown += `| **${esc(record.name)}** | ${link('GitHub', record.github_url)} | ${short(record.verification_notes)} | ${link('evidence', record.evidence_url)} |\n`;
}
otherMarkdown += `\nDo not count these records as independent game units. Promote a record only after proving distinct gameplay, source ownership, and qualifying model evidence.\n`;
fs.writeFileSync('other.md', otherMarkdown);
const latestRows = allGameRecords.flatMap((record) => units(record).map((row) => ({ ...row, addedDate: record.added_to_repo_on })));
const addedDates = [...new Set(latestRows.map((row) => row.addedDate))].sort().reverse();
const formatUtcDateTime = (value) => {
if (!value) return 'Not recorded';
const date = new Date(value);
return Number.isNaN(date.getTime()) ? 'Not recorded' : `${date.toISOString().slice(0, 10)} ${date.toISOString().slice(11, 19)} UTC`;
};
let latestMarkdown = `# Latest game additions\n\n`;
latestMarkdown += `Compare when each source repository was created with when this collection first recorded it. Group and row dates use the UTC commit date of the first tracked games.json entry. Source creation times come from GitHub repository metadata and use UTC. “Not recorded” means the source creation timestamp is unavailable.\n\n`;
latestMarkdown += `[Back to the game collection](README.md) · [Source data](games.json)\n\n`;
for (const date of addedDates) {
const group = latestRows.filter((row) => row.addedDate === date).sort((a, b) => a.name.localeCompare(b.name) || a.record.github_url.localeCompare(b.record.github_url));
latestMarkdown += `## Added ${date} (UTC)\n\n`;
latestMarkdown += `| Added to this repo (UTC) | Game | Source repository | Original repository created (UTC) | Model | Quality |\n| --- | --- | --- | --- | --- | ---: |\n`;
for (const row of group) {
const repositoryName = row.record.github_url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');
const quality = `${Number(row.rating).toFixed(1)}/10${row.record.quality_category === 'bad_games' ? ' (excluded)' : ''}`;
latestMarkdown += `| ${row.addedDate} | [${esc(row.name)}](${gameNoteUrl(row)}) | [${esc(repositoryName)}](${row.record.github_url}) | ${formatUtcDateTime(row.record.repository_created_at)} | ${esc(modelText(row.record, row))} | ${quality} |\n`;
}
latestMarkdown += `\n`;
}
fs.writeFileSync('latest-games.md', `${latestMarkdown.trimEnd()}\n`);
await import('./generate-organization-profile.mjs');