Menu

1 / 2

gpucanvas: 5,000 Live React Screens on a WebGPU Infinite Canvas

DEV Community: react·Berkant·4 days ago
#501h8ZqC
#devtoreact#devto#dev#canvas#gpucanvas
Long article (1745 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published on berkant.me .

gpucanvas is an open-source TypeScript library that puts thousands of live DOM nodes on an infinite canvas. The GPU draws them. An editor selects, moves and resizes them. WGSL shaders and transitions run on them. An AI agent can read them and point at them.

The nodes stay real DOM. React state, events, CSS and accessibility work as usual. Click a screen and type into it: the click and the keystrokes go to the real element.

The same session on both sides: 5,000 live React screens, the same camera path, a message typed and sent. Left, plain DOM under a CSS transform. Right, gpucanvas. Chrome on a MacBook Pro, frame rates measured live. Watch the video on berkant.me .

In the 30-second benchmark tour at 5,000 screens, gpucanvas runs at 113 to 115 fps and plain DOM at 18 to 20 fps .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.