swift-web / WEB / SSR / WASM

Arrive first. Interact where it matters.

Readable HTML first. Add Swift client components where interaction is needed.

Reading need not wait for the runtime.

SSR (server-side rendering) delivers HTML; only interactive ClientComponents opt into WASM (WebAssembly) hydration, following an islands-style architecture. Content delivery and interaction remain separate instead of requiring the entire page to execute on the client. Routes, pages and client components are authored in Swift while preserving the web document model.

Read the source · README.md ↗
01

Behind the experience

This projectConsuming app / personExternal technology
Data / executionOptional path

Select a node to read its role.

Consuming app / personScene / Page

Declare pages and routes

  • Scene / Page→HTMLDocumentData / execution
  • HTMLDocument→Browser / HTMLData / execution
  • Scene / Page→ClientComponentOptional path
  • ClientComponent→Browser / HTMLOptional path

Scenes and page routes produce server HTML. Selected ClientComponents hydrate through WASM on a separate optional branch.

02

Reading can begin before interaction is ready.

Deliver readable content separately from interactive features. Developers can add interaction where it is needed, without making every client component a prerequisite for reading.

A ceramics shop owner warmly hands an order to a customer.

An AI-generated imagined use scenario, not an actual customer or product screen.

Explore more work →