Tiramisu Docs

Integrations

InstantOG

Automatic Open Graph images for every doc page.

InstantOG is a service that automatically generates Open Graph images for your pages. When someone shares a link to your docs on social media, InstantOG renders a beautiful 1200×630 preview image using your page's metadata — title, description, and favicon.

Tiramisu Docs has a built-in integration. No build step, no image files to manage. Just add your site ID and every doc page gets an og:image tag automatically.

Setup

1. Create an account

Go to instantog.com and register your site. You'll get a site ID (e.g. site_b6bc4c3f).

2. Add to config

Add instantOg to your tiramisu.config.ts:

typescript
import { defineConfig } from "@tiramisu-docs/kit"

export default defineConfig({
  title: "My Docs",
  url: "https://my-docs.dev",
  instantOg: {
    siteId: "site_b6bc4c3f",
    template: "generic/standard",
  },
})

3. Deploy

Deploy your site. InstantOG will generate images on-demand when social platforms request them.

How It Works

When instantOg is configured, every doc page gets an og:image meta tag pointing to the InstantOG API:

html
<meta property="og:image"
  content="https://instantog.com/api/og?site=site_b6bc4c3f&template=generic/standard&url=https://my-docs.dev/docs/getting-started" />

When a social platform (Twitter, Discord, Slack, etc.) fetches this URL, InstantOG:

  • Reads your page's title, description, and favicon
  • Renders them into the selected template
  • Returns a cached 1200×630 PNG image

No API calls happen during development or build. The image is generated on-demand at share time.

Options

OptionTypeDescription
siteIdstringRequired. Your site ID from the InstantOG dashboard.
templatestringTemplate ID. Defaults to your site's default template.
themelight | darkColor theme for the generated image.
accentColorstringHex color for accents (e.g. #6366f1).
gradientBgbooleanEnable gradient background on the image.

Templates

InstantOG provides several templates:

IDStyle
generic/standardClean, all-purpose layout
generic/minimalStripped-down, text-focused
article/blog-postArticle-style with author info
article/magazineEditorial layout
article/newsletterEmail-style header
news/headlineBold news-style
product/ecommerceProduct showcase
product/luxuryPremium feel
product/boldHigh-contrast product
product/playfulFun, colorful product

Per-Page Override

If a page sets image in its frontmatter, that takes priority over InstantOG:

tiramisu
meta {
  title = My Page,
  image = /images/custom-og.png
}