Virus

ogee: case study

Link previews for single-page apps, drawn at the edge.

  • What: Open-source developer tool
  • Role: Design, build and release
  • Built with: TypeScript, Cloudflare Workers, takumi
  • Released: Oct 12, 2026 · MIT

The problem

Share any page of a single-page app and every link looks like the home page.

Apps built with React, Vue, Svelte or Vite, and anything made with Lovable, Bolt or v0, send the same index.html for every URL. The bots behind link previews and AI search don't run JavaScript, so they only ever see that one file. Share /pricing, /blog/my-post or /products/42 and they all show your home page's preview, or nothing at all.

What I built

A layer in front, not a rewrite

ogee sits in front of your site, as a Cloudflare Worker, a fetch handler on any server or edge runtime, or a build step for any static host. You don't change your app's code. If anything goes wrong, the page is served exactly as before.

Writes the right <head>

Title, description, canonical URL, Open Graph and Twitter tags, and JSON-LD.

Draws a preview card

In your colors, fonts and logo, with the page's own picture when it has one. In milliseconds, then cached.

Serves sitemap.xml and llms.txt

For search engines and AI tools.

Gives crawlers words

Optionally writes the page's text into the HTML, so crawlers see words, not an empty <div id="root">.

The coding agent is the designer

ogee doesn't ask for an AI API key. The coding agent you already use is the designer: ogee collects the evidence and renders whatever the agent writes, and the agent looks at the result and fixes it.

Decisions that mattered

No headless browser

Cards are drawn by takumi, as WebAssembly in the Worker and in Node for ogee build: flexbox, gradients, blur, blend modes, masks, SVG filters and custom fonts.

Never break a page

The page is served unchanged after 3 seconds at most. ogee never breaks a page. A route that calls your API is cached for 5 minutes and capped at 3 seconds.

Prebuilt cards on the free plan

On virusofficial.dev, drawing a card live costs more CPU than a request gets on Cloudflare's free plan (error 1102). So the cards are drawn at build time and the Worker serves them as files. Pages without one still fall through to live drawing.

Releases you can verify

Every version is built and published by GitHub Actions from a tagged commit, never from a laptop. The Provenance section on the npm page links to the exact commit; check it with npm audit signatures.

Where it is now

ogee runs in front of virusofficial.dev, ogee.virusofficial.dev and vpsmanager.virusofficial.dev: every page you share from these sites gets its own card.