omgi
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

OMGI

Generate custom Open Graph images dynamically in a matter of seconds. Choose the template you like and generate the OG image with a simple HTTP GET request.

Learn more at https://omgi.vercel.app.

Usage

Generating an OG image from the "basic" template:

import { getTemplateUrl } from 'omgi';

getTemplateUrl({
  template: 'basic',
  values: {
    heading: '...',
    description: '...',
    badge: '...',
  }
})

Generating an OG image from the "article" template:

import { getTemplateUrl } from 'omgi';

getTemplateUrl({
  template: 'article',
  values: {
    heading: '...',
    description: '...',
    authorName: '...',
    authorAvatarUrl: '...',
    meta: '...',
  }
})

Package Sidebar

Install

npm i omgi

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

6.59 kB

Total Files

8

Last publish

Collaborators

  • jozef.hruska