Expand description
ftui-web provides a WASM-friendly backend implementation for FrankenTUI.
Design goals:
- Host-driven I/O: the embedding environment (JS) pushes input events and size changes.
- Deterministic time: the host advances a monotonic clock explicitly.
- No blocking / no threads: suitable for
wasm32-unknown-unknown.
This crate intentionally does not bind to wasm-bindgen yet. The primary
purpose is to provide backend building blocks that frankenterm-web can
wrap with a stable JS API.
Modules§
- pane_
pointer_ capture - Deterministic web pointer-capture adapter for pane drag/resize interactions.
- session_
record - Deterministic session recording and replay for WASM (bd-lff4p.3.7).
- step_
program - Step-based WASM program runner for FrankenTUI.
Structs§
- Deterministic
Clock - Deterministic monotonic clock controlled by the host.
- WebBackend
- A minimal, host-driven WASM backend.
- WebEvent
Source - Host-driven event source for WASM.
- WebFlat
Patch Batch - Compact, flat patch payload for JS/WASM transport.
- WebOutputs
- Captured presentation outputs for host consumption.
- WebPatch
Cell - One GPU patch cell payload (
bg,fg,glyph,attrs) matching thefrankenterm-webapplyPatchschema. - WebPatch
Run - One contiguous run of changed cells starting at linear
offset. - WebPatch
Stats - Aggregate patch-upload stats for host instrumentation and JSONL reporting.
- WebPresenter
- WASM presenter that captures buffers and logs for the host.
Enums§
- WebBackend
Error - Web backend error type.