Skip to content

jozefhruska/omgi

Folders and files

NameName
Last commit message
Last commit date
Apr 9, 2022
Apr 9, 2022
Apr 21, 2022
Apr 9, 2022
Apr 3, 2022
Apr 9, 2022
Apr 3, 2022
Apr 9, 2022
Apr 9, 2022
Dec 12, 2022
Apr 21, 2022
Apr 9, 2022
Apr 3, 2022

Repository files navigation

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: '...',
  }
})