René's URL Explorer Experiment


Title: feat(files): public share links for workspace files by TheodoreSpeaks · Pull Request #5130 · simstudioai/sim · GitHub

Open Graph Title: feat(files): public share links for workspace files by TheodoreSpeaks · Pull Request #5130 · simstudioai/sim

X Title: feat(files): public share links for workspace files by TheodoreSpeaks · Pull Request #5130 · simstudioai/sim

Description: Summary Add a per-file Share toggle (context menu, viewer toolbar, breadcrumb) that publishes a file to an unguessable public URL /f/{token}; default private, write/admin only New polymorphic public_share table (resourceType/resourceId, token, isActive) — shaped for future folder sharing + password/email gating (reserved columns) Public page /f/{token} reuses the in-app FileViewer via a content-source seam + readOnly mode, so images/PDF/markdown/code/docx/pptx/xlsx all render (generated docs load their prebuilt compiled artifact, never compile on the public path) Share modal follows the standard save→close convention with a success toast that surfaces + copies the link; reopening shows the live link Header shows provenance (workspace · shared-by) and Sim branding; links are noindex Type of Change New feature Testing Tested manually. bun run lint, check:api-validation:strict, check:migrations origin/staging (backward-compatible — additive CREATE TABLE), and route tests (share auth gates + public 404/no-leak) 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 Add a per-file Share toggle (context menu, viewer toolbar, breadcrumb) that publishes a file to an unguessable public URL /f/{token}; default private, write/admin only New polymorphic publ...

