Spec coverage

The clients track the W3C Linked Web Storage Working Group drafts as of 9 November 2026: w3c/lws-protocol@db64f56, published as the Working Draft of 9 November 2026. Since the 19 October baseline, a create in a container that does not exist is the target not found outcome (404), the status table maps the three refusals to 401, 403 and 404 with optional problem details, and a server may answer 404 for 403; the clients already behaved so. Since the 5 October baseline before it, a 401 leads to the authorization server through protected resource metadata (RFC 9728), only application/lws+json is a required container media type, and resources move between containers.

Documents

DocumentStatus at baselineCoverage
Linked Web Storage Protocol 1.0 (core)Working Draft 2026-11-09Full client side
LWS VocabularyGroup Note Draft (vocabulary unchanged since 2026-10-19)Constants for all terms
Authentication Suite: OpenID ConnectWorking Draft 2026-10-15OpenIdCredentials
Authentication Suite: SAML 2.0Working Draft 2026-11-09SamlCredentials
Authentication Suite: Self-signed Identity using Controlled IdentifiersWorking Draft 2026-10-15SelfSignedCredentials (ES256, EdDSA) and CID document helpers
Authentication Suite: did:keyDiscontinued, subsumed by the CID suitedid:key identities via SelfSignedCredentials.didKey
Notification Suite: WebhooksEditor's DraftSubscribe, list, cancel, and verify signed deliveries
Search and Type Index ServicesEditor's DraftType index, type search (QUERY), Accept-Query discovery

Feature matrix

All ten clients implement the same feature set. Language-specific differences are listed under each language guide.

