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.
- 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.
- 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.
npm install astro-og-canvas canvaskit-wasm
