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%
1.1 KB · 18 lines tsx
Raw Blame History
1import { ImageResponse } from 'next/og';2import { Wallpaper } from '@/components/brand/og';3import { intel, safe } from '@/lib/api';4import { fmtInt } from '@/lib/format';5import { SITE_NAME } from '@/lib/site';67export const runtime = 'nodejs';8export const alt = `Ecosystem Pulse on ${SITE_NAME}`;9export const size = { width: 1200, height: 630 };10export const contentType = 'image/png';1112export default async function PulseOgImage() {13  const p = await safe(intel.pulse(7));14  const c = p?.counters ?? {};15  const counters: [string, string][] = p ? [['New models · 7 d', fmtInt(c.new_models?.value)], ['Open-weight', fmtInt(c.new_open_weight_models?.value)], ['Price changes', fmtInt(c.price_changes?.value)], ['New leaders', fmtInt(c.new_benchmark_leaders?.value)]] : [];16  return new ImageResponse(<Wallpaper eyebrow="Ecosystem pulse" title="The last 7 days in AI" subtitle="Deterministic counters over what occurred in the window — new models, papers, listings, price changes, benchmark leaders — backfill excluded." counters={counters} footer="www.ai-atlas.co/pulse" markPx={240} />, { ...size });17}18