René's URL Explorer Experiment


Title: feat(rpc): expose native shared state for custom channels by dvcolomban · Pull Request #410 · devframes/devframe · GitHub

Open Graph Title: feat(rpc): expose native shared state for custom channels by dvcolomban · Pull Request #410 · devframes/devframe

X Title: feat(rpc): expose native shared state for custom channels by dvcolomban · Pull Request #410 · devframes/devframe

Description: Background (Why) Custom RPC channels can already use createRpcClient() and createRpcServer(), but the native shared-state implementations are not public. Channel bindings otherwise have to copy that synchronization logic or construct a full node context. Changes (What) Export the existing implementations through devframe/rpc/shared-state, accepting the native RPC members they use. Subscription handlers read the calling connection's birpc metadata, so custom channels and the existing node context share the same subscription behavior. A failed initial snapshot now rejects instead of leaving its promise pending. Build the RPC entry points with the browser-safe graph and include them in the browser-import guard. Existing implementation files stay in place. The channel binding still owns peer authentication, serialization and disconnection. This draft is now limited to RPC and shared state. JSON rendering is in #411 and baseline diagnostic snapshot repairs are in #412. Verification (Testing) Six focused tests pass, including two real MessageChannel peers through both custom channels and the native node context. They cover subscription isolation, writes, disconnection and rejected initial snapshots. The devframe build, package type check, scoped lint and Knip pass. The browser-import guard finds no forbidden imports across 31 reachable chunks and 20 entry points. The new and changed API snapshots were generated from fresh artifacts. The unchanged baseline has three stale diagnostic snapshots, confirmed in base CI; their repair is separate from this feature. Full-repository validation runs in CI.

Open Graph Description: Background (Why) Custom RPC channels can already use createRpcClient() and createRpcServer(), but the native shared-state implementations are not public. Channel bindings otherwise have to copy tha...

X Description: Background (Why) Custom RPC channels can already use createRpcClient() and createRpcServer(), but the native shared-state implementations are not public. Channel bindings otherwise have to copy tha...

