Nuxt 2 is reaching End-of-Life on June 30th, 2024.

og-image
og-image

Enlightened runtime images generated with Vue templates.

nuxt-og-image

NPM versionNPM DownloadsGitHub stars

Enlightened runtime images generated with Vue templates, for Nuxt.


Status: v2.1 Released
Please report any issues ๐Ÿ›
Made possible by my Sponsor Program ๐Ÿ’–
Follow me @harlan_zw ๐Ÿฆ โ€ข Join Discord for help

Features

  • โœจ Turn your Vue components into og:image templates
  • ๐ŸŽจ Design them in the OG Image Playground with full HMR
  • โ–ฒ Render using Satori: Tailwind classes, Google fonts, emoji support and more!
  • ๐Ÿค– Or prerender using the Browser: Supporting painless, complex templates
  • ๐Ÿ“ธ Feeling lazy? Just generate screenshots for every page: hide elements, wait for animations, and more
  • โš™๏ธ Works on the edge: Vercel Edge, Netlify Edge and Cloudflare Workers

Installation

  1. Install nuxt-og-image dependency to your project:
#
yarn add -D nuxt-og-image
#
npm install -D nuxt-og-image
#
pnpm i -D nuxt-og-image
  1. Add it to your modules section in your nuxt.config:
export default defineNuxtConfig({
  modules: ['nuxt-og-image']
})

Playgrounds

Documentation

๐Ÿ“– Read the full documentation for more information.

Sponsors

License

MIT License ยฉ 2023-PRESENT Harlan Wilton