Commit 1baa27ed by PLN (Algolia)

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.
parent d0bb1436
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
"test:e2e": "playwright test", "test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui", "test:e2e:ui": "playwright test --ui",
"prose": "node scripts/prose.mjs", "prose": "node scripts/prose.mjs",
"og": "node scripts/og.mjs",
"fmt": "node scripts/fmt.mjs" "fmt": "node scripts/fmt.mjs"
}, },
"engines": { "engines": {
......
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment