Skip to content

WebAssembly Views

Caliper's own view layer, compiled to WebAssembly and drawn through WebGPU, draws every live view kind in the browser behind the caliper-view element.

Field Value
ID EMB-04
Status Shipped
Scope Core
Pillar Web and Embedding
Sprint None
Depends On Browser Elements (EMB-05)
Unblocks Points in the Browser (EMB-02)
Whole Interface in a Browser (EMB-10)
Embedding in Web Pages (EMB-13)
Clipboard and Multi-Touch in the Browser (EMB-19)
More Browsers Tested (EMB-20)
Dashboard Viewer Parity (EMB-30)
Fast Paths in the Documented Setup (PLT-18)
Release Workflow (PLT-19)
WebGPU Backend of the Graphics Layer (REN-13)
WebGPU Renderer for Browser Views (REN-69)
Docs Network Streaming, Calls and Transports
Branches None
Design Streaming and embedding, The web viewer

Coverage Ledger

  • Branch sprint2-nbfix, 0 commits that main lacks (9 ahead of the merge base). Work on notebook guide fixes for the WebAssembly views, which reached main through a pull request (patch ids and subjects match).
  • Branch sprint2-wasmci, 0 commits that main lacks (15 ahead of the merge base). Work on building and fetching the WebAssembly views in CI, which reached main through a pull request (patch ids and subjects match).
  • Branch sprint2-webci, 0 commits that main lacks (3 ahead of the merge base). Work on browser tests that tolerate a transient drawn state, which reached main through a pull request (patch ids and subjects match).
  • Branch sprint4-integ3, 82cc4160, 12910c3f, b004c31b, d7a0c19c, a6fe68f2, b56fa3d3, 9b4e0b50. The WebGPU backend of the graphics layer on webgpu.h, with the browser views drawing their resources through the layer, a validation error scope per submit and a self-test in the page.
  • Branch sprint4-integ3, 8343711b, d6546edd, 3b1b0cb6, e33eadb3. Step 9, the TypeScript WebGPU views removed, so that the WebAssembly views are the browser's one WebGPU path.
  • design/builder-overview.md, under Next. The documented setup builds the native sender and the WebAssembly views.
  • design/roadmap.md, under Streaming and embedding. Built so far: embedding package, network streaming over protocol v3 with data views, caliper.serve(), notebook widgets, 3.1 controls, app and viewer attach by link, hub, browser views.
  • design/roadmap.md, under Streaming and embedding. Still to do 2.1: a CI job for the browser module's checks.
  • design/streaming-and-embedding.md, under The web viewer. The web viewer is the live views, ImGui, ImPlot and ImPlot3D compiled to WebAssembly and drawn by a WebGPU backend behind HostRenderer.
  • design/streaming-and-embedding.md, under The web viewer. Order 1, done: Caliper's real views in notebooks and browsers for every live view kind.
  • design/streaming-and-embedding.md, under The web viewer. Smaller steps: a CI job that runs the module's checks on SwiftShader.
  • design/streaming-and-embedding.md, under Limits in the browser. The WebGPU binding moves with Emscripten, whose emdawnwebgpu port changes between releases.
  • design/web-geometry.md on the branch sprint4, under What is built and what is planned. Nothing on the page is built; the built pieces on the sprint2 branch are the web viewer module, the heatmap colormap in WGSL, and points on the geometry path.
  • design/windows-parity.md on the branch sprint4-pr1-main2, under 5. The web viewer and notebooks. The WebAssembly build of the web viewer on Windows, whose build script is bash (1 day).
  • Browser Elements, <caliper-view>. The caliper-view element draws one live view of a stream, with a renderer attribute of auto, wasm or ts.
  • Network Streaming. Network streaming with one set of calls over three transports.
  • Rendering, WebGPU Backend. The WebGPU renderer draws the browser views with a WGSL colormap pass and instanced quads for points.
  • Pull request #14. Pull request 14 (merged) delivers sprint 2: wire protocol v3 and 3.1, Caliper LIB serving, data views, browser views, the hub, the app attaching to a stream, interactive controls, Caliper API v0, macOS 14 target and CI for the browser views.
  • Orchestrators' notes, sprint2/PR.md. Browser views: caliper-view and caliper-controls elements with WebAssembly views on WebGPU and TypeScript views on Canvas 2D.
  • Orchestrators' notes, sprint2/PR.md. Follow-up: the remaining differences between the two browser renderers, square against round points and a fixed range with equal ends.

Roadmap Graph Feature in Graph