omgi

v1.0.0
Simple URL builder for OMGI

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

Metadata

  • MIT
  • Whatever
  • Jozef Hruška
  • released 4/9/2022

Downloads

Maintainers