René's URL Explorer Experiment


Title: fix(og): put the shared-file card on the brandbook cover template by waleedlatif1 · Pull Request #6907 · simstudioai/sim · GitHub

Open Graph Title: fix(og): put the shared-file card on the brandbook cover template by waleedlatif1 · Pull Request #6907 · simstudioai/sim

X Title: fix(og): put the shared-file card on the brandbook cover template by waleedlatif1 · Pull Request #6907 · simstudioai/sim

Description: Summary Shared-file links (/f/[token]) unfurled with the retired dark OG card — #121212 field, the old green square-icon logo, Geist. Every other generated card on the site (library post covers, docs pages) has been on the brandbook cover template for a while. Added lib/og/cover-image.tsx: the Node rendering of that template — #c1c1c1 field, #515151 ink, "sim" wordmark top-left, diagonal open arrow top-right, title set large at the bottom-left, Söhne Kräftig, 1200x675. Third rendering of one template, alongside the build-time one in scripts/generate-library-covers.tsx and the edge one in apps/docs/app/api/og/route.tsx. Pointed the shared-file card at it. Public shares show the file name + provenance; protected (password / email / SSO) and unknown shares stay generic so the filename never leaks pre-auth. Provenance renders as a muted caption under the title — the one addition to the reference template, since a shared file has a source worth naming. Vendored Soehne-Kraftig.ttf into apps/sim/public/brand/fonts/. Read off disk at module scope, not fetched: the card is force-dynamic, and public/ is already copied into the Docker runner so it needs no outputFileTracingIncludes entry. Titles here are file names and captions are workspace/owner names, so both are viewer-supplied and unbounded — the canvas is fixed, so the layout does the bounding: Type steps down a ladder (110/96/85) to the first size fitting three lines; anything still over is truncated with an ellipsis. The caption is measured and clipped to one line before the NBSP packing, so hard spaces can't strip the only break opportunity from a string that needed one. Widths come from the font's real advance widths (opentype.js) rather than an average-glyph estimate, which under-measures caps-heavy names and over-measures narrow ones. Same reason generate-library-covers.tsx measures this way; the docs route falls back to an estimate only because the edge runtime has no filesystem. This adds opentype.js to apps/sim — already in the lockfile as a root devDependency, so no new packages enter the graph. Not touched: the landing models and integrations cards are still on the old dark template, same problem. Type of Change Bug fix Testing Compared rendered output against a library cover, including the caption spacing at several margins. Layout tests parse the font independently of the renderer rather than sharing its measurement helper — reverting to the average-glyph estimate turns four of them red. bun run lint, bun run check:audits (32/32), check-block-registry, tsc --noEmit, and the 11 tests all pass. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Shared-file links (/f/[token]) unfurled with the retired dark OG card — #121212 field, the old green square-icon logo, Geist. Every other generated card on the site (library post covers, d...

X Description: Summary Shared-file links (/f/[token]) unfurled with the retired dark OG card — #121212 field, the old green square-icon logo, Geist. Every other generated card on the site (library post covers, d...

