$npm install @zyrab/domo-og
v0.2.1
Config-Driven • WASM Powered

Blazing Fast OG GENERATOR for Node.js

Domo-OG effortlessly captures perfect Open Graph images without headless browsers. Cross-platform, ultra-lightweight, and lightning fast.

~33ms
average render time
Zero
Puppeteer/browser
WASM
Cross-platform Engine
No HTML/CSS Engine!

        // Instant generation via Resvg
        import { generateOgImage } from "@zyrab/domo-og";

        await generateOgImage({
          slug: "my-post",
          title: "Hello World",
          template: { 
            background: {
              type: "color",
              value: "#40C4FF"
            },
            elements: [
              {
                type: "text",
                content: "{{title}}",
                fontSize:  120,
              }
            ] 
          },
        });

Why Domo-OG?

WASM Powered

Cross-platform compatibility out of the box. No OS-specific binary downloads or fragile native modules.

Config-Driven

Define layouts, backgrounds, text, and images via simple JSON objects. No messing with raw SVG strings.

Built-in Caching

Prevents redundant generation with an internal manifest, drastically speeding up SSG builds.

Zero HTML/CSS Engine

Uses Resvg for lightning-fast rendering. No browser or DOM required.

Remote Fetching

Safely fetches and caches remote background images with built-in size limits to prevent memory issues.

Live Template Preview

See how simple JSON configs map to stunning OG cards.

* Note: Some elements (like image width/height and text maxLength) act differently in this sandbox preview.

templates

Open Graph Preview