Skip to content

Open source

astro-og-cards

New

Why it exists

A social share without a real OG image looks unfinished, but generating one from actual post data at build time usually means standing up a headless browser or a from-scratch renderer yourself. This package does both halves: the meta-tag emission for og:*/twitter:* tags, and a build-time card generator (Satori + Sharp) that turns styled HTML into a real PNG, no runtime cost.

  • Build-time card rendering via satori + sharp
  • Terminal-window and photo-backed card fixtures
  • Token-driven design, matches each site's own branding

Install

npm install @vdaluz/astro-og-cards