René's URL Explorer Experiment


Title: feat(plugins): createServer({ plugins }) — the #206 loader by melvincarvalho · Pull Request #589 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: feat(plugins): createServer({ plugins }) — the #206 loader by melvincarvalho · Pull Request #589 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: feat(plugins): createServer({ plugins }) — the #206 loader by melvincarvalho · Pull Request #589 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Closes the loader half of #206. The seams shipped first, each forced by a real consumer — appPaths (#582, Tideholm), getAgent (#584, Tideholm), WebSocket routing (#588, bridge) — and this PR is the ~150 lines that assemble them into config-driven app loading: createServer({ root, idp: true, plugins: [ { module: 'tideholm/jss-plugin/tideholm-jss.js', prefix: '/tideholm', config: { bots: 8 } }, { module: 'bridge/jss-plugin/bridge-jss.js', prefix: '/bridge' }, ], }) The api Each module's activate(api) runs during startup: surface provides api.fastify scoped instance to register routes on api.prefix / api.config the entry's mount point and config, verbatim api.auth.getAgent(req) host credential verification → agent id | null (#584) api.ws.route(path, (socket, req) => {}) WebSocket endpoints through @fastify/websocket — same upgrade path as the bundled realtime features, so plugins never attach their own 'upgrade' listener (#588's foot-gun) api.storage.pluginDir() private server-side dir under the data root's dot-guard (the .idp precedent) — never served over LDP api.log speaks both pino (info/warn/error) and console (log/error) dialects The entry's prefix joins appPaths automatically (#582), so the plugin owns auth under its mount — the same deal the bundled pseudo-plugins already have. activate() may return { deactivate }, run on close. A plugin that fails to import/activate fails listen() loudly — the operator wrote the config; a server silently missing an app is worse than one that refuses to start. Validation test/plugins.test.js: 8 tests — config→route serving under a WAC-exempt prefix, prefix/config pass-through, ws.route echo over a real socket, pluginDir creation + LDP shielding, deactivate on close, sibling WAC enforcement, loud failure on missing module and invalid prefix. Full suite: 1014/1014. Both real consumers composed from pure config in one server (their activate() exports were written against this contract): one pod account registers once, is auto-provisioned as a Tideholm player and mints a bridge login ticket with the same Bearer, plays bridge over the loader-owned WebSocket at /bridge/ws; sibling LDP paths keep full WAC; Tideholm's world persists under .plugins/tideholm-jss/. Punted deliberately Migrating the ~15 bundled features (relay, AP, git, pay…) onto the loader — that's #564, one feature at a time after this lands. UI-pane discovery from #206's original wording — no consumer has needed it yet (plugin-zero rule: no seam without a consumer). CLI config-file plugins block — natural follow-up once the option proves out; it's what makes "install an app = edit config" real. Refs #206, #582, #584, #588.

Open Graph Description: Closes the loader half of #206. The seams shipped first, each forced by a real consumer — appPaths (#582, Tideholm), getAgent (#584, Tideholm), WebSocket routing (#588, bridge) — and this PR is the...

X Description: Closes the loader half of #206. The seams shipped first, each forced by a real consumer — appPaths (#582, Tideholm), getAgent (#584, Tideholm), WebSocket routing (#588, bridge) — and this PR is the...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3c6595f9-5f63-a1ff-4b1f-b67a40cefa60
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB8C8:20D128:5D7AE7:7BBCD9:6B038BEE
html-safe-nonce7b34f9a1a4faa8d994c8248ece9d17739694fc8d29a085a74d9f359b05dc5f79
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEM4OjIwRDEyODo1RDdBRTc6N0JCQ0Q5OjZCMDM4QkVFIiwidmlzaXRvcl9pZCI6IjI4NDg2NDMyNjE3Nzg4NTE2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3cac6c79f2ffda891303d35944c2f4253b7b5cc206c2f4db741ea95fe11b8c70
hovercard-subject-tagpull_request:4032241930
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/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files
twitter:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/65864?s=400&v=4
og:image:altCloses the loader half of #206. The seams shipped first, each forced by a real consumer — appPaths (#582, Tideholm), getAgent (#584, Tideholm), WebSocket routing (#588, bridge) — and this PR is the...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fpull%2F589%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%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fpull%2F589%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=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Codehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues165 (165)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests14 (14)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actionshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projectshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security and qualityhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insightshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/insights
Sign up for GitHub https://github.com/signup?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2Fnew%2Fchoose
melvincarvalhohttps://github.com/melvincarvalho
gh-pageshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/gh-pages
plugin-loader-206https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/plugin-loader-206
Conversation 11 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589
Commits 3 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/commits
Checks 0 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/checks
Files changed https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files
feat(plugins): createServer({ plugins }) — the #206 loader https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#top
Show all changes 3 commits https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files
10ec550 feat(plugins): createServer({ plugins }) — the #206 loader melvincarvalho Jul 10, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/commits/10ec550a764b0485c5e6617a833c1b4061faa4a9
b334fbd review: plugins docs section, collision-resistant ids, guarded ws han… melvincarvalho Jul 10, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/commits/b334fbd58f172dfb9849f5ce1c6a6ca6a68093c6
30d6ce5 review: any provided prefix must validate melvincarvalho Jul 10, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/commits/30d6ce59a8a4119d9383d203ad9a1ce125e17d0e
Clear filters https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files
configuration.md https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
plugins.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-4693583c1003053b01b8544b007ee97c0702b86940aa5a1da5ca4b980cb7d69b
server.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-79f4c7cdc0b026f6e556196f5911a449157807cffdb3f9d33f0b5404b4ffc2f3
plugins.test.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-2ab0699e296b17dac49560702fbbe47c1b6fc51f89fbf72df8acde165088c956
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
docs/configuration.mdhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/30d6ce59a8a4119d9383d203ad9a1ce125e17d0e/docs/configuration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
src/plugins.jshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-4693583c1003053b01b8544b007ee97c0702b86940aa5a1da5ca4b980cb7d69b
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/30d6ce59a8a4119d9383d203ad9a1ce125e17d0e/src/plugins.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
src/server.jshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-79f4c7cdc0b026f6e556196f5911a449157807cffdb3f9d33f0b5404b4ffc2f3
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/30d6ce59a8a4119d9383d203ad9a1ce125e17d0e/src/server.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-79f4c7cdc0b026f6e556196f5911a449157807cffdb3f9d33f0b5404b4ffc2f3
melvincarvalhohttps://github.com/melvincarvalho
Jul 10, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#r3562054760
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
b334fbdhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/b334fbd58f172dfb9849f5ce1c6a6ca6a68093c6
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-79f4c7cdc0b026f6e556196f5911a449157807cffdb3f9d33f0b5404b4ffc2f3
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-79f4c7cdc0b026f6e556196f5911a449157807cffdb3f9d33f0b5404b4ffc2f3
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-79f4c7cdc0b026f6e556196f5911a449157807cffdb3f9d33f0b5404b4ffc2f3
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-79f4c7cdc0b026f6e556196f5911a449157807cffdb3f9d33f0b5404b4ffc2f3
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/files#diff-79f4c7cdc0b026f6e556196f5911a449157807cffdb3f9d33f0b5404b4ffc2f3
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/589/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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.