Search page titles, headings and text across the docs.

Rust crates

canvist_canvas_wasm

canvist’s canvas in the browser.

  • App wires a canvist_canvas::Canvas to a canvist_collab::SceneBinding, and opens text frames in a TextSession on the real canvist text editor. It has no browser dependencies, so it is tested natively (cargo test -p canvist_canvas_wasm).
  • CanvasApp (wasm only) puts an App on a <canvas>. It renders with vello on WebGPU where the browser supports it, and otherwise with vello_cpu and putImageData.

The demo scene is src/demo.json, written in the nested scene JSON format. Every peer builds it under one reserved client id, so every tab starts from the same shared state.

Build it with deno task build in packages/canvist-canvas, which wraps it in a typed mountCanvas and runs the demo.

Docs