Skip to content

docs: add generated og:image for the site#163

Open
jayhack wants to merge 2 commits into
developfrom
docs/og-image
Open

docs: add generated og:image for the site#163
jayhack wants to merge 2 commits into
developfrom
docs/og-image

Conversation

@jayhack

@jayhack jayhack commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a social/OG card for the site, generated deterministically with next/og (no AI image gen, so the logo and text are exact and crisp).

site/app/opengraph-image.tsx renders a 1200×630 PNG with:

  • the Codegen brand mark,
  • the Graph-sitter wordmark,
  • the tagline "Industrial-grade static analysis toolkit", and
  • a node-graph network background with a purple glow.

Next automatically wires this file into og:image and twitter:image (the layout already declares metadataBase + a summary_large_image twitter card), so it covers /, /docs, and /explore.

Test plan

  • npm run build in site/ passes; /opengraph-image prerenders to a valid 1200×630 PNG.
  • Verify the rendered card visually (locally hit /opengraph-image).
  • Verify the card in a social/OG debugger after deploy.

Add app/opengraph-image.tsx using next/og to render a 1200x630 social
card: the Codegen mark, the Graph-sitter wordmark, the tagline
"Industrial-grade static analysis toolkit", and a node-graph network
background. Next wires this into og:image and twitter:image automatically.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jayhack jayhack requested a review from a team as a code owner June 23, 2026 16:05
@jayhack jayhack requested review from kopekC and removed request for a team June 23, 2026 16:05
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
graph-sitter Ready Ready Preview, Comment Jun 23, 2026 4:07pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant