Skip to content

feat(seo): per-tool Open Graph images - #112

Merged
slaveofcode merged 1 commit into
developfrom
feat/og-images
Aug 1, 2026
Merged

feat(seo): per-tool Open Graph images#112
slaveofcode merged 1 commit into
developfrom
feat/og-images

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Generates a unique branded 1200×630 OG image per tool at build time (satori → resvg), so shared links show the specific tool instead of one generic image.

  • scripts/generate-og.mjs runs in prebuild; images land in public/og/<id>.png and are gitignored (regenerated every build, incl. on Cloudflare).
  • [tool].astro sets og:image/twitter:image to the per-tool PNG.
  • Excluded from the service-worker precache so the 2.4 MB of images don't bloat the PWA.

Verify

  • npm run build → prebuild generated 75 images; dist/og/ has 75; og:image tags point per-tool; precache excludes them; 94 pages; 0 lint errors.

- scripts/generate-og.mjs renders a 1200x630 branded PNG per tool (category-
  colored band + chip, Space Grotesk name, summary, wordmark) at build time via
  prebuild → public/og/<id>.png; [tool].astro points og:image/twitter:image at it.
- Generated (not committed): public/og gitignored; regenerated each build.
- Excluded from the SW precache (og/*.png globIgnore) so 2.4 MB of social images
  don't bloat the PWA.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ubfx4XocHcECaL8twp9zsr
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 1, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
goodwebtools 125ad15 Aug 01 2026, 07:22 PM

@slaveofcode
slaveofcode merged commit 2c5defd into develop Aug 1, 2026
1 of 2 checks passed
@slaveofcode
slaveofcode deleted the feat/og-images branch August 1, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant