R_REDDYX.XYZ
DevToolsTypeScript★ 519⑂ 36 forksMIT

berkantay/gpucanvas

GPUCANVAS: THOUSANDS OF LIVE DOM NODES ON GPU

Library renders thousands of live DOM elements on an infinite canvas via WebGPU. Editor, shaders, and AI agent work with them directly.

// KEY FEATURES

  • 5000+ React screens in single WebGPU instanced pass
  • Editor: select, move, resize with snapping guides
  • WGSL shaders on live components: glass, frost, glitch
  • Agent view: JSON tree + region image for AI

// DEEP DIVE: HOW IT WORKS

gpucanvas moves DOM rendering to WebGPU: each node remains a real element with events, React state, and accessibility, while GPU draws them in an instanced pass. Pan and zoom never touch DOM — camera moves in shader, so 5000 screens hit 60 FPS on MacBook Pro.

Inside: editor with double-click to dive layers, snapping guides, dissolve/wipe/fade transitions on GPU, snapshots with pixel diffs and history, marks (arrows, pins, cursors). Agent view returns compact JSON tree of visible nodes with ids and screenshot of any region — handy for LLM agents that must "see" the UI and click.

Requires Chrome 157+ with HTML-in-Canvas flag (on by default) and WebGPU. On Firefox, Safari, iOS, and older Chrome falls back to DOM (1000 screens desktop, 250 mobile). API unstable (v0.4). Install: npm i gpucanvas, import from gpucanvas/react.

// USE CASES

Best for: frontend developers building infinite canvases, prototypes, and AI interfaces

  • Build infinite dashboards with thousands of live widgets
  • Create clickable prototypes with GPU transitions and shaders
  • Give AI agent visual UI context via Agent view

// QUICK START

npm install gpucanvas
import { GpuCanvas, CanvasNode } from 'gpucanvas/react'

Commands are taken from the repository README — check the current version on GitHub before running.

#ai-agents#canvas#design-tools#editor#html-in-canvas#infinite-canvas#react#shaders#transitions#typescript#webgpu#wgsl
Open on GitHub →

New repositories every 30 minutes

REDDYX AI scans GitHub 24/7 and ships the best AI/ML/Web3 projects to Telegram.

Join on Telegram
← Full catalog·Full index

// SIMILAR REPOSITORIES

OLD PHONE INTO PC CONTROL PANEL★ 635OPINIONATED LIST OF CODE QUALITY TOOLS★ 384ANIMATED LINE-ART SVG COMPONENTS★ 759OPEN-SOURCE DASHBOARDS FROM NATURAL LANGUAGE★ 246ANDROID TV DEBLOAT AND LAUNCHER★ 821SVG ANIMATION SKILL FOR CLAUDE CODE★ 837

← FULL CATALOG

berkantay/gpucanvas — Gpucanvas: Thousands OF Live Dom Nodes…