Add Open Graph and Twitter card metadata with branded share image#7
Merged
Conversation
Sharing the explorer link previously produced a bare, imageless card. index.html now carries og:/twitter: metadata with absolute URLs (link scrapers don't resolve relative paths or run JS), and public/og.png is a 1200x630 card in the app's own terminal aesthetic: blueprint grid, gitlawb mark + "explorer." wordmark, and a real repo row with activity sparkline. 41 KB, rendered from a JetBrains Mono HTML template. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Real repo data from the node: z6MkqDnb/openclaude, its actual branch and update recency, described by its README one-liner. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Sharing the explorer link produced a bare, imageless preview. This adds proper
social cards:
index.html: fullog:+twitter:metadata (type, site_name, title,description, url, image + dimensions + alt,
summary_large_imagecard) and astandard
<meta name="description">. All URLs are absolute(
https://explorer.gitlawb.com/og.png) since link scrapers don't resolverelative paths or execute JS.
public/og.png: a 1200×630 share card designed in the app's own terminalaesthetic — blueprint grid texture, the gitlawb mark + "explorer." wordmark
(lowercase with the warm trailing period, echoing the in-app hero), a
gitlawb://tagline, and a real repo row with pills and an activity sparklineas the signature element. 41 KB, rendered from a JetBrains Mono HTML template
at exact OG dimensions.
Note: as a static SPA, all routes share one card. Per-repo OG cards would need
edge/SSR rendering — possible follow-up, out of scope here.
Type of change
How was this tested?
npm run buildconfirmsog.pngships indist/and all 9og:tags arepresent in the built HTML; lint and tests (72) pass.
deployments are SSO-protected, so scrapers can't reach them.
Screenshots
Checklist
npm run lintpassesnpm testpassesnpm run buildpasses (includes typecheck)src/lib/has colocated unit tests