sigil-web-client
Client-side WASM UI framework for Sigil: react-like browser app rendering
❦Report a bug or suggest a featuresigil-web-client
Client-side WASM UI framework for Sigil. A react-like rendering layer for browser applications compiled to WebAssembly: it renders Sigil SXML into the browser DOM and keeps application code independent of the underlying WASM DOM bridge.
(sigil web client) is the browser-side counterpart to the server-side sigil-web framework. The two are orthogonal: this library imports only sigil-wasm-dom and shares no code with the server-side modules.
Usage
(import (sigil web client))
;; Look up a DOM root by selector
(define root (web-client-root "#app"))
;; Mount a view: SXML, or a nullary procedure returning SXML
(web-client-mount root (lambda () `(div "Hello, world!")))
;; Update the mounted view in place
(web-client-update root (lambda () `(div "Updated!")))
;; Clear a root
(web-client-clear root)Exports
web-client-root— look up a DOM root node by selectorweb-client-root?— validate a root node handleweb-client-render— render a view (an SXML value, or a nullary procedure returning one)web-client-mount— mount a view into a rootweb-client-update— update a mounted view in placeweb-client-clear— clear a rootweb-client-reset!— reset retained client state
Building
This is a browser/WASM library. Build it into a web application with the web config:
sigil deps install
sigil build --config webLicense
BSD-3-Clause
$ git clone https://codeberg.org/sigil/sigil-web-client
v0.15.3 — latest by version, released 17 Jul 2026
All releases — 4 tags in this repository.
One page per file, and every line has a permalink.
306dab29
04c8d594
The last 20 commits keep a page here. Everything older lives in the clone.