When someone shares a link, the network shows the page's Open Graph image. createOgImageRoute draws that image for every page: 1200 × 630, dark, with the page's title in your heading font, an eyebrow above it, your domain below, and your mascot beside it, looking at the title. You describe your product once, in a skin, and every page gets its own card.
Meta.generate already points a page without its own image at /api/og/generate?title=…, so once the route exists, every page has a card. The route needs the Node.js runtime (the default) when the skin reads fonts from disk.
The route reads the query string:
Build the URL with ogImageUrl:
Fonts from disk are the safest choice: a card renders on the first crawl of a page, and a Google Fonts outage would otherwise draw it in the fallback face.
Cards are served with Cache-Control: public, max-age=31536000, immutable, so a CDN draws each one once. When you change the skin, change v in your URLs.
The card draws your mascot with mascotSvg, which returns the mascot as a standalone SVG string: the same look options as Mascot, one still expression, every color written out. Use it anywhere React can't animate, such as emails and favicons.
Scheme names such as brand need a color through schemes, since there is no CSS to read them from. Kawaii moods draw their base mood, with blush where they have it.