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
Curated web-host pane surface (bd-zpnp5).
pane_keyboard
Web pane keyboard bindings + roving tabindex and ARIA semantics (bd-21pbi.3).
pane_pointer_capture
Deterministic web pointer-capture adapter for pane drag/resize interactions.
release_readiness
FrankenTermJS release-readiness program (bd-2vr05.12).
runtime_options
Runtime option and theming mutation API with atomic validation (bd-2vr05.13.5).
sdk_adapter
First-party integration adapters for the FrankenTermJS SDK (bd-2vr05.9.3).
sdk_event_model
Typed host-event and error model for the FrankenTermJS SDK, with a TypeScript-definition generator kept in lockstep (bd-2vr05.9.2).
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.
WebInputLimit
Resource bound enforced by the host-driven input queue.