Title: Plugin API seam: api.serverInfo — a plugin can't learn its own origin at activate time · Issue #601 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Plugin API seam: api.serverInfo — a plugin can't learn its own origin at activate time · Issue #601 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Plugin API seam: api.serverInfo — a plugin can't learn its own origin at activate time · Issue #601 · JavaScriptSolidServer/JavaScriptSolidServer
Description: One of four plugin-API seams surfaced by building 33 out-of-tree plugins on the #206 loader (full report + ranking). Ranked by independent demand, this is the broadest and cheapest. The gap A plugin cannot learn its own server origin (ba...
Open Graph Description: One of four plugin-API seams surfaced by building 33 out-of-tree plugins on the #206 loader (full report + ranking). Ranked by independent demand, this is the broadest and cheapest. The gap A plugi...
X Description: One of four plugin-API seams surfaced by building 33 out-of-tree plugins on the #206 loader (full report + ranking). Ranked by independent demand, this is the broadest and cheapest. The gap A plugi...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/601
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plugin API seam: api.serverInfo — a plugin can't learn its own origin at activate time","articleBody":"One of four plugin-API seams surfaced by building 33 out-of-tree plugins on the #206 loader ([full report + ranking](https://github.com/JavaScriptSolidServer/plugins/blob/gh-pages/REPORT.md)). Ranked by independent demand, this is the **broadest and cheapest**.\n\n## The gap\n\nA plugin cannot learn its own server origin (`baseUrl`, `port`) at `activate` time. Every plugin that mints an absolute URL or calls the host back over loopback must be *told* its origin via config, and a wrong value fails **quietly** (e.g. `nip05/` serves an empty identity map).\n\n## Consumers (~16, uncoordinated)\n\nThe whole DAV family (webdav/carddav/caldav), the shims (mastodon/bluesky/matrix/activitypub), rss, sparql, nip05, webfinger, notifications, micropub, backup, metrics, dashboard, oembed, jmap, remotestorage — essentially every plugin that isn't purely realtime. All repeat `baseUrl`/`loopbackUrl` in config today. The test harness's probe-port-then-boot dance exists for the same reason.\n\n## Sketch\n\n`api.serverInfo → { baseUrl, port }`, available by `activate` time, or an `onListen`-style hook if the origin isn't known until listen.\n\n## Cost\n\nTrivial — the server knows its own bind address; this is exposing it on the `api` object. **Best effort-to-value ratio of the four seams; suggested to land first** as the reference PR.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-07-11T08:59:38Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/601"}
| 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:eaab8eae-7fa9-1b70-8e96-50b0789ec4b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC4E:822F:D23A58:1099C98:6B0389F5 |
| html-safe-nonce | 57ca8eafffcab1ba1293732091d4ea484d553d33d78172b8e81318eab95ab358 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzRFOjgyMkY6RDIzQTU4OjEwOTlDOTg6NkIwMzg5RjUiLCJ2aXNpdG9yX2lkIjoiNTUwMDQ4MzA1NjM1MzY0Mjk5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f5e4aa8b9c648d66471cba4172f4d2763af92b82c3aa433eaa0adf0925ae789c |
| hovercard-subject-tag | issue:4861500925 |
| 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/601/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3133edb7e75d6082984434f31e55528072a29e3535557f67294ab47a904ef99d/JavaScriptSolidServer/JavaScriptSolidServer/issues/601 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3133edb7e75d6082984434f31e55528072a29e3535557f67294ab47a904ef99d/JavaScriptSolidServer/JavaScriptSolidServer/issues/601 |
| og:image:alt | One of four plugin-API seams surfaced by building 33 out-of-tree plugins on the #206 loader (full report + ranking). Ranked by independent demand, this is the broadest and cheapest. The gap A plugi... |
| 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