Tool Open source

gpucanvas

gpucanvas is a TypeScript and React library for placing live DOM or React nodes on an infinite canvas rendered with WebGPU. It packs node snapshots into texture-array atlas pages, parks rendered pages with content-visibility, and draws visible nodes with instanced GPU quads while pan and zoom leave the DOM unchanged; the real elements continue to receive input, maintain state, and support CSS and accessibility. It includes an editor for selecting, drilling into, moving, resizing, and snapping nodes or elements; WGSL shader effects and transitions such as glass, frost, glitch, dissolve, wipe, and fade; snapshots, image diffs, and filmstrips; and marks including arrows, pins, notes, and cursors. Its agent-view API exposes the visible canvas as a JSON tree with element identifiers, roles, text, and rectangles, and can capture elements or regions as images. The package is installed from npm and provides a React API including GpuCanvas and CanvasNode. It uses WebGPU and HTML-in-Canvas where available and falls back to a CSS-transformed DOM container elsewhere; the repository describes the project as early and subject to API changes.

View repository Visit site Mentioned in 1 video ↓

What gpucanvas is used for

1 use taken from transcripts — each links to the moment in the video.

  • A TypeScript and React library that puts thousands of live DOM nodes on an infinite canvas drawn by WebGPU in a single instance pass. Pan and zoom never touch the DOM yet nodes stay live for input, state and accessibility, with WGSL shader effects like glass, frost or glitch and a JSON view of the screen for agents.

Videos mentioning gpucanvas

1 in the library.