Fitz LiveViews lets one component file compile to both SSR and WebAssembly targets
Fitz LiveViews is a UI framework where a single .fitzv file can be compiled into two distinct targets without any code changes. In server-side rendering (SSR) mode, the server manages state and streams HTML patches to the browser over a WebSocket, making it suitable for multi-user or database-driven applications. The same file can alternatively be compiled to WebAssembly, allowing the component to run entirely in the browser with no server or network round-trips required. A simple counter component demonstrates both approaches, with the SSR version requiring a small server setup and the WASM version needing only a build command and a host HTML page. The framework aims to eliminate the need for JavaScript build tooling or manual API definitions when building real-time UI components.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in