import { ImageResponse } from 'next/og' const alt = 'Trump Alpha โ€” the crypto signals that move price before the crowd, by Endorphin' const size = { width: 1200, height: 630 } const contentType = 'image/png' function OGImage() { return new ImageResponse(
{/* Background grid */}
{/* Ambient glow */}
{/* Top-right corner badge */}
LIVE
{/* Four signal pills */}
{[ { label: 'Trump ยท Truth Social', color: '#f5a524' }, { label: 'Macro Vibes', color: '#a78bfa' }, { label: 'KOL Signal', color: '#22c55e' }, { label: 'Talks vs Trades', color: '#ef4444' }, ].map((p) => (
{p.label}
))}
{/* Main title */}
Trump Alpha
{/* Sub */}
The crypto signals that move price before the crowd.
A research desk by Endorphin โ€” public, live, timestamped.
{/* Bottom right stat strip */}
{[ { v: '<3s', l: 'post โ†’ position' }, { v: '25', l: 'KOL feeds' }, { v: '$0', l: 'platform fee' }, ].map((s) => (
{s.v} {s.l}
))}
, { ...size }, ) } export default async function handler( _req: import('next').NextApiRequest, res: import('next').NextApiResponse, ) { const image = OGImage() res.setHeader('Content-Type', 'image/png') res.setHeader('Cache-Control', 'public, max-age=86400') res.send(Buffer.from(await image.arrayBuffer())) }