Title: Migrate optional features to the plugin system; define the core/plugin line · Issue #564 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Migrate optional features to the plugin system; define the core/plugin line · Issue #564 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Migrate optional features to the plugin system; define the core/plugin line · Issue #564 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Follow-up to #206 (plugin system) and #164 (extract WebFinger/OAuth). The observation driving this: JSS's optional features are already pseudo-plugins — server.js registers each as an encapsulated Fastify plugin with options, gated by a ...
Open Graph Description: Follow-up to #206 (plugin system) and #164 (extract WebFinger/OAuth). The observation driving this: JSS's optional features are already pseudo-plugins — server.js registers each as an encapsulated ...
X Description: Follow-up to #206 (plugin system) and #164 (extract WebFinger/OAuth). The observation driving this: JSS's optional features are already pseudo-plugins — server.js registers each as an encapsula...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/564
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Migrate optional features to the plugin system; define the core/plugin line","articleBody":"Follow-up to #206 (plugin system) and #164 (extract WebFinger/OAuth). The observation driving this: **JSS's optional features are already pseudo-plugins** — server.js registers each as an encapsulated Fastify plugin with options, gated by a createServer flag. The plugin system (#206) shouldn't be built and then have plugins written for it; it should *formalize what eight features already do*, then open the door to third parties.\n\n## The core/plugin line\n\n**Core (never plugins):** LDP/storage, the auth chain (Bearer/DPoP/NIP-98), WAC. These ARE the pod — everything depends on them, and \"disabling\" them is just a broken server. Honest layering keeps them in src/.\n\n**Bundled plugins (migrate):**\n\n| Feature | Today | Notes |\n|---|---|---|\n| notifications | `notificationsPlugin` | |\n| ActivityPub | `activityPubPlugin` + flag | |\n| webrtc | `webrtcPlugin` + path option | |\n| terminal | `terminalPlugin` | security-sensitive — default off stays |\n| tunnel | `tunnelPlugin` | |\n| remoteStorage | `remoteStoragePlugin` | |\n| MCP | `createServer({mcp: true})` | its TOOLS table also becomes a plugin seam (#206) |\n| IDP / WebFinger / OAuth | `idpPlugin` | exactly #164's ask |\n\n## Migration mechanics (mostly mechanical)\n\n1. Each feature gains a `jss.plugin.json` (`{id, version, entry}`) pointing at the module that already exists; entry wraps the current Fastify plugin in `activate(api)` using `api.fastify`.\n2. `createServer` flags become `plugins.entries.\u003cid>.{enabled, config}` — keep the old booleans as deprecated aliases for a transition window.\n3. Adopt openclaw's \"bundled plugin\" concept (shared with jsclaw): shipped in-tree, sensible defaults, but loaded through the same machinery as external plugins — so `plugins list` shows them, allow/deny applies, and the loader has eight battle-tested consumers from day one.\n4. The features themselves are the test suite: behavior must be byte-identical behind the new loading path.\n\n## Ordering\n\n1. #206 loader lands (manifest, policy, `api.fastify`)\n2. One low-risk migration proves it (tunnel or remoteStorage)\n3. #164 (IDP/WebFinger/OAuth) — the already-requested one\n4. The rest in any order; MCP last (it grows the extra `registerMcpTool` seam while moving)\n\nResult: server.js shrinks toward core-only, every optional feature demonstrates the plugin contract, and third-party plugins (#157 CardDAV, #184 pane store) arrive into a system with eight working examples.\n\nReference: the same migration logic in jsclaw — its channels/commands/MCP tools were built in-tree first, then the plugin layer (jsclaw/jsclaw#64, jsclaw/jsclaw#77) formalized the seams they already used.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-06-11T22:40:56Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/564"}
| 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:6419a8b2-e189-e1cb-3a28-28317a2bf025 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D356:1B316D:517E13:6BC321:6B0387DC |
| html-safe-nonce | 072c4142ea72b3100bfe663207ed03b468eadaecec0d5d32eabec3a0bea102d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzU2OjFCMzE2RDo1MTdFMTM6NkJDMzIxOjZCMDM4N0RDIiwidmlzaXRvcl9pZCI6IjY2NDYwMjgzMTExMTE4OTUwMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b458b0bb7427ef5023755f00b80f7b96b99abfcdfdd2a68c4c63ab520be006fa |
| hovercard-subject-tag | issue:4644715389 |
| 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/564/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab39aa23d1ed9fff9f2b32019df888abe83b93e4dd8fcafc9d26740e39edf3b6/JavaScriptSolidServer/JavaScriptSolidServer/issues/564 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab39aa23d1ed9fff9f2b32019df888abe83b93e4dd8fcafc9d26740e39edf3b6/JavaScriptSolidServer/JavaScriptSolidServer/issues/564 |
| og:image:alt | Follow-up to #206 (plugin system) and #164 (extract WebFinger/OAuth). The observation driving this: JSS's optional features are already pseudo-plugins — server.js registers each as an encapsulated ... |
| 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