Skip to content

Rich link previews: Open Graph tags and a preview image - #56

Merged
ToothyDev merged 3 commits into
mainfrom
claude/39-link-embeds
Oct 15, 2026
Merged

ToothyDev merged 3 commits into
mainfrom
claude/39-link-embeds

Conversation

@ToothyDev

@ToothyDev ToothyDev commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

What this does

Links to LSOS now unfurl as large preview cards on Discord, Slack, X and similar. index.html gets Open Graph and Twitter card tags: a title ("LSOS: GTA Online business tracker"), a longer description, the site name, the canonical URL, and a large 1200×630 image (public/og-image.png). It also gets a theme-color, which sets the colour of Discord's embed side bar to the app's green. The image follows the app theme (colours from src/app.css, Oswald font, terminal icon, decorative stock, supply, safe and cooldown bars with no numbers on them). Its HTML source is scripts/og-image.html, and the steps to regenerate it are in a comment at the top of that file. The browser tab title stays "LSOS".

The image URL is absolute and points at https://lsos.toothy.dev/, so preview deploys show the image only once this is live on the production site.

Closes #39

How to check it

  • After deploy, paste https://lsos.toothy.dev/ into Discord. Discord caches embeds, so add a query string such as ?v=2 to get a fresh preview.
  • Or check it with a preview tool such as opengraph.xyz.
  • Look at public/og-image.png directly.

Checklist

  • npm run verify passes
  • Game data added or changed here has a source (no game data changed)
  • README / CLAUDE.md updated if usage or workflow changed (CLAUDE.md map entry)

🤖 Generated with Claude Code

Adds og:/twitter: meta tags, a theme colour for the Discord embed bar and a
1200x630 preview image in the app's style, with its HTML source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Deploying lsos with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9bc5a87
Status: ✅  Deploy successful!
Preview URL: https://b015d4ba.lsos-2qs.pages.dev
Branch Preview URL: https://claude-39-link-embeds.lsos-2qs.pages.dev

View logs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ToothyDev
ToothyDev merged commit 6cb9c30 into main Oct 15, 2026
4 checks passed
@ToothyDev
ToothyDev deleted the claude/39-link-embeds branch October 15, 2026 10:07
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.

Improve link embeds

2 participants