og: generator — headless sketch frames and typographic cards, 1200x630 under a 300KB budget
scripts/og.mjs renders each non-draft post's card front: hydra posts get a real frame of their sketch (source resolved through lib/hydra-sketch.js, booted headless on a bare canvas, five candidates between 4s and 12s, the most detailed wins), other posts a standalone typographic card in Source Serif 4 over the site's paper/ink tokens with a seeded tick-field motif. PNG when it fits the budget, JPEG q~92 otherwise. --video cuts a ping-pong og.mp4 for hydra posts (forward + reverse is the honest loop for a feedback sketch). The og image of a hydra sketch is a render of the author's CC-licensed artwork — attribution stays on the page.
Showing
File added
File added
scripts/og.mjs
0 → 100644
Please
register
or
sign in
to comment