Title: Track: LWS server-managed Type Index (TypeIndexService + TypeSearchService) — w3c/lws-protocol#115 · Issue #535 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Track: LWS server-managed Type Index (TypeIndexService + TypeSearchService) — w3c/lws-protocol#115 · Issue #535 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Track: LWS server-managed Type Index (TypeIndexService + TypeSearchService) — w3c/lws-protocol#115 · Issue #535 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Tracking issue to evaluate / align JSS with the server-managed Type Index just proposed for the LWS Discovery spec. PR: w3c/lws-protocol#115 (add Type Index Section, open) Preview: https://pr-preview.s3.amazonaws.com/w3c/lws-protocol/pul...
Open Graph Description: Tracking issue to evaluate / align JSS with the server-managed Type Index just proposed for the LWS Discovery spec. PR: w3c/lws-protocol#115 (add Type Index Section, open) Preview: https://pr-previ...
X Description: Tracking issue to evaluate / align JSS with the server-managed Type Index just proposed for the LWS Discovery spec. PR: w3c/lws-protocol#115 (add Type Index Section, open) Preview: https://pr-previ...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/535
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Track: LWS server-managed Type Index (TypeIndexService + TypeSearchService) — w3c/lws-protocol#115","articleBody":"Tracking issue to evaluate / align JSS with the **server-managed Type Index** just proposed for the LWS Discovery spec.\n\n- PR: https://github.com/w3c/lws-protocol/pull/115 (`add Type Index Section`, open)\n- Preview: https://pr-preview.s3.amazonaws.com/w3c/lws-protocol/pull/115.html\n- Cites the classic [type-indexes](https://solid.github.io/type-indexes/) as reference, but reimagines it as a server feature.\n\n## What it proposes\n\nTwo **server-managed** services advertised in the storage description:\n\n- **`TypeIndexService`** (GET) — paginated list of the *distinct types* present in the storage that the authenticated user is authorized to see. No query params.\n- **`TypeSearchService`** (GET/POST) — returns the *resource URIs* matching a type query.\n\nKey properties:\n\n- **Server-populated, not client-written** (clients can't corrupt it). Types derived from **`Link rel=\"type\"` headers** at write time + server-intrinsic LWS classes (`lws#Container`, `lws#DataResource`); servers MAY also parse content but are not required to.\n- **Conjunctive-normal-form queries**: `?type=A,B&type=C` = `(A OR B) AND C` (comma = OR, repeat = AND). MAY also filter by other *descriptive* link relations (relation name as the param), same CNF semantics; the indexed relation set is deliberately not enumerated (no discovery oracle). No nesting/negation/ordering/text.\n- **Authorization-filtered** results; auth filtering is strict (not subject to the eventual-consistency allowance).\n- **Pagination** reuses the container model (page URIs in `Link` headers; synthetic `ContainerPage`).\n- Type/relation membership MAY be **eventually consistent** after writes (no read-your-writes).\n\n## How this differs from JSS today\n\nJSS currently follows the **classic client-maintained** TypeIndex (a `publicTypeIndex` RDF doc of `solid:TypeRegistration` the *client* reads/writes). Note #215 already removes auto-creating `preferences/typeIndex` at pod creation — so dropping the client-doc-by-default is consistent with moving toward a server-managed index.\n\nThe LWS model is the opposite end: the **server** indexes by type (from `Link rel=type` + intrinsic state) and answers **queries** returning actual URIs, auth-filtered. So it's a new server capability, not a tweak to the existing doc handling.\n\n## Implementation sketch (when/if we align)\n\n- Advertise `TypeIndexService` / `TypeSearchService` entries in the storage description.\n- On write (PUT/POST/PATCH), capture `Link; rel=\"type\"` headers + intrinsic class; maintain a per-storage index (type -> resource URIs).\n- `GET index` -> paginated distinct types (auth-filtered).\n- `GET/POST search` -> CNF filter over `type` (+ optionally other descriptive relations), returning a paginated `ContainerPage` of `{id,type}` items, auth-filtered.\n- Reuse existing container pagination; allow bounded eventual consistency on derivation only.\n\n## Consumer interest\n\nThe `solid-apps` desktops + hub panes would use `TypeSearchService` for \"open all `schema:Event`\" type queries (today they walk containers). Forward-compat we can adopt now on the client side: emit `Link: \u003ctype>; rel=\"type\"` on writes so resources become indexable the moment a server implements this (servers ignore unknown Link rels).\n\n## Status\n\nOpen PR, not merged, may change — this is **align-when-it-stabilizes** tracking, not an immediate ask. Related LWS-alignment issues: #87, #89, #319, #386, #215.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-29T20:32:55Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/535"}
| 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:aae20241-b812-0a97-56e0-8e27910ddcc3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 835C:1F87:4BCC529:5F60B47:6B037D45 |
| html-safe-nonce | 8acf5f2bf8dd796a80e93a7a28af617c288a2b9ed69f85981ca270993b8fedc1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzVDOjFGODc6NEJDQzUyOTo1RjYwQjQ3OjZCMDM3RDQ1IiwidmlzaXRvcl9pZCI6IjU0MDIyNDYxODQ5NDc2NDU3NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6b174506602b923b38a8157bd91c4a9076297a1f49ef8951454a0b4741ff585a |
| hovercard-subject-tag | issue:4551449400 |
| 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/535/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0f4049d3ef38ddafb98a766b1699ec0959a72ef7751b8029f091269df55ebac6/JavaScriptSolidServer/JavaScriptSolidServer/issues/535 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f4049d3ef38ddafb98a766b1699ec0959a72ef7751b8029f091269df55ebac6/JavaScriptSolidServer/JavaScriptSolidServer/issues/535 |
| og:image:alt | Tracking issue to evaluate / align JSS with the server-managed Type Index just proposed for the LWS Discovery spec. PR: w3c/lws-protocol#115 (add Type Index Section, open) Preview: https://pr-previ... |
| 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