René's URL Explorer Experiment


Title: fix(plugins): derive plugin id from parent dir for generic basenames (#596) by melvincarvalho · Pull Request #613 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: fix(plugins): derive plugin id from parent dir for generic basenames (#596) by melvincarvalho · Pull Request #613 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: fix(plugins): derive plugin id from parent dir for generic basenames (#596) by melvincarvalho · Pull Request #613 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Closes #596. The bug The near-universal /plugin.js convention makes every such file derive the id plugin (basename minus extension), so the loader's (correct) duplicate-id guard refuses to boot the moment you load two of them. As noted on the issue, it also blocks the --plugin CLI form entirely — that flag has no field to set an explicit id: jss start --plugin ./relay/plugin.js@/relay --plugin ./dashboard/plugin.js@/dashboard # Error: plugins: duplicate id 'plugin' — set entry.id ... All 33 plugins in the out-of-tree plugins repo hit this; it's why they're loaded via explicit-id config rather than jss --plugin. The fix When the basename is generic (plugin.js / index.js), derive the id from the immediate parent directory (relay/plugin.js → relay) instead of the basename. The parent directory is the right fallback specifically because it distinguishes /plugin.js files from each other without pinning the machine-specific path prefix — which is the exact reason the basename (not the full path) was used originally: a deployment-dependent prefix must not name the plugin's data dir, or pluginDir would move with the deployment. relay is stable; /home/alice/apps/relay is not. Unchanged: non-generic basenames (foo.js → foo), bare package specifiers (@scope/pkg/plugin.js → scope-pkg-plugin), and explicit ids. The duplicate-id guard still fires for genuine collisions. Tests pluginId unit cases: generic → parent dir, index.js → parent, uppercase/.mjs handling, non-generic unchanged, no-usable-parent fallback (./plugin.js → plugin), explicit id still wins. An integration boot of two /plugin.js files with no ids (the exact CLI case) — it now boots and both routes answer. Existing duplicate-id rejection test still passes. Full suite 1055/1055. docs/configuration.md updated. Context Found while trying to run the out-of-tree dashboard/ plugin from the core CLI after api.plugins/api.serverInfo shipped (#605, #612) — the seams work, but this id collision was the last thing between "clone and --plugin" and a one-liner. With this, bare --plugin ./relay/plugin.js derives relay and conventional layouts load without ceremony.

Open Graph Description: Closes #596. The bug The near-universal <name>/plugin.js convention makes every such file derive the id plugin (basename minus extension), so the loader's (correct) duplicate-id guard ref...

X Description: Closes #596. The bug The near-universal &lt;name&gt;/plugin.js convention makes every such file derive the id plugin (basename minus extension), so the loader&#39;s (correct) duplicate-...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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:0a703761-3ecb-30c2-da15-9b34942f926d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB576:12EFD7:12591CB:173065E:6B039105
html-safe-noncec767f3022f6c842833235ffd5f7bbee727092780b83e0d98d3cad8722a66e08a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTc2OjEyRUZENzoxMjU5MUNCOjE3MzA2NUU6NkIwMzkxMDUiLCJ2aXNpdG9yX2lkIjoiMzQ0MTc5MTc2NjkzNDgxOTA3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1c9bbb6de20a8b48db0b045117d6e6858095aad68b3f3b9a764fc2eea053eb55
hovercard-subject-tagpull_request:4036174431
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/613/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 #596. The bug The near-universal <name>/plugin.js convention makes every such file derive the id plugin (basename minus extension), so the loader's (correct) duplicate-id guard ref...
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/613/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fpull%2F613%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%2F613%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/613/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/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
fix/plugin-id-596https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/tree/fix/plugin-id-596
Conversation 3 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613
Commits 2 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/commits
Checks 0 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/checks
Files changed https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files
fix(plugins): derive plugin id from parent dir for generic basenames (#596) https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#top
Show all changes 2 commits https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files
1649896 fix(plugins): derive plugin id from parent dir for generic basenames … melvincarvalho Jul 11, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/commits/1649896e31bd7879c009a7731261e99dba537ace
505e6af review: strip the extension from the file basename, not a parent dir … melvincarvalho Jul 11, 2026 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/commits/505e6af09a929613a23874d1357522b43d0dfb57
Clear filters https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files
Please reload this pagehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files
configuration.md https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
plugins.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-4693583c1003053b01b8544b007ee97c0702b86940aa5a1da5ca4b980cb7d69b
plugins.test.js https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-2ab0699e296b17dac49560702fbbe47c1b6fc51f89fbf72df8acde165088c956
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
docs/configuration.mdhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/505e6af09a929613a23874d1357522b43d0dfb57/docs/configuration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-17ed18489a956f326ec0fe4040850c5bc9261d4631fb42da4c52891d74a59180
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
src/plugins.jshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-4693583c1003053b01b8544b007ee97c0702b86940aa5a1da5ca4b980cb7d69b
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/505e6af09a929613a23874d1357522b43d0dfb57/src/plugins.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-4693583c1003053b01b8544b007ee97c0702b86940aa5a1da5ca4b980cb7d69b
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-4693583c1003053b01b8544b007ee97c0702b86940aa5a1da5ca4b980cb7d69b
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/gh-pages/.github/CODEOWNERS#L12
test/plugins.test.jshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-2ab0699e296b17dac49560702fbbe47c1b6fc51f89fbf72df8acde165088c956
View file https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/blob/505e6af09a929613a23874d1357522b43d0dfb57/test/plugins.test.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/{{ revealButtonHref }}
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-2ab0699e296b17dac49560702fbbe47c1b6fc51f89fbf72df8acde165088c956
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/613/files#diff-2ab0699e296b17dac49560702fbbe47c1b6fc51f89fbf72df8acde165088c956
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.