Opengraph URL: https://github.com/simstudioai/sim/pull/6907

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3d8b0493-dc35-5729-c92a-0c41f0c1abd9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC456:1D33A1:F9FE36:156835F:6AFB6302
html-safe-nonce81cd0494eb30e060535aa91273ebf2b7e99ea68b0ce3a80bcd611227719e05d2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDU2OjFEMzNBMTpGOUZFMzY6MTU2ODM1Rjo2QUZCNjMwMiIsInZpc2l0b3JfaWQiOiI0MTA3ODQ3NDY5NzY3NTQ5Njk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7dd9975d2643ff5a3874ab664fe13dc6ca92451e2d9afd3350effa410e12bc1b
hovercard-subject-tagpull_request:4327187780
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6907/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Shared-file links (/f/[token]) unfurled with the retired dark OG card — #121212 field, the old green square-icon logo, Geist. Every other generated card on the site (library post covers, d...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6907/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6907%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6907%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/6907/files
Reloadhttps://github.com/simstudioai/sim/pull/6907/files
Reloadhttps://github.com/simstudioai/sim/pull/6907/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/og-shared-file-assetshttps://github.com/simstudioai/sim/tree/fix/og-shared-file-assets
Conversation 20 https://github.com/simstudioai/sim/pull/6907
Commits 4 https://github.com/simstudioai/sim/pull/6907/commits
Checks 31 https://github.com/simstudioai/sim/pull/6907/checks
Files changed https://github.com/simstudioai/sim/pull/6907/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6907/files
fix(og): put the shared-file card on the brandbook cover template https://github.com/simstudioai/sim/pull/6907/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/6907/files
e33f225 fix(og): put the shared-file card on the brandbook cover template waleedlatif1 Aug 20, 2026 https://github.com/simstudioai/sim/pull/6907/commits/e33f225067d5b026c576b6bfc0b937a972a9cec3
9f4f1fe fix(og): bound the cover title and caption to the fixed canvas waleedlatif1 Aug 20, 2026 https://github.com/simstudioai/sim/pull/6907/commits/9f4f1fe9e2a9aa9dacfea3088ef13d07a785296a
1a6e910 fix(og): measure cover text with the font's real advance widths waleedlatif1 Aug 20, 2026 https://github.com/simstudioai/sim/pull/6907/commits/1a6e910d054bf72ba6f269eb2f22790bf4dfe91e
4a71f07 fix(og): apply the leading compensation to the title, not the whole f… waleedlatif1 Aug 20, 2026 https://github.com/simstudioai/sim/pull/6907/commits/4a71f070363cfe965fe89421927b716711edec2d
Clear filters https://github.com/simstudioai/sim/pull/6907/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6907/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6907/files
opengraph-image.tsx https://github.com/simstudioai/sim/pull/6907/files#diff-cd1ac578bb733252e26a1a590fb8c068e22e3d9f6fc0a125b9587fafbd1d060c
cover-image.test.tsx https://github.com/simstudioai/sim/pull/6907/files#diff-c47291040a2e263feabc624ebc0bb4a53a0dce748e733da384939146c5eee4ae
cover-image.tsx https://github.com/simstudioai/sim/pull/6907/files#diff-cb916c52b88be8eb45077bdfa49ae6a5365e1fd99e81dee7160e388e20a4a00c
package.json https://github.com/simstudioai/sim/pull/6907/files#diff-43a1bb37ce68ac536b0a4ed9e973d9d52da3975d74b37865f591bb37e191be64
Soehne-Kraftig.ttf https://github.com/simstudioai/sim/pull/6907/files#diff-feaee29152c36e91a7e6f2da0cc731cdee5bc22a107cf408639868cd283c23bf
bun.lock https://github.com/simstudioai/sim/pull/6907/files#diff-bfd0ef82a01108fa1e836c2500b98b7de8a92bb1ae352a8efcbd9d6ffcaabd60
apps/sim/app/f/[token]/opengraph-image.tsxhttps://github.com/simstudioai/sim/pull/6907/files#diff-cd1ac578bb733252e26a1a590fb8c068e22e3d9f6fc0a125b9587fafbd1d060c
View file https://github.com/simstudioai/sim/blob/4a71f070363cfe965fe89421927b716711edec2d/apps/sim/app/f/%5Btoken%5D/opengraph-image.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6907/{{ revealButtonHref }}
apps/sim/lib/og/cover-image.test.tsxhttps://github.com/simstudioai/sim/pull/6907/files#diff-c47291040a2e263feabc624ebc0bb4a53a0dce748e733da384939146c5eee4ae
View file https://github.com/simstudioai/sim/blob/4a71f070363cfe965fe89421927b716711edec2d/apps/sim/lib/og/cover-image.test.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6907/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/6907/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6907/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.