Title: Plugin API seam: api.events.onResourceChange — a plugin can't react to pod writes · Issue #603 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Plugin API seam: api.events.onResourceChange — a plugin can't react to pod writes · Issue #603 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Plugin API seam: api.events.onResourceChange — a plugin can't react to pod writes · Issue #603 · JavaScriptSolidServer/JavaScriptSolidServer
Description: One of four plugin-API seams from building 33 out-of-tree plugins on the #206 loader (report). Second-most-demanded; the seam every "react to pod writes" app wants. The gap A plugin cannot observe pod writes, so a write-time index / cach...
Open Graph Description: One of four plugin-API seams from building 33 out-of-tree plugins on the #206 loader (report). Second-most-demanded; the seam every "react to pod writes" app wants. The gap A plugin cannot observe ...
X Description: One of four plugin-API seams from building 33 out-of-tree plugins on the #206 loader (report). Second-most-demanded; the seam every "react to pod writes" app wants. The gap A plugin canno...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/603
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plugin API seam: api.events.onResourceChange — a plugin can't react to pod writes","articleBody":"One of four plugin-API seams from building 33 out-of-tree plugins on the #206 loader ([report](https://github.com/JavaScriptSolidServer/plugins/blob/gh-pages/REPORT.md)). Second-most-demanded; the seam every \"react to pod writes\" app wants.\n\n## The gap\n\nA plugin cannot observe pod writes, so a write-time index / cached feed / live push is impossible. Plugins do read-time work instead (walk the container per request) and eat the O(N) cost, or simply cannot offer the feature.\n\n## Consumers (7, rising sharpness)\n\n- **notifications/** — a miss is a *late* notification.\n- **sparql/** — a miss is a *wrong* query result.\n- **search/** — a miss is *stale results* (the most user-visible instance).\n- **matrix/** — `/sync?since=` needs live push; a stateless bridge can only do full-state `/sync` without it.\n- **backup/** — no change hook + no plugin-owned read authority means incremental *and* scheduled backup are both unbuildable.\n- **jmap/** — push (`eventSourceUrl`) and delta sync (`*/changes`, `Email/queryChanges`) are refused in-protocol.\n- **remotestorage/** — descendant-version propagation needs a write-time index.\n\nA sharpening from `sparql/`'s UPDATE work: **owning a write endpoint does not buy the index** — a plugin could index its own writes, but plain-LDP writes bypass it, yielding a silently-wrong index. Only the host's event stream sees all writes.\n\n## Sketch\n\n`api.events.onResourceChange(({ path, method }) => {})`, fired post-commit on PUT/PATCH/DELETE. Core already has the emitter internally (`src/notifications/events.js`) — the seam is **exposure, not construction**.\n\n## Cost\n\nSmall — the event stream exists; scope it and pass it through.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-07-11T08:59:41Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/603"}
| 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:a98c8e79-3ea5-7901-31c7-a431b84248e3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B712:20D128:39A6BF:4C9CD6:6B037D45 |
| html-safe-nonce | a34957f4dcce48d4b23cba1114c7ef1a36c20f296bf07f2bf5c467bb2da72b7d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzEyOjIwRDEyODozOUE2QkY6NEM5Q0Q2OjZCMDM3RDQ1IiwidmlzaXRvcl9pZCI6IjM0ODI0Njc5NjMzODExODU4NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 36584c03c7cfe6e35cfe154b4ea86fc024101369be94067bf288ffe8e953636b |
| hovercard-subject-tag | issue:4861501073 |
| 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/603/issue_layout |
| twitter:image | https://opengraph.githubassets.com/108b7cb23346bd414ef586eb8aa779e3a4e8441890dd0c6edade2f76e2449806/JavaScriptSolidServer/JavaScriptSolidServer/issues/603 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/108b7cb23346bd414ef586eb8aa779e3a4e8441890dd0c6edade2f76e2449806/JavaScriptSolidServer/JavaScriptSolidServer/issues/603 |
| og:image:alt | One of four plugin-API seams from building 33 out-of-tree plugins on the #206 loader (report). Second-most-demanded; the seam every "react to pod writes" app wants. The gap A plugin cannot observe ... |
| 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