@ogmentive/client
v0.2.0
Published
Helper for wiring Ogmentive og:image tags into client apps
Maintainers
Readme
@ogmentive/client
Keep your og:image tag in sync with live pages using Ogmentive. Learn more at ogmentive.com.
Drop the snippet into your production site and every page automatically gets a fresh, on-brand Open Graph image tuned for that URL—no more stale previews. Customers see the most relevant messaging when your links are shared, lifting conversion across social, chat, and email. You control the templates and styling directly in the Ogmentive dashboard, so the artwork always matches your latest campaign.
Installation
npm install @ogmentive/clientUsage
import { setup } from "@ogmentive/client";
setup();The client automatically derives your site identifier by slugifying the current hostname (for example, ogmentive.com → ogmentive-com). It only runs when the page is served from a non-localhost domain you've configured in Ogmentive.
If you need to override the derived slug—say, to map a vanity domain to an existing project—you can pass it through the options object:
setup({ site: "ogmentive-com" });