import { readFile, writeFile } from "node:fs/promises"; import { Resvg } from "@resvg/resvg-js"; import satori from "satori"; const IMAGE_WIDTH = 1200; const IMAGE_HEIGHT = 630; const font = await readFile("scripts/space-mono.ttf"); const svg = await satori(
An atmosphere compendium
haunt.at
{/*
Visit a presence on the AT Protocol.
*/}
, { width: IMAGE_WIDTH, height: IMAGE_HEIGHT, fonts: [{ name: "Space Mono", data: font, weight: 400, style: "normal" }], }, ); const png = new Resvg(svg, { fitTo: { mode: "width", value: IMAGE_WIDTH }, }).render(); await writeFile("public/og.png", png.asPng()); function Sigil() { return ( ); }