FeatureSpec sectionJavaJS/TSC++RustGoPythonC#SwiftPHPKotlin
Storage discovery (rel=lws#storage) and storage descriptioncore §Discovery✓✓✓✓✓✓✓✓✓✓
Read / HEAD / range / conditional requestscore §Read resource✓✓✓✓✓✓✓✓✓✓
Create data resources and containers (Slug, user links)core §Create resource✓✓✓✓✓✓✓✓✓✓
Replace (PUT) with If-Match; Prefer: set-linksetcore §Update resource✓✓✓✓✓✓✓✓✓✓
JSON Patch (PATCH) and arbitrary advertised patch formatscore §Update resource✓✓✓✓✓✓✓✓✓✓
Delete, recursive delete (Depth: infinity)core §Delete resource✓✓✓✓✓✓✓✓✓✓
Container listing and lazy paginationcore §Containers, §Pagination✓✓✓✓✓✓✓✓✓✓
Linkset read / replace / patchcore §Metadata✓✓✓✓✓✓✓✓✓✓
Moving resources (MoveResource capability, up link patch)core §Moving Resources✓✓✓✓✓✓✓✓✓✓
401 challenge → protected resource metadata → discovery checks → AS metadata → token exchange → retrycore §Authorization✓✓✓✓✓✓✓✓✓✓
OpenID Connect, SAML 2.0, self-signed (CID, did:key) credentialsauthn suites✓✓✓✓✓✓✓✓✓✓
Webhook subscriptionscore §Notifications, webhook suite✓✓✓✓✓✓✓✓✓✓
RFC 9421 webhook signature verificationwebhook suite §Authentication✓✓✓✓✓✓✓✓✓✓
Access requests and grants (ODRL access profile)core §Access Requests and Grants✓✓✓✓✓✓✓✓✓✓
Type index, type search with QUERYindex✓✓✓✓✓✓✓✓✓✓
RFC 9457 problem details in errorscore §REST binding✓✓✓✓✓✓✓✓✓✓

C# specifics The C# client gets Ed25519 (EdDSA) from BouncyCastle.Cryptography, because .NET 10 has none; everything else uses the BCL (ECDsa, SHA256/SHA512, HttpClient, System.Text.Json). Its 501 exception is HttpNotImplementedException, so that it never clashes with System.NotImplementedException. A subscription's URL (the contract's subscription) is Subscription.Url. See the C# guide.

Swift specifics The Swift client gets its keys and signatures (P-256, P-384, Ed25519) and digests from swift-crypto, which is CryptoKit on Apple platforms, and its HTTP from URLSession (FoundationNetworking on Linux). Bodies are Data, so it has no streaming read or upload. Its errors are the cases of one LWSError enum. See the Swift guide.

PHP specifics The PHP client needs only the extensions most PHP builds bundle: ext-curl for HTTP (or any PSR-18 client through Psr18Transport), ext-openssl for P-256 and P-384 ECDSA, ext-sodium for Ed25519. Calls are synchronous, and bodies are strings, so it has no streaming read or upload. The contract's Resource is ReadResult, as resource is soft-reserved in PHP, and a subscription's URL is Subscription::$url. See the PHP guide.

Kotlin specifics The Kotlin client runs on the JDK alone, beside kotlinx-coroutines and kotlinx-serialization-json: java.net.http.HttpClient for HTTP, the JDK's providers for P-256 (SHA256withECDSAinP1363Format) and Ed25519. Operations are suspend functions and listings cold Flows; bodies are byte arrays, so it has no streaming read or upload. Its package is com.ebremer.lws.kotlin, beside the Java client's com.ebremer.lws, and a subscription's URL is Subscription.url. See the Kotlin guide.

Interpretation decisions

The drafts are still evolving. Where they leave something open, the clients behave as follows, and behave identically in every language.

Identity hint on create → Slug
The core draft defines an optional identity hint for create but does not bind it to a header. The clients send Slug (RFC 5023 §9.7), as Solid servers expect, percent-encoding non-ASCII characters.
Discovery checks
Same scheme and authority means the scheme and host compared case-insensitively and the port after defaults. The protected resource metadata's resource must be the URL requested exactly, after only that normalisation: no trailing-slash or percent-encoding leniency. None of the discovery requests follows a redirect. Storage descriptions read for the check are cached.
Where a token goes
A token is for a storage, which is no path prefix in general. The clients send a cached token ahead to URLs inside the storage's URL or its root, each taken as a directory: same scheme, host and port, and a path equal to it or below it at a / boundary. Anywhere else they wait for a 401: the retry of a request that has just passed the checks carries the token, and later ones reuse it after their own checks, with no new token request.
A 401 that fails a check
Gets no token request, and the token the request carried is kept: a storage may hold a resource whose 401 links to another storage.
Challenges of earlier drafts
A Bearer challenge with as_uri and realm and no resource_metadata is still followed: the URL must be inside the realm (same scheme, host and port, and a path equal to the realm path or below it at a / boundary, so /storage_10/x is not inside realm /storage_1), which is then the token's resource and scope.
Authorization server metadata location
/.well-known/lws-configuration is resolved with RFC 8414 §3.1 path insertion, so issuers with a path work. The issuer in the metadata must equal the authorization server the protected resource metadata named (the first that passes the HTTPS check and your filter).
Container media types
The clients ask for application/lws+json, the one a server must honour, and read an application/ld+json or application/json answer as the same document, a leniency towards servers of earlier drafts. They do not parse RDF.
Moves
move reads the linkset, then patches it with a test and a replace of the up link's href, conditional on the linkset's ETag. It takes the resource's identifier after the move from the answer: the anchor of a 200's linkset, else the URL it had. Whether a storage allows moves is the application's to check, with moveCapability().
Transport security for tokens
Authorization servers and token endpoints must use HTTPS, except on loopback hosts or when explicitly allowed for testing.
Token lifetime
Taken from expires_in, else from the access token's exp claim, else 300 s. Tokens are refreshed 30 s before expiry and re-acquired once on 401 invalid_token.
Self-signed JWTs
kid is always included (for did:key: did:key:z…#z…), aud is the authorization server's issuer, the lifetime defaults to 300 s, and jti is a random UUID.
Webhook verification strictness
The signing key must be referenced from the storage description's authentication relationship. The notification's storage must equal the storage named by the keyid. created must fall within a 300 s window.
Type matching
Container, lws:Container and https://www.w3.org/ns/lws#Container are treated as the same type. Models keep the raw values for lossless round-trips.
Relative URLs
Servers may return relative ids, Location headers and link targets. The clients always resolve them and only ever return absolute URLs.

Tracking the drafts Spec changes are tracked against the w3c/lws-protocol repository. The shared conformance fixtures are updated first, then each client.