Opengraph URL: https://github.com/devframes/devframe/pull/410

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:86bfb501-d2fb-4072-68d6-ffa84df3f566
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA690:39F0B6:77AC6F:A8DE13:6AFB6B18
html-safe-nonce12ba399e9c94c6cf74c281d2453c3e17a2be0efecca956b1095d98c46a78590c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjkwOjM5RjBCNjo3N0FDNkY6QThERTEzOjZBRkI2QjE4IiwidmlzaXRvcl9pZCI6IjE1ODI5NDQ1MDY5MzQ0MjIyOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac450cb35ffabbebb282d27ab3cfce1ca348331ffe09cedc8e8353f72d0ea76792
hovercard-subject-tagpull_request:4664390680
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/devframes/devframe/pull/410/files
twitter:imagehttps://avatars.githubusercontent.com/u/90617742?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/90617742?s=400&v=4
og:image:altBackground (Why) Custom RPC channels can already use createRpcClient() and createRpcServer(), but the native shared-state implementations are not public. Channel bindings otherwise have to copy tha...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/devframes/devframe git https://github.com/devframes/devframe.git
octolytics-dimension-user_id279879373
octolytics-dimension-user_logindevframes
octolytics-dimension-repository_id1231722386
octolytics-dimension-repository_nwodevframes/devframe
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1231722386
octolytics-dimension-repository_network_root_nwodevframes/devframe
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
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/devframes/devframe/pull/410/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fpull%2F410%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%2Fdevframes%2Fdevframe%2Fpull%2F410%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=devframes%2Fdevframe
Reloadhttps://github.com/devframes/devframe/pull/410/files
Reloadhttps://github.com/devframes/devframe/pull/410/files
Reloadhttps://github.com/devframes/devframe/pull/410/files
devframeshttps://github.com/devframes
devframehttps://github.com/devframes/devframe
Codehttps://github.com/devframes/devframe
Issues12 (12)https://github.com/devframes/devframe/issues
Pull requests13 (13)https://github.com/devframes/devframe/pulls
Actionshttps://github.com/devframes/devframe/actions
Security and qualityhttps://github.com/devframes/devframe/security
Insightshttps://github.com/devframes/devframe/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fdevframes%2Fdevframe%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fdevframes%2Fdevframe%2Fissues%2Fnew%2Fchoose
dvcolombanhttps://github.com/dvcolomban
devframes:mainhttps://github.com/devframes/devframe/tree/main
dvcolomban:dvcol/browser-rpc-primitiveshttps://github.com/dvcolomban/devframe/tree/dvcol/browser-rpc-primitives
Conversation 1 https://github.com/devframes/devframe/pull/410
Commits 1 https://github.com/devframes/devframe/pull/410/commits
Checks 10 https://github.com/devframes/devframe/pull/410/checks
Files changed https://github.com/devframes/devframe/pull/410/files
Please reload this pagehttps://github.com/devframes/devframe/pull/410/files
feat(rpc): expose native shared state for custom channels https://github.com/devframes/devframe/pull/410/files#top
Show all changes 1 commit https://github.com/devframes/devframe/pull/410/files
fb8cf6a feat(rpc): expose native shared state for custom channels dvcolomban Sep 28, 2026 https://github.com/devframes/devframe/pull/410/commits/fb8cf6a6f1436361f14aa1caf51c50089791d5c8
Clear filters https://github.com/devframes/devframe/pull/410/files
Please reload this pagehttps://github.com/devframes/devframe/pull/410/files
Please reload this pagehttps://github.com/devframes/devframe/pull/410/files
alias.ts https://github.com/devframes/devframe/pull/410/files#diff-8d5a607d41e5c1574e01c0fe4c8e415462180adf08ccb2b7cc29aa68efe6a18b
5.browser-api.md https://github.com/devframes/devframe/pull/410/files#diff-a8f7b2475c61a0b2b9cad33c9a47ddd3dc0b1466e07b6056b484493bd44de722
knip.jsonc https://github.com/devframes/devframe/pull/410/files#diff-48d5ba4681726b42e98dae10c08bd94f7f9836644c8f183c6475d10dcf67ebf1
package.json https://github.com/devframes/devframe/pull/410/files#diff-d784f3fa13074688ba61e3c3eb2ddb80ec12a741c7968df7572bb0cc4fe045b0
rpc-shared-state.ts https://github.com/devframes/devframe/pull/410/files#diff-7c77ed971e646bb3cc99e0ac03db6a736e4371fb730bb4c04afcaa6d06f568bc
rpc-shared-state.ts https://github.com/devframes/devframe/pull/410/files#diff-8cc18347186150a72c2d96f76fcbdc7398f546504c5b982d4bc1840f1c59d76f
shared-state.test.ts https://github.com/devframes/devframe/pull/410/files#diff-39e4048cd5ae50a10054e11e5e7adf2f8c5d1fe35a7c19d52ccc221e7acb5eb1
shared-state.ts https://github.com/devframes/devframe/pull/410/files#diff-9193fc7007a1e644b63295f797fa73236637501af8292b5f4a68e69bb3bc8d4c
tsdown.config.ts https://github.com/devframes/devframe/pull/410/files#diff-fe63bd5c1cbc4548a903d6fb3a759c706123db9f79e9f26ac1d8d283b90f96fe
client.snapshot.d.ts https://github.com/devframes/devframe/pull/410/files#diff-4726bdd3b5f103edd4d598118e21fbc6184db0d6bcab827523f198462275fdad
rpc.snapshot.js https://github.com/devframes/devframe/pull/410/files#diff-c081707ffde75f74b9a199396141282fd6274b3aea3d3fe53f4b48c3ef984645
shared-state.snapshot.d.ts https://github.com/devframes/devframe/pull/410/files#diff-a1362a388f9e7d8eb7b8467c5c773a088722b01362bd880bb42e1eeb9e8fb5dc
shared-state.snapshot.js https://github.com/devframes/devframe/pull/410/files#diff-e5322b811d37a34bd218bc007621d3d09c81bd79866324a029ce95b5af8e0d53
tsconfig.base.json https://github.com/devframes/devframe/pull/410/files#diff-0b280a445be167f54cd916c0718c952b8e0d4ca9621903d05eec25efd4c6ed6d
alias.tshttps://github.com/devframes/devframe/pull/410/files#diff-8d5a607d41e5c1574e01c0fe4c8e415462180adf08ccb2b7cc29aa68efe6a18b
View file https://github.com/devframes/devframe/blob/fb8cf6a6f1436361f14aa1caf51c50089791d5c8/alias.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/410/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/410/files#diff-8d5a607d41e5c1574e01c0fe4c8e415462180adf08ccb2b7cc29aa68efe6a18b
https://github.com/devframes/devframe/pull/410/files#diff-8d5a607d41e5c1574e01c0fe4c8e415462180adf08ccb2b7cc29aa68efe6a18b
docs/content/8.references/5.browser-api.mdhttps://github.com/devframes/devframe/pull/410/files#diff-a8f7b2475c61a0b2b9cad33c9a47ddd3dc0b1466e07b6056b484493bd44de722
View file https://github.com/devframes/devframe/blob/fb8cf6a6f1436361f14aa1caf51c50089791d5c8/docs/content/8.references/5.browser-api.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/410/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/410/files#diff-a8f7b2475c61a0b2b9cad33c9a47ddd3dc0b1466e07b6056b484493bd44de722
knip.jsonchttps://github.com/devframes/devframe/pull/410/files#diff-48d5ba4681726b42e98dae10c08bd94f7f9836644c8f183c6475d10dcf67ebf1
View file https://github.com/devframes/devframe/blob/fb8cf6a6f1436361f14aa1caf51c50089791d5c8/knip.jsonc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/410/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/410/files#diff-48d5ba4681726b42e98dae10c08bd94f7f9836644c8f183c6475d10dcf67ebf1
https://github.com/devframes/devframe/pull/410/files#diff-48d5ba4681726b42e98dae10c08bd94f7f9836644c8f183c6475d10dcf67ebf1
packages/devframe/package.jsonhttps://github.com/devframes/devframe/pull/410/files#diff-d784f3fa13074688ba61e3c3eb2ddb80ec12a741c7968df7572bb0cc4fe045b0
View file https://github.com/devframes/devframe/blob/fb8cf6a6f1436361f14aa1caf51c50089791d5c8/packages/devframe/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/410/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/410/files#diff-d784f3fa13074688ba61e3c3eb2ddb80ec12a741c7968df7572bb0cc4fe045b0
https://github.com/devframes/devframe/pull/410/files#diff-d784f3fa13074688ba61e3c3eb2ddb80ec12a741c7968df7572bb0cc4fe045b0
packages/devframe/src/client/rpc-shared-state.tshttps://github.com/devframes/devframe/pull/410/files#diff-7c77ed971e646bb3cc99e0ac03db6a736e4371fb730bb4c04afcaa6d06f568bc
View file https://github.com/devframes/devframe/blob/fb8cf6a6f1436361f14aa1caf51c50089791d5c8/packages/devframe/src/client/rpc-shared-state.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/410/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/410/files#diff-7c77ed971e646bb3cc99e0ac03db6a736e4371fb730bb4c04afcaa6d06f568bc
https://github.com/devframes/devframe/pull/410/files#diff-7c77ed971e646bb3cc99e0ac03db6a736e4371fb730bb4c04afcaa6d06f568bc
https://github.com/devframes/devframe/pull/410/files#diff-7c77ed971e646bb3cc99e0ac03db6a736e4371fb730bb4c04afcaa6d06f568bc
https://github.com/devframes/devframe/pull/410/files#diff-7c77ed971e646bb3cc99e0ac03db6a736e4371fb730bb4c04afcaa6d06f568bc
packages/devframe/src/node/rpc-shared-state.tshttps://github.com/devframes/devframe/pull/410/files#diff-8cc18347186150a72c2d96f76fcbdc7398f546504c5b982d4bc1840f1c59d76f
View file https://github.com/devframes/devframe/blob/fb8cf6a6f1436361f14aa1caf51c50089791d5c8/packages/devframe/src/node/rpc-shared-state.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/410/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/410/files#diff-8cc18347186150a72c2d96f76fcbdc7398f546504c5b982d4bc1840f1c59d76f
https://github.com/devframes/devframe/pull/410/files#diff-8cc18347186150a72c2d96f76fcbdc7398f546504c5b982d4bc1840f1c59d76f
https://github.com/devframes/devframe/pull/410/files#diff-8cc18347186150a72c2d96f76fcbdc7398f546504c5b982d4bc1840f1c59d76f
https://github.com/devframes/devframe/pull/410/files#diff-8cc18347186150a72c2d96f76fcbdc7398f546504c5b982d4bc1840f1c59d76f
packages/devframe/src/rpc/shared-state.test.tshttps://github.com/devframes/devframe/pull/410/files#diff-39e4048cd5ae50a10054e11e5e7adf2f8c5d1fe35a7c19d52ccc221e7acb5eb1
View file https://github.com/devframes/devframe/blob/fb8cf6a6f1436361f14aa1caf51c50089791d5c8/packages/devframe/src/rpc/shared-state.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/410/{{ revealButtonHref }}
packages/devframe/src/rpc/shared-state.tshttps://github.com/devframes/devframe/pull/410/files#diff-9193fc7007a1e644b63295f797fa73236637501af8292b5f4a68e69bb3bc8d4c
View file https://github.com/devframes/devframe/blob/fb8cf6a6f1436361f14aa1caf51c50089791d5c8/packages/devframe/src/rpc/shared-state.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/410/{{ revealButtonHref }}
packages/devframe/tsdown.config.tshttps://github.com/devframes/devframe/pull/410/files#diff-fe63bd5c1cbc4548a903d6fb3a759c706123db9f79e9f26ac1d8d283b90f96fe
View file https://github.com/devframes/devframe/blob/fb8cf6a6f1436361f14aa1caf51c50089791d5c8/packages/devframe/tsdown.config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/410/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/410/files#diff-fe63bd5c1cbc4548a903d6fb3a759c706123db9f79e9f26ac1d8d283b90f96fe
https://github.com/devframes/devframe/pull/410/files#diff-fe63bd5c1cbc4548a903d6fb3a759c706123db9f79e9f26ac1d8d283b90f96fe
https://github.com/devframes/devframe/pull/410/files#diff-fe63bd5c1cbc4548a903d6fb3a759c706123db9f79e9f26ac1d8d283b90f96fe
https://github.com/devframes/devframe/pull/410/files#diff-fe63bd5c1cbc4548a903d6fb3a759c706123db9f79e9f26ac1d8d283b90f96fe
https://github.com/devframes/devframe/pull/410/files#diff-fe63bd5c1cbc4548a903d6fb3a759c706123db9f79e9f26ac1d8d283b90f96fe
Please reload this pagehttps://github.com/devframes/devframe/pull/410/files
Please reload this pagehttps://github.com/devframes/devframe/pull/410/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.