René's URL Explorer Experiment


Title: feat(files): embed sim files and render mermaid diagrams in markdown preview by waleedlatif1 · Pull Request #4402 · simstudioai/sim · GitHub

Open Graph Title: feat(files): embed sim files and render mermaid diagrams in markdown preview by waleedlatif1 · Pull Request #4402 · simstudioai/sim

X Title: feat(files): embed sim files and render mermaid diagrams in markdown preview by waleedlatif1 · Pull Request #4402 · simstudioai/sim

Description: Sim is the collaborative workspace to build, deploy, and monitor AI agents and workflows. Used by 100,000+ builders. - feat(files): embed sim files and render mermaid diagrams in markdown preview by waleedlatif1 · Pull Request #4402 · simstudioai/sim

Open Graph Description: Summary Add `/api/files/view/[id]` route that resolves a file ID to its serve URL via 302 redirect (auth + access-checked) Detect relative workspace file page URLs in markdown `img` tags and rewri...

X Description: Summary Add `/api/files/view/[id]` route that resolves a file ID to its serve URL via 302 redirect (auth + access-checked) Detect relative workspace file page URLs in markdown `img` tags and rewri...

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

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/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:273f319e-7b80-9cf5-600c-f4450df04372
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE2EC:1BB36A:CC27D2:117C159:6AFB5691
html-safe-nonced97a8b7b18ae97b7dba69bd3505a9b1a32a7b25d8abb345c75e1f13461d7f9e2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkVDOjFCQjM2QTpDQzI3RDI6MTE3QzE1OTo2QUZCNTY5MSIsInZpc2l0b3JfaWQiOiI4NjgzMjUwNzQyNjQ0NjU5ODU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6c80328e0ccbaaafcf55f6619b324ee57b04dbc4a2f19997ba01502eb29dc8c4
hovercard-subject-tagpull_request:3617363558
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/4402/commits
twitter:imagehttps://opengraph.githubassets.com/eb20cca6c55b41a84f08da39f8e1eae380d2a3fc6b611906df1157291a637a7f/simstudioai/sim/pull/4402
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eb20cca6c55b41a84f08da39f8e1eae380d2a3fc6b611906df1157291a637a7f/simstudioai/sim/pull/4402
og:image:altSummary Add `/api/files/view/[id]` route that resolves a file ID to its serve URL via 302 redirect (auth + access-checked) Detect relative workspace file page URLs in markdown `img` tags and rewri...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewaleedlatif1
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/4402/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4402%2Fcommits
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%2F4402%2Fcommits
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%2Fcommits&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/4402/commits
Reloadhttps://github.com/simstudioai/sim/pull/4402/commits
Reloadhttps://github.com/simstudioai/sim/pull/4402/commits
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
https://github.com/simstudioai/sim
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/csphttps://github.com/simstudioai/sim/tree/fix/csp
Conversationhttps://github.com/simstudioai/sim/pull/4402
Commits18 (18)https://github.com/simstudioai/sim/pull/4402/commits
Checkshttps://github.com/simstudioai/sim/pull/4402/checks
Files changedhttps://github.com/simstudioai/sim/pull/4402/files
feat(files): embed sim files and render mermaid diagrams in markdown previewhttps://github.com/simstudioai/sim/pull/4402/commits#top
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/csphttps://github.com/simstudioai/sim/tree/fix/csp
feat(files): resolve workspace file page URLs to raw content in markdown previewhttps://github.com/simstudioai/sim/pull/4402/commits/31850aefd125104c41447a5a0e8fdba1fba107a6
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
31850aehttps://github.com/simstudioai/sim/pull/4402/commits/31850aefd125104c41447a5a0e8fdba1fba107a6
https://github.com/simstudioai/sim/tree/31850aefd125104c41447a5a0e8fdba1fba107a6
refactor(files): replace regex URL matching with URL constructor in resolveSimFileUrlhttps://github.com/simstudioai/sim/pull/4402/commits/46f0326ac3acba8e4d81e1f449f8a9e491f71fb8
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
46f0326https://github.com/simstudioai/sim/pull/4402/commits/46f0326ac3acba8e4d81e1f449f8a9e491f71fb8
https://github.com/simstudioai/sim/tree/46f0326ac3acba8e4d81e1f449f8a9e491f71fb8
fix(files): render mermaid diagrams in markdown preview using design tokenshttps://github.com/simstudioai/sim/pull/4402/commits/deb687b5be9242eb153b128332d1c0ab3ec89482
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
deb687bhttps://github.com/simstudioai/sim/pull/4402/commits/deb687b5be9242eb153b128332d1c0ab3ec89482
https://github.com/simstudioai/sim/tree/deb687b5be9242eb153b128332d1c0ab3ec89482
fix(trace): reduce default tree pane width from 360 to 280https://github.com/simstudioai/sim/pull/4402/commits/ea7817c6d21754daeb852fdd8031588e9dda70a1
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
ea7817chttps://github.com/simstudioai/sim/pull/4402/commits/ea7817c6d21754daeb852fdd8031588e9dda70a1
https://github.com/simstudioai/sim/tree/ea7817c6d21754daeb852fdd8031588e9dda70a1
fix(files): guard resolveSimFileUrl against cross-origin URL hijackinghttps://github.com/simstudioai/sim/pull/4402/commits/9e5dbef1501be0281c56faa698123c1fcf24e857
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
9e5dbefhttps://github.com/simstudioai/sim/pull/4402/commits/9e5dbef1501be0281c56faa698123c1fcf24e857
https://github.com/simstudioai/sim/tree/9e5dbef1501be0281c56faa698123c1fcf24e857
refactor(files): use getBrowserOrigin() instead of window.location.originhttps://github.com/simstudioai/sim/pull/4402/commits/134e30d709fff569d0c23e74eeae19ced07da4f9
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
134e30dhttps://github.com/simstudioai/sim/pull/4402/commits/134e30d709fff569d0c23e74eeae19ced07da4f9
https://github.com/simstudioai/sim/tree/134e30d709fff569d0c23e74eeae19ced07da4f9
fix(trace): reduce default tree pane width to 240https://github.com/simstudioai/sim/pull/4402/commits/a1f7037f3897c4d52abea9e175e83d910ebb2c1c
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
a1f7037https://github.com/simstudioai/sim/pull/4402/commits/a1f7037f3897c4d52abea9e175e83d910ebb2c1c
https://github.com/simstudioai/sim/tree/a1f7037f3897c4d52abea9e175e83d910ebb2c1c
fix(files): narrow img src type before passing to resolveSimFileUrlhttps://github.com/simstudioai/sim/pull/4402/commits/701ad2b175424303f1ce08d4e911ddeb4d38bf01
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
701ad2bhttps://github.com/simstudioai/sim/pull/4402/commits/701ad2b175424303f1ce08d4e911ddeb4d38bf01
https://github.com/simstudioai/sim/tree/701ad2b175424303f1ce08d4e911ddeb4d38bf01
fix(files): use narrow props type for img renderer instead of runtime narrowinghttps://github.com/simstudioai/sim/pull/4402/commits/9fc1a4f7bd51c061846e929e8149005a678fe6d9
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
9fc1a4fhttps://github.com/simstudioai/sim/pull/4402/commits/9fc1a4f7bd51c061846e929e8149005a678fe6d9
https://github.com/simstudioai/sim/tree/9fc1a4f7bd51c061846e929e8149005a678fe6d9
fix(files): accept full ImgHTMLAttributes for img renderer to satisfy Streamdown Components typehttps://github.com/simstudioai/sim/pull/4402/commits/7915211055f5f9cd52ffa1baf16bad54d0da9578
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
7915211https://github.com/simstudioai/sim/pull/4402/commits/7915211055f5f9cd52ffa1baf16bad54d0da9578
https://github.com/simstudioai/sim/tree/7915211055f5f9cd52ffa1baf16bad54d0da9578
fix(files): treat null getBrowserOrigin as same-origin to prevent SSR hydration mismatchhttps://github.com/simstudioai/sim/pull/4402/commits/d8ce2c95f50b3bdb4d3ceab834fe68f5911ae72d
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
d8ce2c9https://github.com/simstudioai/sim/pull/4402/commits/d8ce2c95f50b3bdb4d3ceab834fe68f5911ae72d
https://github.com/simstudioai/sim/tree/d8ce2c95f50b3bdb4d3ceab834fe68f5911ae72d
improvement(files): use centered aspect-ratio skeleton for mmd file previewhttps://github.com/simstudioai/sim/pull/4402/commits/95b186d7911a55b7cf96b1a21d3a32158201a72d
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
95b186dhttps://github.com/simstudioai/sim/pull/4402/commits/95b186d7911a55b7cf96b1a21d3a32158201a72d
https://github.com/simstudioai/sim/tree/95b186d7911a55b7cf96b1a21d3a32158201a72d
improvement(files): diagram-shaped skeleton card for mmd file previewhttps://github.com/simstudioai/sim/pull/4402/commits/2d3993f2898fa25ad4c8d4dedb122b4e1571f801
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
2d3993fhttps://github.com/simstudioai/sim/pull/4402/commits/2d3993f2898fa25ad4c8d4dedb122b4e1571f801
https://github.com/simstudioai/sim/tree/2d3993f2898fa25ad4c8d4dedb122b4e1571f801
fix(files): only rewrite relative workspace file URLs to avoid hydration mismatchhttps://github.com/simstudioai/sim/pull/4402/commits/446d9e3aa61cf545f3063321a8723d7bd2eb8b8a
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
446d9e3https://github.com/simstudioai/sim/pull/4402/commits/446d9e3aa61cf545f3063321a8723d7bd2eb8b8a
https://github.com/simstudioai/sim/tree/446d9e3aa61cf545f3063321a8723d7bd2eb8b8a
fix(files): pass context not resolved params to parseRequest in view routehttps://github.com/simstudioai/sim/pull/4402/commits/9cb28da008a38cf2c943d6d364ec0504b04b9336
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
9cb28dahttps://github.com/simstudioai/sim/pull/4402/commits/9cb28da008a38cf2c943d6d364ec0504b04b9336
https://github.com/simstudioai/sim/tree/9cb28da008a38cf2c943d6d364ec0504b04b9336
fix(files): simplify mmd file skeleton to match pptx card patternhttps://github.com/simstudioai/sim/pull/4402/commits/6642893df32145c5947ea88005c0cfd5da1f200a
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
6642893https://github.com/simstudioai/sim/pull/4402/commits/6642893df32145c5947ea88005c0cfd5da1f200a
https://github.com/simstudioai/sim/tree/6642893df32145c5947ea88005c0cfd5da1f200a
fix(files): match mmd skeleton to actual rendered layout — full-height zoomable areahttps://github.com/simstudioai/sim/pull/4402/commits/380388c2b59fdb78f59744c4a7caa905bc6457e5
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
380388chttps://github.com/simstudioai/sim/pull/4402/commits/380388c2b59fdb78f59744c4a7caa905bc6457e5
https://github.com/simstudioai/sim/tree/380388c2b59fdb78f59744c4a7caa905bc6457e5
fix(sidebar): left-align folder lock icon next to namehttps://github.com/simstudioai/sim/pull/4402/commits/66207c43ff445e80a936efb2a4d7ac2ca25ffeb5
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
66207c4https://github.com/simstudioai/sim/pull/4402/commits/66207c43ff445e80a936efb2a4d7ac2ca25ffeb5
https://github.com/simstudioai/sim/tree/66207c43ff445e80a936efb2a4d7ac2ca25ffeb5
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.