Content and publishing · Edition No. 17 · 11 Sep 2026

delucis/astro-og-canvas

Generates OpenGraph preview images for every page of an Astro site automatically.

← Content and publishingRead the whole edition →
07

delucis/astro-og-canvas

💎 hidden gem

279 stars · not shown on the GitHub page · astro-og-canvas@0.13.1 (2026-09-01)

Generates OpenGraph preview images for every page of an Astro site automatically.

Repo detailsthe review · specs · pros & cons · install

What it is

A small package for Astro (a website framework for content-heavy sites) that generates an image for each page at build time. You give it a background, a font and a logo, and it lays out the page title and description.What it is good for. Anybody publishing many pages who wants each shared link to look deliberate. A blog with eighty posts needs eighty preview images, and nobody draws eighty images. This makes them from text you already have.A warning about the licence. The repository carries no licence file at all. The package published on npm declares MIT, which is the usual permissive licence, but the code on GitHub says nothing. No licence means no permission by default. In practice the npm declaration is what most people rely on, and the author is a well-known Astro maintainer, so the risk is low. It is still a gap, and you should know it is there before you build something commercial on it.

Stars279
Licencenot shown on the GitHub page
Latestastro-og-canvas@0.13.1 (2026-09-01)checked 7 Sep 2026
Written inTypeScript
Good
  • One small file gives every page its own preview image.
  • The images are made when the site is built, so nothing runs at request time and nothing costs money per view.
  • You control the background, the font, the logo and the colours.
Watch for
  • No licence file in the repository. The npm package says MIT.
  • Astro only. A React or FastAPI site cannot use it.
  • It pulls in canvaskit-wasm, a drawing engine of several megabytes. It makes your build slower, though it does not affect your visitors.
Install
npm install astro-og-canvas canvaskit-wasm
Screenshots
delucis/astro-og-canvas: GitHub preview card

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.