Skip to content

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

444 B
Raw Blame
// Extract fetch URLs and keyword contexts from a JS bundle. Usage: node scripts/grep-bundle.mjs <file> <word>
import fs from 'node:fs';
const s = fs.readFileSync(process.argv[2], 'utf8');
const word = process.argv[3];
let idx = -1;
let n = 0;
while ((idx = s.indexOf(word, idx + 1)) !== -1 && n < 12) {
  console.log('--- ' + Math.max(0, idx - 120));
  console.log(s.slice(Math.max(0, idx - 120), idx + 160).replace(/\s+/g, ' '));
  n += 1;
}