Title: Plugin id derivation defeats the pod/plugin.js convention — every app derives id "pod" · Issue #614 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Plugin id derivation defeats the pod/plugin.js convention — every app derives id "pod" · Issue #614 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Plugin id derivation defeats the pod/plugin.js convention — every app derives id "pod" · Issue #614 · JavaScriptSolidServer/JavaScriptSolidServer
Description: #596 made relay/plugin.js derive plugin id relay — parent directory for the generic basename. That works when the plugin file sits directly in the app's directory, but an emerging convention is for an app repo to carry its pod-side integ...
Open Graph Description: #596 made relay/plugin.js derive plugin id relay — parent directory for the generic basename. That works when the plugin file sits directly in the app's directory, but an emerging convention is for...
X Description: #596 made relay/plugin.js derive plugin id relay — parent directory for the generic basename. That works when the plugin file sits directly in the app's directory, but an emerging convention is...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/614
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plugin id derivation defeats the pod/plugin.js convention — every app derives id \"pod\"","articleBody":"#596 made `relay/plugin.js` derive plugin id `relay` — parent directory for the generic basename. That works when the plugin file sits directly in the app's directory, but an emerging convention is for an app repo to carry its pod-side integration in a `pod/` subdirectory:\n\n```\ngamestr/\n pod/plugin.js ← the app's jss plugin\n index.html ← the rest of the app\n```\n\nWith that layout the derivation stops one level short: `gamestr/pod/plugin.js` → id `pod`. First observed in production after restructuring the gamestr plugin — `.plugins/pod` appeared and the boot log reads `plugin pod active at /gamestr`.\n\nHarmless with one app, but the id must be unique, so the convention cannot scale — every app following it derives the same id:\n\n```\n--plugin ~/apps/gamestr/pod/plugin.js@/gamestr → id \"pod\"\n--plugin ~/apps/chess/pod/plugin.js@/chess → id \"pod\" ← collision\n```\n\nTwo plugins, no ambiguity in anything the operator typed, yet they collide on the inferred name (and would otherwise share `.plugins/pod` private storage).\n\n**Proposed fix** — the same idea as #596, one level up: when the basename is generic (`plugin.js`) *and* the parent directory is also generic, keep walking to the grandparent. A small generic-dir set covers the conventions in the wild: `pod`, `plugins`, `plugin`, `src`, `lib`, `dist`.\n\n- `gamestr/pod/plugin.js` → `gamestr`\n- `chess/pod/plugin.js` → `chess`\n- `relay/plugin.js` → `relay` (unchanged)\n- `plugin.js` at repo root → unchanged fallback\n\n**Complementary option:** an explicit-id grammar for the CLI flag, e.g. `--plugin module[@prefix][#id]` — config-file entries can already set `id`, but CLI users have no equivalent, so today the only workaround is renaming directories.\n\nHappy to PR the derivation change with tests if the approach looks right.\n","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-07-12T00:44:17Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/614"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:518ef9e5-724f-34f2-67eb-6803c784c428 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9C8:1C9060:28C8A87:35D301F:6B038348 |
| html-safe-nonce | 12cbccb70937881bd669fcc49a2441dc9732712400f53fbd51160402d2b4c921 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUM4OjFDOTA2MDoyOEM4QTg3OjM1RDMwMUY6NkIwMzgzNDgiLCJ2aXNpdG9yX2lkIjoiODAwMTM4NDIwMzMxNzA5MjU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2d58f00800057b232455415a1cb452c32a10e8557f269862594215dd5afa71c5 |
| hovercard-subject-tag | issue:4864801433 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/614/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a47f1fefd7be60e9d38d0f89191066308b588a59f7a93f2b5627f62f681c9f55/JavaScriptSolidServer/JavaScriptSolidServer/issues/614 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a47f1fefd7be60e9d38d0f89191066308b588a59f7a93f2b5627f62f681c9f55/JavaScriptSolidServer/JavaScriptSolidServer/issues/614 |
| og:image:alt | #596 made relay/plugin.js derive plugin id relay — parent directory for the generic basename. That works when the plugin file sits directly in the app's directory, but an emerging convention is for... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width