import { ImageResponse } from 'next/og'; import { Wallpaper } from '@/components/brand/og'; import { intel, safe } from '@/lib/api'; import { fmtInt } from '@/lib/format'; import { SITE_NAME } from '@/lib/site'; export const runtime = 'nodejs'; export const alt = `Ecosystem Pulse on ${SITE_NAME}`; export const size = { width: 1200, height: 630 }; export const contentType = 'image/png'; export default async function PulseOgImage() { const p = await safe(intel.pulse(7)); const c = p?.counters ?? {}; 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)]] : []; return new ImageResponse(, { ...size }); }