René's URL Explorer Experiment


Title: LWS Protocol Mode Support (Draft/Future) · Issue #87 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: LWS Protocol Mode Support (Draft/Future) · Issue #87 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: LWS Protocol Mode Support (Draft/Future) · Issue #87 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Summary Add optional --lws-mode flag to support W3C Linked Web Storage (LWS) protocol semantics alongside the current Solid Protocol/LDP implementation. Status: 📋 Draft/Exploratory - LWS spec is in early stages (PR #37 just merged Jan 20...

Open Graph Description: Summary Add optional --lws-mode flag to support W3C Linked Web Storage (LWS) protocol semantics alongside the current Solid Protocol/LDP implementation. Status: 📋 Draft/Exploratory - LWS spec is in...

X Description: Summary Add optional --lws-mode flag to support W3C Linked Web Storage (LWS) protocol semantics alongside the current Solid Protocol/LDP implementation. Status: 📋 Draft/Exploratory - LWS spec is in...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/87

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LWS Protocol Mode Support (Draft/Future)","articleBody":"## Summary\n\nAdd optional `--lws-mode` flag to support W3C Linked Web Storage (LWS) protocol semantics alongside the current Solid Protocol/LDP implementation.\n\n**Status:** 📋 Draft/Exploratory - LWS spec is in early stages (PR #37 just merged Jan 2026)\n**Priority:** Low (monitor ecosystem first)\n**Related:** https://github.com/w3c/lws-protocol/pull/37\n\n## Background\n\n### What is LWS?\n\nThe W3C Linked Web Storage protocol suite defines CRUD operations with different conventions than Solid/LDP:\n\n- **POST for creation** (server-assigned URIs with Slug hints)\n- **PUT for updates only** (not creation)\n- **Link headers for metadata** (removes slash semantics for containers)\n- **Mandatory ETag concurrency control**\n- **JSON Merge Patch for metadata updates** (via separate linkset resources)\n\n### Current State: LDP/Solid\n\nJSS implements Solid Protocol conventions based on LDP:\n\n- ✅ PUT creates **or** updates resources\n- ✅ Trailing slash indicates containers\n- ✅ POST to containers with Slug support\n- ✅ ETag-based If-Match/If-None-Match\n- ✅ N3 Patch and SPARQL Update for RDF modifications\n\n## Key Differences\n\n| Aspect | Solid/LDP (Current) | LWS Protocol (Proposed) |\n|--------|---------------------|-------------------------|\n| **Resource Creation** | PUT or POST | POST only |\n| **PUT Semantics** | Create or update | Update only (404 if not exists) |\n| **Container Detection** | Trailing slash (`/alice/`) | Link header: `rel=\"type\"` |\n| **Metadata Updates** | N3 Patch, SPARQL Update | JSON Merge Patch on linkset |\n| **Concurrency Control** | Optional ETag | Mandatory ETag |\n| **Slash Semantics** | Standard (containers end with `/`) | Removed (header-based only) |\n\n## Proposed Implementation\n\n### Configuration Flag\n\n```bash\n# LWS mode\njss start --lws-mode\n\n# Solid/LDP mode (default, current behavior)\njss start\n```\n\n### Code Changes Required\n\n#### 1. PUT Handler Split (src/handlers/resource.js)\n**Effort:** 3 hours\n\n```javascript\nexport async function handlePut(request, reply) {\n  const lwsMode = request.lwsMode || false;\n  \n  if (lwsMode) {\n    // LWS: PUT only for updates\n    const stats = await storage.stat(storagePath);\n    if (\\!stats) {\n      return reply.code(404).send({\n        error: 'Use POST to create resources in LWS mode'\n      });\n    }\n  } else {\n    // LDP: PUT creates or updates (current)\n    const existed = stats \\!== null;\n  }\n}\n```\n\n#### 2. Container Detection Toggle (src/utils/url.js)\n**Effort:** 4 hours\n\n```javascript\nexport function isContainer(urlPath, request) {\n  if (request?.lwsMode) {\n    // LWS: Check Link header for Container type\n    const linkHeader = request?.headers?.link || '';\n    return linkHeader.includes('ldp#Container');\n  } else {\n    // LDP: Trailing slash\n    return urlPath.endsWith('/');\n  }\n}\n```\n\n**Files affected:** src/utils/url.js, src/handlers/resource.js, src/handlers/container.js, src/ldp/headers.js\n\n#### 3. Linkset Metadata Endpoints (new)\n**Effort:** 8 hours\n\nNew file: `src/handlers/linkset.js`\n\n- `GET /resource;linkset` - Return metadata as JSON\n- `PATCH /resource;linkset` - JSON Merge Patch for user-managed metadata\n\n#### 4. Config Infrastructure\n**Effort:** 2 hours\n\nAdd `--lws-mode` flag to CLI and config system.\n\n#### 5. Testing Matrix\n**Effort:** 12 hours\n\nDuplicate all CRUD tests for LWS mode (223 tests × 2 modes = 446 tests total).\n\n## Complexity Assessment\n\n| Component | Effort | Files | Risk |\n|-----------|--------|-------|------|\n| Config flag | 2h | 3 | Low |\n| PUT behavior | 3h | 1 | Medium |\n| Container detection | 4h | 4 | High |\n| Linkset endpoints | 8h | 1 new | Medium |\n| Testing | 12h | All | High |\n| Documentation | 2h | 2 | Low |\n| **Total** | **~31 hours** | **~15** | **High** |\n\n## Trade-offs\n\n### Pros ✅\n\n- **Future-proof** if LWS gains adoption\n- **Universal server** supporting both protocols\n- **Research value** for evaluating LWS concepts\n- **Subdomain isolation** - run Solid + LWS pods on same server\n\n### Cons ❌\n\n- **Test burden** - doubles maintenance (446 tests)\n- **Code complexity** - branching logic throughout\n- **Premature** - LWS ecosystem is tiny (no known apps)\n- **Bug risk** - less-used mode more error-prone\n- **Documentation split** - user confusion\n\n## Decision Criteria\n\n**Do NOT implement until:**\n\n- ✅ At least **3 other servers** implement LWS\n- ✅ At least **5 client apps** request LWS support\n- ✅ W3C Solid CG shows **interest in LWS alignment**\n- ✅ LWS spec reaches **Candidate Recommendation** status\n\n## Monitor These Signals\n\n- [ ] Number of servers implementing LWS\n- [ ] Client apps using LWS endpoints\n- [ ] W3C Solid CG discussions about LWS\n- [ ] LWS spec maturity (currently early draft)\n\n## Alternative: Plugin Architecture\n\nInstead of core branching, design protocol adapters:\n\n```bash\njss start --protocol=lws      # LWS semantics\njss start --protocol=solid    # LDP semantics (default)\njss start --protocol=s3       # Future: S3-compatible\n```\n\nBenefits:\n- Clean core implementation\n- Community experimentation\n- No test matrix explosion\n\n## Current LWS Ecosystem (Jan 2026)\n\n- **Servers:** Unknown\n- **Clients:** Likely zero\n- **Spec status:** Early draft (PR #37 just merged)\n- **Community:** Small W3C working group\n\n## Recommendation\n\n**Priority: Low - Monitor but don't implement**\n\n**Timeline:**\n- **Now:** Capture this analysis\n- **Q2 2026:** Survey LWS ecosystem adoption\n- **Q4 2026:** Reassess if signals show traction\n- **2027+:** Implement if ecosystem warrants\n\n**Keep focus on:**\n- ✅ did:key authentication (#86) - adds capability without breaking changes\n- ✅ Solid Protocol improvements - serve existing ecosystem\n- ✅ Performance and stability - core value\n\n## References\n\n- [W3C LWS Protocol PR #37](https://github.com/w3c/lws-protocol/pull/37)\n- [W3C LWS Protocol Repo](https://github.com/w3c/lws-protocol)\n- [LDP Specification](https://www.w3.org/TR/ldp/)\n- [Solid Protocol](https://solidproject.org/TR/protocol)","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-01-14T14:41:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/87/JavaScriptSolidServer/issues/87"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5d97f6bf-ec89-b2b1-9e8a-25de7dd4c7f6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC2A6:1B8E26:B58C72D:EBC37C0:69768DB1
html-safe-nonce00b3861b4094452f1f8c898173593e76c4c4dcbc772a4b7497edb6a503440932
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkE2OjFCOEUyNjpCNThDNzJEOkVCQzM3QzA6Njk3NjhEQjEiLCJ2aXNpdG9yX2lkIjoiMjU3NDcxNjczODMzMDg1Njg4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf1a8b1f70b0c65b93742ae7c2309f117ba8390c3af866362855c4ea1f76b1919
hovercard-subject-tagissue:3813503606
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/87/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d5a81b02381e96d01bb999b5f156c7d38d72b37be287963ce23d0de33467eaf8/JavaScriptSolidServer/JavaScriptSolidServer/issues/87
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d5a81b02381e96d01bb999b5f156c7d38d72b37be287963ce23d0de33467eaf8/JavaScriptSolidServer/JavaScriptSolidServer/issues/87
og:image:altSummary Add optional --lws-mode flag to support W3C Linked Web Storage (LWS) protocol semantics alongside the current Solid Protocol/LDP implementation. Status: 📋 Draft/Exploratory - LWS spec is in...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemelvincarvalho
hostnamegithub.com
expected-hostnamegithub.com
None032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411
turbo-cache-controlno-preview
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5b577f6be6482e336e3c30e8daefa30144947b17
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/87#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F87
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F87
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/87
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/87
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/87
JavaScriptSolidServer https://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Notifications https://github.com/login?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer
Fork 4 https://github.com/login?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer
Star 4 https://github.com/login?return_to=%2FJavaScriptSolidServer%2FJavaScriptSolidServer
Code https://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues 59 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests 6 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actions https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projects 0 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security 0 https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insights https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulse
Code https://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actions https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projects https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insights https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulse
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/87
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/87
LWS Protocol Mode Support (Draft/Future)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/87#top
enhancementNew feature or requesthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/melvincarvalho
https://github.com/melvincarvalho
melvincarvalhohttps://github.com/melvincarvalho
on Jan 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/87#issue-3813503606
#37https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/37
w3c/lws-protocol#37https://github.com/w3c/lws-protocol/pull/37
Login with did:nostr #37https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/37
Support did:key Authentication (LWS10 Spec) #86https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/86
W3C LWS Protocol PR #37https://github.com/w3c/lws-protocol/pull/37
W3C LWS Protocol Repohttps://github.com/w3c/lws-protocol
LDP Specificationhttps://www.w3.org/TR/ldp/
Solid Protocolhttps://solidproject.org/TR/protocol
enhancementNew feature or requesthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.