SPB Git forge

spb/ai-atlas

Public
41commits 1branches 0releases
4.6 MBsize
maindefault branch
12 days agolast push
HTML 77.2% TypeScript 10.5% Python 9.6% JavaScript 2.5%
616 B · 13 lines javascript
Raw Blame History
1import { chromium } from 'playwright';2const b = await chromium.launch();3for (const [w,h,tag] of [[1440,900,'desk'],[390,844,'mob']]) {4  const ctx = await b.newContext({ viewport: { width: w, height: h }, colorScheme: 'dark' });5  const p = await ctx.newPage();6  for (const path of ['/', '/models/claude-fable-5.1', '/benchmarks/gpqa']) {7    await p.goto('https://www.ai-atlas.co' + path, { waitUntil: 'networkidle', timeout: 60000 }).catch(()=>{});8    await p.screenshot({ path: `/tmp/aia-${tag}-${path.replace(/[^a-z0-9]+/gi,'_')||'home'}.png`, fullPage: false });9  }10  await ctx.close();11}12await b.close();13