Title: plugin api: api.events.on('change') — expose the resource change feed to plugins · Issue #623 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: plugin api: api.events.on('change') — expose the resource change feed to plugins · Issue #623 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: plugin api: api.events.on('change') — expose the resource change feed to plugins · Issue #623 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Plugin seam for #621 (LWS), under #206. Problem src/notifications/events.js already emits resource change events for the solid-0.1 WebSocket channel, but the emitter isn't reachable from a plugin. LWS webhook notifications (and ActivityP...
Open Graph Description: Plugin seam for #621 (LWS), under #206. Problem src/notifications/events.js already emits resource change events for the solid-0.1 WebSocket channel, but the emitter isn't reachable from a plugin. ...
X Description: Plugin seam for #621 (LWS), under #206. Problem src/notifications/events.js already emits resource change events for the solid-0.1 WebSocket channel, but the emitter isn't reachable from a plug...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/623
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"plugin api: api.events.on('change') — expose the resource change feed to plugins","articleBody":"Plugin seam for #621 (LWS), under #206.\n\n## Problem\n\n`src/notifications/events.js` already emits resource change events for the `solid-0.1` WebSocket channel, but the emitter isn't reachable from a plugin. LWS webhook notifications (and ActivityPub outbox fan-out, search indexing, type index #535, …) all need \"tell me when a resource changes\".\n\n## Proposal\n\n```js\nconst off = api.events.on('change', ({ type, url, isContainer, agent, at }) => { ... });\n// type: 'create' | 'update' | 'delete'\n```\n\n- Fires after the write has committed, off the request path (`setImmediate` / `queueMicrotask`), so a slow listener can't delay the response.\n- Listener exceptions are caught and logged with the plugin id.\n- `off()` unsubscribes; `deactivate()` should call it, but the loader also drops all listeners registered by a plugin on close.\n- Mirrors what the WebSocket notifier consumes today — no new event source, just exposure.\n\nPrior art: `LwsNotificationListener` in [`jeswr/LinkedWebStorage`](https://github.com/jeswr/LinkedWebStorage), which turns changes into Create/Update/Delete activities, matches recursive container topics, and re-checks read permission at delivery time.\n","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-10-14T17:05:57Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/623"}
| 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:7f805cf3-49c4-84d7-8e77-8e8c9374adc8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 83A6:34DFBA:B28C8C:E1AC4A:6B037D49 |
| html-safe-nonce | 059a825ec7b2b97b2de7f72d8c96df9d18645ff123e51d04d64eb7a04400f085 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0E2OjM0REZCQTpCMjhDOEM6RTFBQzRBOjZCMDM3RDQ5IiwidmlzaXRvcl9pZCI6IjE2MTIwMDExNjc1NzgyMDE0MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2f1772c836f4e325b06e37a54834e49d4e7f1361c3233c1ce9af88c8446e2e8a |
| hovercard-subject-tag | issue:5852094967 |
| 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/623/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0157f7767bf86a2899ae1460cb043ccef067548fbd176091cd1f38d4aa695ed9/JavaScriptSolidServer/JavaScriptSolidServer/issues/623 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0157f7767bf86a2899ae1460cb043ccef067548fbd176091cd1f38d4aa695ed9/JavaScriptSolidServer/JavaScriptSolidServer/issues/623 |
| og:image:alt | Plugin seam for #621 (LWS), under #206. Problem src/notifications/events.js already emits resource change events for the solid-0.1 WebSocket channel, but the emitter isn't reachable from a plugin. ... |
| 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