AI Focus

<web-island> multi-origin host shell

Portals and conversational shells often need live interactive widgets from separate third-party sites without giving those widgets access to host DOM, cookies, or unapproved actions. This lab demonstrates /.well-known/web-island.json discovery, MessageChannel theme and size syncing, explicit <dialog> batch approval, and signed ECDSA hold receipts across three isolated widget origins.

Hypothesis

Combining /.well-known/web-island.json discovery, sandbox="allow-scripts", MessageChannel theme/size negotiation, explicit <dialog> batch confirmation, and ECDSA receipts enables multi-origin UI composition without granting widgets ambient host authority.

What confirms it: Three separate island workers synchronize styling tokens and resize geometry via ResizeObserver over isolated channels, require explicit <dialog> approval for batched WebMCP calls, and verify signed ECDSA hold receipts.

What falsifies or bounds it: Intrinsic sizing latency (ResizeObserver ping-pong) or multi-step authentication flows degrade cleanly below usability inside double-isolated frames.

Multi-origin compositor discovering /.well-known/web-island.json manifests, negotiating allowlisted styling and ResizeObserver sizing, and routing WebMCP tool invocations across three distinct origins. Open <web-island> multi-origin host shell full screen ↗

What this lab tests

How does a browser portal or conversational shell compose multiple independent interactive widgets from different origins without surrendering host DOM access or losing origin authentication?

Web Island Host Shell (GitHub) discovers /.well-known/web-island.json manifests for three isolated widgets (seats, budget, calendar), mounts each as a <web-island> custom element enclosing sandbox="allow-scripts", synchronizes design tokens and intrinsic height over MessageChannel + ResizeObserver, enforces hub-and-spoke routing, gates batched WebMCP calls behind a <dialog> confirmation modal, and verifies ECDSA P-256 hold receipts.

Open questions

  • How should allowlisted CSS custom property negotiation avoid palette spoofing or UI redressing attacks inside an island?
  • Can browsers make MessageChannel + ResizeObserver sizing a declarative attribute on a native <web-island> element?

Iteration log

  • — Deployed 3 isolated widget workers (seats, budget, calendar), .well-known/web-island.json discovery, Invoker <dialog> batch gate, and ECDSA hold verification.
  • — Moved island scripts/CSS out of inline tags, added live handshake/resize telemetry, real peer-isolation + ECDSA tamper probes, CSP-safe DOM syntax highlighting, and no-cache Worker-routed asset headers for 700px embeds.

Primitives tested: Custom Elements v1, <iframe sandbox>, MessageChannel, /.well-known/web-island.json, CSS Custom Properties, WebMCP.

This is an active lab under /labs/ and stays off the main RSS feed until graduated into a full essay.

More in post-<a> hypermedia & composable islands

Connected labs

← post-<a> hypermedia & composable islands · All labs