Skip to main content

Crate ftui_web

Crate ftui_web 

Source
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§

DeterministicClock
Deterministic monotonic clock controlled by the host.
WebBackend
A minimal, host-driven WASM backend.
WebEventSource
Host-driven event source for WASM.
WebFlatPatchBatch
Compact, flat patch payload for JS/WASM transport.
WebOutputs
Captured presentation outputs for host consumption.
WebPatchCell
One GPU patch cell payload (bg, fg, glyph, attrs) matching the frankenterm-web applyPatch schema.
WebPatchRun
One contiguous run of changed cells starting at linear offset.
WebPatchStats
Aggregate patch-upload stats for host instrumentation and JSONL reporting.
WebPresenter
WASM presenter that captures buffers and logs for the host.

Enums§

WebBackendError
Web backend error type.