X Description: Summary Add a per-file Share toggle (context menu, viewer toolbar, breadcrumb) that publishes a file to an unguessable public URL /f/{token}; default private, write/admin only New polymorphic publ...

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

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:31b91058-58a5-467e-c52d-2f4c6ee0b331
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9EB8:327CBE:9984BB:D8F2F0:6AFB5365
html-safe-nonceae5a819df09891f50614342964fc22e4888efe68bee05df76c5322a490998648
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUI4OjMyN0NCRTo5OTg0QkI6RDhGMkYwOjZBRkI1MzY1IiwidmlzaXRvcl9pZCI6IjM2MDE3OTk4ODQ0ODg1Mjg3NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac947da957c92235dd6990ff155d56a616c3ac8794ea0f67380130d86064c008e8
hovercard-subject-tagpull_request:3894368665
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/5130/files
twitter:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
og:image:altSummary Add a per-file Share toggle (context menu, viewer toolbar, breadcrumb) that publishes a file to an unguessable public URL /f/{token}; default private, write/admin only New polymorphic publ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
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
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5130/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5130%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%2F5130%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/5130/files
Reloadhttps://github.com/simstudioai/sim/pull/5130/files
Reloadhttps://github.com/simstudioai/sim/pull/5130/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
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
feat/public-fileshttps://github.com/simstudioai/sim/tree/feat/public-files
Conversation 25 https://github.com/simstudioai/sim/pull/5130
Commits 11 https://github.com/simstudioai/sim/pull/5130/commits
Checks 15 https://github.com/simstudioai/sim/pull/5130/checks
Files changed https://github.com/simstudioai/sim/pull/5130/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5130/files
feat(files): public share links for workspace files https://github.com/simstudioai/sim/pull/5130/files#top
Show all changes 11 commits https://github.com/simstudioai/sim/pull/5130/files
52c7b92 feat(files): public share links for workspace files TheodoreSpeaks Jun 18, 2026 https://github.com/simstudioai/sim/pull/5130/commits/52c7b9273b12e80537ecdf1cd39915dceb9246b8
6236944 Merge remote-tracking branch 'origin/staging' into feat/public-files TheodoreSpeaks Jun 18, 2026 https://github.com/simstudioai/sim/pull/5130/commits/623694441f6cff8e620ab2777cd0b4688cbcb1bf
fe8a2b2 improvement(files): drop reserved public_share columns until used; sy… TheodoreSpeaks Jun 18, 2026 https://github.com/simstudioai/sim/pull/5130/commits/fe8a2b23f287c2546d666d5f1fcefd574c6dfacb
057994f fix(files): share modal tracks authoritative saved state until toggled TheodoreSpeaks Jun 18, 2026 https://github.com/simstudioai/sim/pull/5130/commits/057994ff661c59e29eb134d446e7468e8e653400
f8831aa feat(files): per-IP rate limit on public share endpoints TheodoreSpeaks Jun 18, 2026 https://github.com/simstudioai/sim/pull/5130/commits/f8831aa4d882157e25dcf21249578a0a7764071c
672a267 fix(files): address PR review — public CSV OOM, content cache, share … TheodoreSpeaks Jun 18, 2026 https://github.com/simstudioai/sim/pull/5130/commits/672a2679377af7d44a84f2d64a2bdbb8769469c4
bbfb596 fix(files): disable CSV import action in read-only preview (public sh… TheodoreSpeaks Jun 18, 2026 https://github.com/simstudioai/sim/pull/5130/commits/bbfb5966af29cb3eff69dc542d7481bceb0748cc
e0fbd43 refactor(files): drive CSV preview import affordance off readOnly, no… TheodoreSpeaks Jun 18, 2026 https://github.com/simstudioai/sim/pull/5130/commits/e0fbd43b7db28a28f7eb8a9d2dcac5e96ef41620
f2fe99e fix(files): version public viewer caches by file updatedAt so edits a… TheodoreSpeaks Jun 18, 2026 https://github.com/simstudioai/sim/pull/5130/commits/f2fe99e3447dd855497b0222de4efe31f3a41d56
30f2c7d fix(files): 409 (not corrupt source) when a shared generated doc has … TheodoreSpeaks Jun 18, 2026 https://github.com/simstudioai/sim/pull/5130/commits/30f2c7d994553ed0c00b79fdde4995d4453643b6
d939f0c feat(files): gate public sharing behind an access-control permission TheodoreSpeaks Jun 18, 2026 https://github.com/simstudioai/sim/pull/5130/commits/d939f0c6f77caee856956ed776db7d93767b8159
Clear filters https://github.com/simstudioai/sim/pull/5130/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5130/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5130/files
route.ts https://github.com/simstudioai/sim/pull/5130/files#diff-b704e2528964732584a9531941b7d7ff78da342a5e3db53f8dde7de069369837
route.test.ts https://github.com/simstudioai/sim/pull/5130/files#diff-db270e3da14c6c692f7b652b88d68a6ceaed778c2789be926f518928baa278ca
route.ts https://github.com/simstudioai/sim/pull/5130/files#diff-b2039d821085869cd39c528e87b1a7e79fad21a7d41584369ab9d61bc75c579d
route.test.ts https://github.com/simstudioai/sim/pull/5130/files#diff-c23d154360c5ecacf4491c00182b6fa76ac6e529e11b745d215e80f734d1302e
route.ts https://github.com/simstudioai/sim/pull/5130/files#diff-541f227f742d2c6fea1aa126d2c8b5551589d611cb0ae2f56f8dcd98c22ef373
route.ts https://github.com/simstudioai/sim/pull/5130/files#diff-ffd1644c9109b4913147a4bd6d6c620ed49c7c38cb0c8cfddf4c9f2c5fe55867
page.tsx https://github.com/simstudioai/sim/pull/5130/files#diff-4eccb1dc351fa5aedc66034bfc314944dfe6b1152702b046ea596a984c9a1bdd
public-file-view.tsx https://github.com/simstudioai/sim/pull/5130/files#diff-9b86d2cfc6decbc02812caa17f9ef3a740cc097ed8e10e7e39eae89a8104f9bf
file-row-context-menu.tsx https://github.com/simstudioai/sim/pull/5130/files#diff-946be4d50c9d8d5a74031d9fdb4fd75b5988280e935629daf237e2cb57e2ef65
csv-import.ts https://github.com/simstudioai/sim/pull/5130/files#diff-eaf0747ac6948242df347776666b9c7ebff3b6239f4b01e4d213f15e02c18868
file-viewer.tsx https://github.com/simstudioai/sim/pull/5130/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948
image-preview.tsx https://github.com/simstudioai/sim/pull/5130/files#diff-13908f4273fe39f0077163daede5a3bd0d7e78cdeb772e650005901b4f3cbf70
index.ts https://github.com/simstudioai/sim/pull/5130/files#diff-9f435329e300408606c624a8fb54d42029d2b690dc4ce04848b5557597a62a5f
preview-panel.tsx https://github.com/simstudioai/sim/pull/5130/files#diff-262acbff6b1806a04a00b077110f4a5ef817431fe8b5014d3553b7df8b202dd2
index.ts https://github.com/simstudioai/sim/pull/5130/files#diff-c0a58a2476ad7bb8fa6b1ba98c94bbce3a1e64c64be430980f4733c4dfaa81dd
share-modal.tsx https://github.com/simstudioai/sim/pull/5130/files#diff-d12561a20e7ab1ea945c27aeb8ede89b99abc51371f5fbf97f42c3af22f40409
files.tsx https://github.com/simstudioai/sim/pull/5130/files#diff-0284e2e46ba0636bd37fb01a0bee2a53844af9bbaf0a5879e3b182c0f34e67a9
access-control.tsx https://github.com/simstudioai/sim/pull/5130/files#diff-db36827fe741a6dfa649c366a49b8f97ad423585d8769363ff998759e1563094
permission-check.test.ts https://github.com/simstudioai/sim/pull/5130/files#diff-9caf65cdacfd9c7249e6d37a844d166d1d6edd4a4baf2df99c8f866700e3c633
permission-check.ts https://github.com/simstudioai/sim/pull/5130/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
public-shares.ts https://github.com/simstudioai/sim/pull/5130/files#diff-0b0713d640f00ea1c463adfcebc2cbc20ad83e09393e6efdabd9e368185f5b35
workspace-files.ts https://github.com/simstudioai/sim/pull/5130/files#diff-29d9b6d312177176db7c67d2754eb013b3ee7dc842dbbdb481bed86f551d4f37
use-file-content-source.tsx https://github.com/simstudioai/sim/pull/5130/files#diff-90976156a39bdd21612371dd8e08cf7a466bbf188c03cc869cf3aaf9cf1ad73a
permission-groups.ts https://github.com/simstudioai/sim/pull/5130/files#diff-2eba9b4806fa86cf76b65c24990cadd39cd2aea69228ac342a87190aba0f69f0
public-shares.ts https://github.com/simstudioai/sim/pull/5130/files#diff-103782426ac5574c0e62228a3030774048b52452585b96ef9f9a28a670b156be
workspace-files.ts https://github.com/simstudioai/sim/pull/5130/files#diff-05f84543b5a8f478260ff33a6503250494619411c41c9f43523e352d8fe8bc37
doc-compile.ts https://github.com/simstudioai/sim/pull/5130/files#diff-b744bbfdd06f81c703753596e7e7e90c15997083a6cadc23f0fc2031f6d63a70
types.ts https://github.com/simstudioai/sim/pull/5130/files#diff-9b499a0597203d7ab240ac8ead31598da8e7a7ab6ae0e61c849bd24d29cfb41a
rate-limit.ts https://github.com/simstudioai/sim/pull/5130/files#diff-7cdf2f60dc440cefc2e28d8acdba86fb67d4a07a3c48995566f55842b401d443
share-manager.ts https://github.com/simstudioai/sim/pull/5130/files#diff-81ab30d3419e16aa4eb5413c61cb10c7eb818a798c6d6d477678d56e769273ff
workspace-file-manager.ts https://github.com/simstudioai/sim/pull/5130/files#diff-fcf305d0b37403347596bca42fc6889e9038c9f8e2c69ba20676c0f0d8fead34
types.ts https://github.com/simstudioai/sim/pull/5130/files#diff-0c4c4527875ffe443d3b9bc35837c1dfb53d8918c2751deafbc08896fd8d5731
0242_public_share.sql https://github.com/simstudioai/sim/pull/5130/files#diff-20fe6e14e73386833bbbb2f1fba0d64e40170783fca8646ac7e12f57b5df7047
0242_snapshot.json https://github.com/simstudioai/sim/pull/5130/files#diff-b2a88ced351dec9b3457d4da8255f324f035e235484190cf8094410fc84c2515
_journal.json https://github.com/simstudioai/sim/pull/5130/files#diff-37150cc65ad16ee6fbc5fa318fc096be7730e16d63eaf863e3df5521b7030649
schema.ts https://github.com/simstudioai/sim/pull/5130/files#diff-9a959e2ce3cb4c86957bbae021d06eae364f7b0cb18964f5873bab53220af928
audit.mock.ts https://github.com/simstudioai/sim/pull/5130/files#diff-ddbf3f281bccb1e55eb3765c29403087addedc24fb5f99c437c69a9a412c1e91
check-api-validation-contracts.ts https://github.com/simstudioai/sim/pull/5130/files#diff-48ae6a4d0c1f820d5b644522d25742bb29af758bc8350f1a3cf3f8afa0bd00b0
apps/sim/app/api/files/public/[token]/content/route.tshttps://github.com/simstudioai/sim/pull/5130/files#diff-b704e2528964732584a9531941b7d7ff78da342a5e3db53f8dde7de069369837
View file https://github.com/simstudioai/sim/blob/d939f0c6f77caee856956ed776db7d93767b8159/apps/sim/app/api/files/public/%5Btoken%5D/content/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5130/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/5130/files
apps/sim/app/api/files/public/[token]/route.test.tshttps://github.com/simstudioai/sim/pull/5130/files#diff-db270e3da14c6c692f7b652b88d68a6ceaed778c2789be926f518928baa278ca
View file https://github.com/simstudioai/sim/blob/d939f0c6f77caee856956ed776db7d93767b8159/apps/sim/app/api/files/public/%5Btoken%5D/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5130/{{ revealButtonHref }}
apps/sim/app/api/files/public/[token]/route.tshttps://github.com/simstudioai/sim/pull/5130/files#diff-b2039d821085869cd39c528e87b1a7e79fad21a7d41584369ab9d61bc75c579d
View file https://github.com/simstudioai/sim/blob/d939f0c6f77caee856956ed776db7d93767b8159/apps/sim/app/api/files/public/%5Btoken%5D/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5130/{{ revealButtonHref }}
apps/sim/app/api/workspaces/[id]/files/[fileId]/share/route.test.tshttps://github.com/simstudioai/sim/pull/5130/files#diff-c23d154360c5ecacf4491c00182b6fa76ac6e529e11b745d215e80f734d1302e
View file https://github.com/simstudioai/sim/blob/d939f0c6f77caee856956ed776db7d93767b8159/apps/sim/app/api/workspaces/%5Bid%5D/files/%5BfileId%5D/share/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5130/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/5130/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5130/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.