{"_id":"gpucanvas","_rev":"13-7593d8b5e21d605081d1b2757e5cd393","name":"gpucanvas","dist-tags":{"latest":"0.6.0"},"versions":{"0.0.0-stage":{"name":"gpucanvas","version":"0.0.0-stage","_id":"gpucanvas@0.0.0-stage","stub":true,"maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"dist":{"shasum":"617b2da310830709de5cfcb030b0cf3e1788b5fc","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-+Ge5QwsXUtBVZIA88B0gqiGDY3TzJ7l/t9X9NTzK0c9wNMbLiLQTqrMKkirm62w5lcS8lSrioLyJE/gNe0vIlg==","signatures":[{"sig":"MEYCIQDSVShbC+edQLu/zZEOjruXgS53BpYQHgpi+yjYPO5BegIhAItiUzNtIYkglYj2FAC+YOzR0tQmsyMiLJA1Tl0kVzCs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":331},"_npmUser":{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.1.0":{"name":"gpucanvas","version":"0.1.0","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools"],"author":{"name":"Berkant Ay"},"license":"MIT","_id":"gpucanvas@0.1.0","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"homepage":"https://github.com/berkantay/gpucanvas#readme","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"699913eab5f3357f11d60153f3e6056cbf9dce72","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.1.0.tgz","fileCount":12,"integrity":"sha512-mT8TPpKn5Tk6rM+o0VL7dBYVc3mH7qN9+/ZIU7ahQMZr/yYPXsxlxWJO9SUQYN+Wk37ARnBSFrc01GRtSHkDRA==","signatures":[{"sig":"MEQCIHH1W0hD/lYa4UGI0HkGN9NRmTyRlIkoKpcRknGnQN7kAiBjDePduBE1J293LyH1zszC7hADRsR1FAMmZzI+8wjGpA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDrGv+0yvUMR/ACo1+3v8xemP4P1pCEJ7c8hZm+zprsAwIgTKADpRYA56AS03tRPYETVx5ABtE9VZmh1Qmq242DAR4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":200169},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"deed37d2c0628c1cef0ce0f7dc316e28899250b0","scripts":{"dev":"vite demo","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"_npmUser":{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"},"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.7.0","description":"Put thousands of live DOM nodes on an infinite canvas and let the GPU pan and zoom them.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","react":"19.2.4","react-dom":"19.2.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gpucanvas_0.1.0_1794526989255_0.374553575630277","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"gpucanvas","version":"0.2.0","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools"],"author":{"name":"Berkant Ay"},"license":"MIT","_id":"gpucanvas@0.2.0","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"homepage":"https://github.com/berkantay/gpucanvas#readme","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"a816791d421dd4adfa77bd0a8c982bdb5a0e1fab","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.2.0.tgz","fileCount":12,"integrity":"sha512-TyVs6GBGTnvbZ16iJxL3NnVYmhZaXmTvMiFDC2XUO4dtlQ/6OMh9+bzFq2p0OzMIIOaHyRXGC0RjRSGw7ZcMcQ==","signatures":[{"sig":"MEUCIARkYLjTOua8gAdIYw1vXBcJJT20MdXb9KPmCnX7cdhgAiEAgXmCorF2sEU6Wub3ef2jtBxmMYG1JHW0Yly6K/LYpMY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIArpxChi11HBubN/YmlR/PjO/1DKd9CLgt+fOdAs2Sn0AiAfVMGTh1bmTkwdGVc/DNNkbt6NvjPIFaXhtAAPRk5PFg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":211048},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"4436057a05a83e3c68f5a1972a5aee5f8f85da02","scripts":{"dev":"vite demo","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"_npmUser":{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"},"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.7.0","description":"Put thousands of live DOM nodes on an infinite canvas and let the GPU pan and zoom them.","directories":{},"sideEffects":false,"_nodeVersion":"25.3.0","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","react":"19.2.4","react-dom":"19.2.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gpucanvas_0.2.0_1794566043314_0.5360395017551389","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"gpucanvas","version":"0.3.0","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools","editor","shaders","wgsl"],"author":{"name":"Berkant Ay"},"license":"MIT","_id":"gpucanvas@0.3.0","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"homepage":"https://github.com/berkantay/gpucanvas#readme","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"e5bab143abe837db5987537596419bd46bb3a511","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.3.0.tgz","fileCount":12,"integrity":"sha512-hv85TFmkknxSPt3drqODc8jQWMLd9m/JrlRU98fKq6XRwGHDrnbmSAmXNQIcXYV3Z1sq86wzD7ciW429YYvo0g==","signatures":[{"sig":"MEUCIQDhdT4aNtvt8t2aHYOv4CtBIBk44X8oU97V6wIGI+TD+AIgLDUabFsDm/zFE1a5dIsZWN90aFl6Emgz+ihztQSQUN8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCID19UkGDkWBvKsVphYaki+iXYdr1MgxDVhPsICRVEuZvAiEAkzx9G5aqf92iulp6fNvfJhE6/Uh1F1FMkvtNDvWXAqI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gpucanvas@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":390606},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"c8ee43046ff7fa9bccacaf02ec249772fee9633c","scripts":{"dev":"vite demo","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b4119637-b45b-4443-99fc-355a817cf0e6"}},"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.21.2","description":"Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, and shaders run on them.","directories":{},"sideEffects":false,"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","react":"19.2.4","react-dom":"19.2.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gpucanvas_0.3.0_1794575144692_0.2758446700851145","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"gpucanvas","version":"0.3.1","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools","editor","shaders","wgsl"],"author":{"name":"Berkant Ay"},"license":"MIT","_id":"gpucanvas@0.3.1","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"homepage":"https://github.com/berkantay/gpucanvas#readme","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"13a7018b9ef34e809509f9025c2b2413a63e17d6","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.3.1.tgz","fileCount":12,"integrity":"sha512-p6ZqkmlDjYz53xQq/v9FqURJzRWiiVa61UEaB7IoxRkcrh+6YIs6yE0LNooqh+nyZc/uRlbJEr81KHKv9xsvBA==","signatures":[{"sig":"MEUCIGE8Wao4MJiI3ufHCnEc7zxrdK3/of+2vn+nYpvwsiipAiEA4yiy/Fc2iHRlYlmyPdEmrJBJEiN2WTwkS/eeuToZRMM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIFW5yoSDDBTyqhfPV2z0i/WKLxEty7mwEx8gKPz7J+TgAiEAow67uYiUU3+zCAw2dQXDXsYoJhIjzZRFETvdBb385pc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gpucanvas@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":392109},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"9be5ff8631f61ec5399e3d5a054824be1d3585d9","scripts":{"dev":"vite demo","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b4119637-b45b-4443-99fc-355a817cf0e6"}},"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.21.2","description":"Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, and shaders run on them.","directories":{},"sideEffects":false,"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","react":"19.2.4","react-dom":"19.2.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gpucanvas_0.3.1_1794575627110_0.3451782137366297","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"gpucanvas","version":"0.4.0","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools","editor","shaders","wgsl","ai-agents","transitions"],"author":{"name":"Berkant Ay"},"license":"MIT","_id":"gpucanvas@0.4.0","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"homepage":"https://github.com/berkantay/gpucanvas#readme","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"f48521104157359b8cf3be2cab781dddf2550e9d","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.4.0.tgz","fileCount":12,"integrity":"sha512-78dng4ukv0SMy/qVxtpEVkaf2K0VaTByQR/hSo9gDU5vQHow7ux7BOx8L023RMpNEooTg+FYqA/3xbuqJkyteA==","signatures":[{"sig":"MEYCIQCJ+wbnDDkZrkx6okAAmllzX2tCRqDPRco+yQAxdqHRUQIhAJktzcGs9FYo8vih3DkHnS1peZ0MLV3fIpSrtkDDU0ZB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCICZNQZy7QGmoye1CpuYW6MvcyCIAAscgMk4Q02rOCakyAiBUH2cQlgPhhR8L/UKOmT2/9Bplpuf8RPImSh9WJP9uMQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gpucanvas@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":479900},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"281da2fb3d6ebee62d98dbbfd618147571e78b5b","scripts":{"dev":"vite demo","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b4119637-b45b-4443-99fc-355a817cf0e6"}},"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.21.2","description":"Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, shaders and transitions run on them, and an AI agent can read them and point at them.","directories":{},"sideEffects":false,"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","react":"19.2.4","react-dom":"19.2.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gpucanvas_0.4.0_1794578938953_0.1403945089298625","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"gpucanvas","version":"0.4.1","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools","editor","shaders","wgsl","ai-agents","transitions"],"author":{"name":"Berkant Ay"},"license":"MIT","_id":"gpucanvas@0.4.1","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"homepage":"https://github.com/berkantay/gpucanvas#readme","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"bf610b4a48b7d1e7744f6fe2ac4a2b3deb4abf5d","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.4.1.tgz","fileCount":12,"integrity":"sha512-hQrGsr40s+PT0FZ0y+3/rLALEk3dEz4uFfP/AXXFGzxPBHVqgvhfsK8p7VRya9qcclsam/rMj3CEGOso11Ns2w==","signatures":[{"sig":"MEQCIDGOl+m3KJPaFbkx7SAJpRorIcDEK0ecwYNsetv0PhQmAiAvjgK6tTwXhjn8h7VQGDYzoTAfwh0O6CSwUPemV9MPUg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICS6TtnKWfZD+VtfC32C78TEaS/18pkoMBfgveCDeHuIAiEA8RJjyVVj4QA8DGFL//VGL5fmFC8qLv3L5IMglvXU8Vo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gpucanvas@0.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":484227},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"f480baf486f8e26b58cc6b5693553a741efbe34b","scripts":{"dev":"vite demo","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b4119637-b45b-4443-99fc-355a817cf0e6"}},"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.21.2","description":"Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, shaders and transitions run on them, and an AI agent can read them and point at them.","directories":{},"sideEffects":false,"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","react":"19.2.4","react-dom":"19.2.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gpucanvas_0.4.1_1794588775861_0.8561420746808188","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"gpucanvas","version":"0.4.2","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools","editor","shaders","wgsl","ai-agents","transitions"],"author":{"name":"Berkant Ay"},"license":"MIT","_id":"gpucanvas@0.4.2","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"homepage":"https://github.com/berkantay/gpucanvas#readme","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"13ed6f4ccac373f38446d4cc02d944aff948eb61","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.4.2.tgz","fileCount":12,"integrity":"sha512-3dsEiW+T9u2nKBILS5zyYzvrnX7t+L34ujRGcqkUDF5KHio95euKoIlBW3rHHQY8uA6J1hmECIucfANb5wgyUg==","signatures":[{"sig":"MEUCIE4ODbKEr/dCOh0FxQJP0tdd6g1chYbTtLPgNhH0U24rAiEAmnUmn+cemiP37qy0DabTy2VtUJROsaTgsNRk1xmLSBk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIHRu8GnrPwZQ7UEzp38VmdDkFc7tvyVUktFLXQazbfRPAiEAn09thJxGFLVtEUfcu+iR/A7yM5zBWdaRFZM82rtL3wQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gpucanvas@0.4.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":493107},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"730b97244a1dd8235c712e06a683b0016fb2fa09","scripts":{"dev":"vite demo","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b4119637-b45b-4443-99fc-355a817cf0e6"}},"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.21.2","description":"Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, shaders and transitions run on them, and an AI agent can read them and point at them.","directories":{},"sideEffects":false,"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","react":"19.2.4","react-dom":"19.2.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gpucanvas_0.4.2_1794606551133_0.13295385148740202","host":"s3://npm-registry-packages-npm-production"}},"0.4.3":{"name":"gpucanvas","version":"0.4.3","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools","editor","shaders","wgsl","ai-agents","transitions"],"author":{"name":"Berkant Ay"},"license":"MIT","_id":"gpucanvas@0.4.3","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"homepage":"https://github.com/berkantay/gpucanvas#readme","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"4ee9b8b530fdeec3996c5441f7e66aab5bc257a2","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.4.3.tgz","fileCount":12,"integrity":"sha512-o/gxzmz76OeYHoEb2y555Yv97/uAbIJZpTktX5xm8lrmvtfc/AfB2j5IKjvW6m3xj7glkBryrYgpkuZRvlnz6Q==","signatures":[{"sig":"MEUCIQC5Fw8FB12xjXZgGvZKNSM0WTbLzYXP2V+7Lc+PtsQgkAIgPVEdKEmVpbx0j2S96CixOV3wscv4j5/VL28wJEhKYT0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDtxJ/3yxL5B5Jpt0DE45HpSxUVqaG1OPUKj/aBjMl25gIgCagzy8yYotWgYVguNIJsEeXCtBZZoIoZYAei/GzOWaI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gpucanvas@0.4.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":494527},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"ef67300dc8b9febf306aa2e3bd31a970a2be4b3a","scripts":{"dev":"vite demo","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b4119637-b45b-4443-99fc-355a817cf0e6"}},"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.21.2","description":"Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, shaders and transitions run on them, and an AI agent can read them and point at them.","directories":{},"sideEffects":false,"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","react":"19.2.4","react-dom":"19.2.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gpucanvas_0.4.3_1794655231376_0.11576187851213215","host":"s3://npm-registry-packages-npm-production"}},"0.4.4":{"name":"gpucanvas","version":"0.4.4","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools","editor","shaders","wgsl","ai-agents","transitions"],"author":{"name":"Berkant Ay"},"license":"MIT","_id":"gpucanvas@0.4.4","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"homepage":"https://github.com/berkantay/gpucanvas#readme","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"53d20c13a309cb176f5e9aacab31424380d98248","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.4.4.tgz","fileCount":12,"integrity":"sha512-6lv4c/9L8erHc6ZNuEbZ7a9B3X/tbYYKv8UD5WCXJ1xNVgfOaAMQAJgfSUMKbyZuxDQH+ql3MoruprtsSxb70Q==","signatures":[{"sig":"MEUCIQDkOMufUtnkiVirWVgimvQLlyG4xHRatAOyQKMvZfRziAIgfM/831/ymgoNZzUW0opv0jXtxheHO1S9voJrxFlGhb4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCJ5+IKjhc7MrCIho5QCSwHSK/BQKrR0qjSy7HiIBCfFQIgXetx6LRCPHlyAm6tutampMt/wMHZso3sHZm1+gmSZbs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gpucanvas@0.4.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":491627},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"338a88d390dfa68ad10e43625d5fbf179f37c38e","scripts":{"dev":"vite demo","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b4119637-b45b-4443-99fc-355a817cf0e6"}},"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.21.2","description":"Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, shaders and transitions run on them, and an AI agent can read them and point at them.","directories":{},"sideEffects":false,"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","react":"19.2.4","react-dom":"19.2.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gpucanvas_0.4.4_1794705915011_0.3119903209499916","host":"s3://npm-registry-packages-npm-production"}},"0.4.5":{"name":"gpucanvas","version":"0.4.5","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools","editor","shaders","wgsl","ai-agents","transitions"],"author":{"name":"Berkant Ay"},"license":"MIT","_id":"gpucanvas@0.4.5","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"homepage":"https://github.com/berkantay/gpucanvas#readme","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"53bc60b9bd0c69a9a0e4ecb7f8d65ccaca0ab8c9","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.4.5.tgz","fileCount":12,"integrity":"sha512-kkteYVv/MKTj4fyijHUKQmnAigYf1wUGMm70GSD8skzYja9NO8snDDdoF27azdoIML0ach4gR2EpRasXFW5rTA==","signatures":[{"sig":"MEUCIHW+qe3Q4lxtwkrSaIfBY2zdJWK6TYPuH4UwRvAoB/7/AiEApc1B/7Ta4QHoYOJA6CDEhl2nA1Cr7rq6Mn0MnQhZcBI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCVt2RYmu56PwwuYo/MWIRDCtF9p8D05tHyUynYrmYUxQIhANj02iMqmRCweuIc7lbJrDMJJUKxTQt1z6IrUYgv13ok","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gpucanvas@0.4.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":518939},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"dd25d1a154fdc704143637cdbac3bf1a6886d5af","scripts":{"dev":"vite demo","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b4119637-b45b-4443-99fc-355a817cf0e6"}},"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.21.2","description":"Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, shaders and transitions run on them, and an AI agent can read them and point at them.","directories":{},"sideEffects":false,"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","react":"19.2.4","react-dom":"19.2.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gpucanvas_0.4.5_1794775700631_0.6823919258466248","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"gpucanvas","version":"0.5.0","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools","editor","shaders","wgsl","ai-agents","transitions"],"author":{"name":"Berkant Ay"},"license":"MIT","_id":"gpucanvas@0.5.0","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"homepage":"https://github.com/berkantay/gpucanvas#readme","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"5feb1f9c7e6703e908b773309b40746ab01d99de","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.5.0.tgz","fileCount":12,"integrity":"sha512-//0QuLuCaUTPZI0qlZLZtW1PQgbGFS0LQ0eIsefWIyw4RQsLiUvwF7VLtL6AE8iGUuMbDogBij80rlXPgY1zWg==","signatures":[{"sig":"MEUCIQDg0xlTNXlwzsc/igPBalHE41AtbrdlMS+3aSMeigquuAIgDjH6eWJTFpokQ50navmxh0zZ1Wr7DG2HG1NF7MxdQdQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDS/PjJLIYAXhG9UGBZtoGC9vuRzNOYgqlDhh8ONEL0aAIgZ+2OEAJyrHTBXLTYAoJXKFPsC1HBFAyVwmpf/M5q/Lc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gpucanvas@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":523263},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"9012ffd21da1bb8e711b12d6b9d5d85cdb6c76ad","scripts":{"dev":"vite demo","test":"bun test","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b4119637-b45b-4443-99fc-355a817cf0e6"}},"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.21.3","description":"Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, shaders and transitions run on them, and an AI agent can read them and point at them.","directories":{},"sideEffects":false,"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","jsdom":"^31.0.1","react":"19.2.4","react-dom":"19.2.4","@types/bun":"^1.4.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/jsdom":"^30.0.0","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@zumer/snapdom":"^3.7.6","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/gpucanvas_0.5.0_1794999288807_0.5074753269803719","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"_id":"gpucanvas@0.6.0","bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"dist":{"shasum":"3cd27c087816c1fd458d94937c7104247270c4d8","tarball":"https://registry.npmjs.org/gpucanvas/-/gpucanvas-0.6.0.tgz","fileCount":12,"integrity":"sha512-kpQx1lkyQY4udxyp+Xw88eIT95dHntrDJrxUeD/KG5bnsUvpAV9/h+DefGsveGGbho0e8Sh2/Gs9FUVCXs4hLw==","signatures":[{"sig":"MEQCIEctY1FXhE4Bh+fAKpt8RcEjJVu3YgPhl/PiQ7hFvgN/AiAHvBtetEm7quZYXoMqaGw9tysuvqtBsj5U1nhkXKtcSg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD2uw71wRpgr6Vvw+Ev4YkQ7tn70oWsFRiNjRl/A53StwIhAOqHWYwlBjMhpce9aQ3TJI/iNJcgRAq1tSgO6Jz6rIK4"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/gpucanvas@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":549043},"main":"./dist/index.js","name":"gpucanvas","type":"module","types":"./dist/index.d.ts","author":{"name":"Berkant Ay"},"module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js"},"./package.json":"./package.json"},"gitHead":"a45e1978d375ffaba7471aa13b867a0cc998f840","license":"MIT","scripts":{"dev":"vite demo","test":"bun test","build":"tsup","typecheck":"tsc --noEmit","build:demo":"vite build demo","prepublishOnly":"tsc --noEmit && tsup"},"version":"0.6.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"b4119637-b45b-4443-99fc-355a817cf0e6"}},"homepage":"https://github.com/berkantay/gpucanvas#readme","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools","editor","shaders","wgsl","ai-agents","transitions"],"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"_npmVersion":"11.21.3","description":"Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, shaders and transitions run on them, and an AI agent can read them and point at them.","directories":{},"maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"sideEffects":false,"_nodeVersion":"24.22.2","_hasShrinkwrap":false,"packageManager":"bun@1.3.12","devDependencies":{"tsup":"8","vite":"^7.0.0","jsdom":"^31.0.1","react":"19.2.4","react-dom":"19.2.4","@types/bun":"^1.4.4","typescript":"^5.9.0","tailwindcss":"4.3.3","@types/jsdom":"^30.0.0","@types/react":"^19.2.0","@webgpu/types":"^0.1.60","@zumer/snapdom":"^3.7.6","@remixicon/react":"^4.9.0","@types/react-dom":"^19.2.0","@tailwindcss/vite":"^4.1.0","@vitejs/plugin-react":"^5.0.0","@fontsource-variable/inter":"^5.3.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"peerDependenciesMeta":{"react":{"optional":true},"react-dom":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gpucanvas_0.6.0_1795008791738_0.944861393646967"}}},"time":{"created":"2026-11-12T23:39:00.663Z","modified":"2026-11-18T13:33:12.340Z","0.0.0-stage":"2026-11-12T23:39:00.663Z","0.1.0":"2026-11-12T23:43:09.354Z","0.2.0":"2026-11-13T10:34:03.436Z","0.3.0":"2026-11-13T13:05:44.948Z","0.3.1":"2026-11-13T13:13:47.236Z","0.4.0":"2026-11-13T14:08:59.090Z","0.4.1":"2026-11-13T16:52:55.998Z","0.4.2":"2026-11-13T21:49:11.238Z","0.4.3":"2026-11-14T11:20:31.484Z","0.4.4":"2026-11-15T01:25:15.095Z","0.4.5":"2026-11-15T20:48:20.718Z","0.5.0":"2026-11-18T10:54:48.963Z","0.6.0":"2026-11-18T13:33:11.915Z"},"bugs":{"url":"https://github.com/berkantay/gpucanvas/issues"},"author":{"name":"Berkant Ay"},"license":"MIT","homepage":"https://github.com/berkantay/gpucanvas#readme","keywords":["canvas","infinite-canvas","webgpu","html-in-canvas","react","dom","design-tools","editor","shaders","wgsl","ai-agents","transitions"],"repository":{"url":"git+https://github.com/berkantay/gpucanvas.git","type":"git"},"description":"Put thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects, moves and resizes them, shaders and transitions run on them, and an AI agent can read them and point at them.","maintainers":[{"name":"berkant_thedev","email":"berkantay.5+1@gmail.com"}],"readme":"# gpucanvas\n\nPut thousands of live DOM nodes on an infinite canvas: the GPU draws them, an editor selects,\nmoves and resizes them, shaders and transitions run on them, and an AI agent can read them and\npoint at them.\n\n![The same 5,000 live React screens as plain DOM (left) and in gpucanvas (right), with each side's frame rate measured live](docs/benchmark.gif)\n\nThe same session on both sides: 5,000 live React screens, the same camera path, a message typed and sent. Left, every screen is plain DOM under a CSS transform. Right, gpucanvas. Recorded in Chrome on a MacBook Pro; the frame rates are measured live in each run. Run it yourself in the [live demo](https://berkantay.github.io/gpucanvas/).\n\n- **[Canvas](#how-it-works).** Live React or plain DOM nodes, drawn by WebGPU in one instanced\n  pass. Pan and zoom never touch the DOM, and clicks, typing and state still reach the real\n  elements.\n- **[Editor](#editing).** Click to select, double-click to go a layer deeper, down to any element\n  or React component. Move and resize with snapping guides.\n- **[Shader effects](#shader-effects).** Run WGSL on live components: a glass lens, frost,\n  shockwaves, glitch, VHS, or your own.\n- **[Snapshots](#snapshots).** Any node as an image, pixel diffs between versions, and a\n  filmstrip of its history.\n- **[Agent view](#agent-view).** What is on the canvas as a short JSON tree with ids, and an\n  image of any region, for an AI agent to read and point at.\n- **[Transitions](#transitions).** Dissolve, wipe or fade a node out and another in, on the\n  GPU, while both stay live.\n- **[Marks](#marks).** Arrows between elements, comment pins, notes and live cursors that\n  follow the camera.\n\n![An agent cursor flags a heading, links two buttons and drops a pin; the screen wipes out and dissolves back; a glass lens follows the pointer; shockwaves ripple from clicks](docs/features.gif)\n\nMarks from an agent, a wipe and a dissolve, the glass lens and shockwaves, all on live\ncomponents. Recorded in Chrome from the demo.\n\nHow it works, with the benchmarks and what Chrome's HTML-in-Canvas does differently from the\nexplainer: [gpucanvas: 5,000 Live React Screens on a WebGPU Infinite Canvas](https://berkant.me/blog/gpucanvas-webgpu-infinite-canvas).\n\n## Try it\n\nOpen **[berkantay.github.io/gpucanvas](https://berkantay.github.io/gpucanvas/)** in Chrome 157 or\nlater. Thirty agent cursors build the first view, then the camera pulls out to all 5,000 screens.\n\n- Click a screen to select it, double-click to go deeper, drag to move it. Double-click a text\n  field to type in it, or switch the toolbar to Interact and use the screens like a normal page.\n- In Interact, every button does something. Continue, Sign in and Back move the camera to the\n  next screen like a clickable prototype, Notifications and More open panels, Export saves a\n  CSV, Send adds the message and Share copies the link.\n- The toolbar holds every setting: renderer, number of screens, Edit or Interact, what a click\n  selects, the shader effect, the agent cursors and the theme. They apply live, and the URL\n  remembers them.\n- Pick a shader effect in the toolbar, or open one directly:\n  [glass](https://berkantay.github.io/gpucanvas/?effect=glass),\n  [shockwave](https://berkantay.github.io/gpucanvas/?effect=shockwave) (click anywhere),\n  [frost](https://berkantay.github.io/gpucanvas/?effect=frost),\n  [glitch](https://berkantay.github.io/gpucanvas/?effect=glitch).\n- Select a screen and press `D` to dissolve it, `W` to wipe it, or `S` to save it as a PNG.\n- In the console, `agentView.describe()` lists what is in view, and `marks` draws on it.\n- Press `b` to run the benchmark tour, `f` to fit every screen in view, `t` to switch the theme.\n- On a phone: pinch to zoom, drag to pan, tap to use a screen.\n\nThe GPU path needs WebGPU and HTML-in-Canvas. Chrome 157 and later on a computer has both on by\ndefault, so the demo opens on the GPU path. On older Chrome or other Chromium builds, turn it on\nwith `chrome://flags/#canvas-draw-element` and relaunch.\n\nWithout HTML-in-Canvas the demo runs the DOM fallback with 1,000 screens and says so. Phones start\nsmaller so the tab is not killed for memory: 1,000 screens on the GPU path and 250 as DOM. Firefox,\nSafari and every iPhone or iPad browser have no HTML-in-Canvas yet, so they run the DOM version and\nsay so.\n\nStatus: early (0.6). The API can still change.\n\n```sh\nnpm install gpucanvas\n```\n\n```tsx\nimport { GpuCanvas, CanvasNode } from 'gpucanvas/react';\n\n<GpuCanvas style={{ width: '100vw', height: '100vh' }}>\n  {cards.map((card) => (\n    <CanvasNode key={card.id} x={card.x} y={card.y} width={240} height={150}>\n      <Card {...card} />\n    </CanvasNode>\n  ))}\n</GpuCanvas>;\n```\n\nNodes stay real DOM: React state, events, CSS and accessibility work as usual. Where WebGPU and\nHTML-in-Canvas are available (Chrome 157+), nodes are snapshotted into a GPU atlas and drawn in\none instanced draw call. Everywhere else it falls back to a CSS-transformed container with the\nsame API.\n\n## Editing\n\n`bindEditor` turns the canvas into an editor: select, drill in, move and resize. The GPU draws\nthe outlines, 2 CSS pixels wide at any zoom, and they follow their element's layout. Names,\nsizes, handles and snapping guides sit in a thin overlay above it.\n\n```ts\nimport { bindEditor } from 'gpucanvas';\n\nconst editor = bindEditor(canvas, {\n  pick: 'element', // 'node' (default), 'element', or a function\n  trigger: 'click', // an edit mode; the default 'shift-click' leaves clicks to your components\n  onChange: (layers) => console.log(layers),\n  onTransform: ({ phase, layers, to }) => {\n    // The editor never moves anything itself. Apply `to` with updateNode, state or styles.\n  },\n});\n```\n\nA click selects the outermost layer under the pointer, a whole node. Each double-click goes one\nlayer deeper, and later clicks stay at that depth. Wrappers the size of their parent are skipped,\nso every double-click visibly changes something.\n\n| Input              | Does                                                                         |\n| ------------------ | ---------------------------------------------------------------------------- |\n| Double-click       | One layer deeper; on a text field, starts typing in it                       |\n| Enter, Shift+Enter | First child, parent                                                          |\n| Tab, Shift+Tab     | Next and previous sibling                                                    |\n| Escape             | Ends typing, cancels a drag, then goes up a layer, then clears               |\n| Drag               | Moves, snapping to the edges and centers of neighbors (Shift locks the axis) |\n| Handles            | Resize (Shift on a corner keeps the ratio)                                   |\n| Drag on open space | A box that selects the layers it touches, inside the layer you are in        |\n\nWith the default `trigger: 'shift-click'`, the same works with Shift held, and clicks still reach\nyour components. A layer is an array of elements, so one layer can be a component that renders\nseveral. `pick` decides the layers:\n\n- `'node'`: whole nodes only.\n- `'element'`: every element from the node down to the one under the pointer.\n- a function of that element, returning the layers that hold it, outermost first.\n\nIn React, `useEditor` gives the selection as state, and `pickComponents` makes the layers React\ncomponents:\n\n```tsx\nimport { labelComponent, pickComponents, useEditor } from 'gpucanvas/react';\n\n// Inside <GpuCanvas>:\nconst { selected, clear } = useEditor({ pick: pickComponents, label: labelComponent });\n// Click a screen, double-click: SignIn, SignInCard, Button.\n```\n\n`pickComponents` and `componentOf` read React's internal fibers, as click-to-component tools do.\nProduction builds usually minify component names, so mark components with your own attributes\nwhen you need names there.\n\nThe building blocks, for your own interactions:\n\n```ts\ncanvas.getElementAt(point); // deepest element at a world point\ncanvas.getElementRect(el); // any element's rect in world units\ncanvas.getNodeOf(el); // the node that holds it\ncanvas.getNodes(); // every node, in the order they were added\ncanvas.getNodesIn(rect); // nodes overlapping a world rect\ncanvas.setSelection(elements); // outline these; [] clears\ncanvas.setHover(el); // a lighter outline; null clears\ncanvas.screenToWorld(point); // surface pixels to world units, and worldToScreen back\ncanvas.addCameraListener((camera) => {}); // every camera change; returns a function that stops it\ncreateMarquee(canvas).update(a, b); // a selection box between two surface points; returns its world rect\n```\n\nColors are the `selectionColor` and `hoverColor` options; the editor, marks and marquee follow\n`selectionColor` unless given their own. In the demo, the toolbar switches between\nEdit and Interact (clicks reach the components) and picks components, elements or whole screens.\n\n## Keyboard and popups\n\nTab and Shift+Tab move through the fields of every node, in the order the nodes were added, and\nthe camera pans just enough to show the field. Past the last node, Tab leaves the canvas.\n\nPopups a component opens in `document.body` (Radix, floating-ui) open next to their button, since\na node under the pointer or holding focus reports where it is drawn from `getBoundingClientRect`.\nThe camera moves without scrolling anything, so tell the popup library when it does:\n\n```ts\nconst stop = canvas.addCameraListener(() => popup.update()); // floating-ui: computePosition again\n```\n\n`position: fixed` inside a node is fixed to the node, on both backends.\n\n## Shader effects\n\nComponents stay live DOM, and the GPU draws them through a shader. One call per node:\n\n```ts\nimport { effects } from 'gpucanvas';\n\ncanvas.setEffect(node, effects.ripple); // the effect's default parameters\ncanvas.setEffect(node, effects.glow, [1, 0.4, 0.2, 32]); // orange, 32 px reach\ncanvas.setEffect(node, null); // back to plain\n```\n\nBuilt in:\n\n- Following the pointer: `glass` (a magnifying lens), `frost` (ice, clear around the pointer),\n  `dither` (a lens of big dithered pixels).\n- On each press: `shockwave`, a ring that bends the node as it spreads.\n- Running on their own: `glitch`, `vhs`, `glow`, `hue`, `ripple`.\n- Still: `blur`, `pixelate`, `grayscale`.\n- [Transitions](#transitions): `dissolve`, `wipe` and `fade`, for a node leaving or arriving\n  (the first parameter is the progress, 0 to 1).\n\nAnimated effects draw every frame while their node is in view; still ones cost nothing once\ndrawn.\n\nYour own is a WGSL function over the node's pixels:\n\n```ts\nimport { defineEffect } from 'gpucanvas';\n\nconst scanlines = defineEffect({\n  name: 'scanlines',\n  animated: true,\n  params: [3], // line spacing in CSS pixels\n  wgsl: /* wgsl */ `\n    fn effect(input: EffectInput) -> vec4f {\n      let color = source(input.uv);\n      let y = input.uv.y * input.size.y + input.time * 20.0;\n      return color * (0.85 + 0.15 * step(0.5, fract(y / input.params.x)));\n    }`,\n});\n```\n\n`EffectInput` has `uv` (0 to 1 across the node), `size` in CSS pixels, `time` in seconds,\n`zoom`, the four `params`, the `pointer` and the last `press` in the node's uv, and\n`sincePress` in seconds. `source(uv)` reads the node's pixels, premultiplied, and is\ntransparent outside it; `hash` and `noise` give random values. An effect that draws past its\nnode, like a glow, declares how far with `pad`. Effects read the node's whole snapshot, so very\nclose in they are softer than plain nodes. In React, `<CanvasNode effect={effects.glass}>` does\nthe same.\n\nThe DOM backend shows effects that have a `css` look as a CSS `filter` (animated ones as filter\nanimations) and the rest as plain nodes. The demo's toolbar puts one effect on every component.\n\n## Snapshots\n\nEvery node is already drawn by the GPU, so its pixels are one call away, with no headless\nbrowser:\n\n```ts\nimport { diffImages, recordFilmstrip, toBlob } from 'gpucanvas';\n\nconst before = await canvas.snapshot(node, { scale: 2 }); // ImageData, drawn fresh\nconst png = await toBlob(before); // a PNG Blob\n\n// ...the screen changes...\nconst after = await canvas.snapshot(node, { scale: 2 });\nconst { changed, bounds, image } = diffImages(before, after); // what moved, and where\n\n// A snapshot after every change, once it settles.\nconst strip = recordFilmstrip(canvas, node, { scale: 0.25, max: 30, onError: console.error });\nstrip.frames; // [{ at, image }, ...]\nstrip.stop();\n```\n\nA snapshot is the node as it looks now, at any scale, whether or not it is in view. It takes a\npaint or two, about 40 ms for a 1,500 by 1,000 pixel screen. In the demo, select a screen and\npress `S` to save it.\n\nThe DOM backend cannot draw a node into an image itself, so there `snapshot` rejects unless you\ngive the canvas a `snapshotFallback`. Any DOM-to-image library fits; this one uses\n[SnapDOM](https://github.com/zumerlab/snapdom), which the demo does too:\n\n```ts\nimport { snapdom } from '@zumer/snapdom';\n\nconst canvas = await createGpuCanvas(host, {\n  async snapshotFallback(node, { scale }) {\n    // `scale` already counts the device pixel ratio, so dpr 1 keeps it from applying twice.\n    const drawn = await snapdom.toCanvas(node, { scale, dpr: 1 });\n    return drawn.getContext('2d')!.getImageData(0, 0, drawn.width, drawn.height);\n  },\n});\n```\n\n`<GpuCanvas snapshotFallback={...}>` takes the same function. Selection and hover outlines stay\nout of the image on both backends. One difference: on the DOM backend an effect is a CSS `filter`\non the node, so a fallback snapshot includes it, while a GPU snapshot is the node without its\neffect.\n\n## Agent view\n\nAn agent reads the canvas the way a person sees it: what is there, what it says, and where:\n\n```ts\nimport { createAgentView } from 'gpucanvas';\n\nconst view = createAgentView(canvas);\nview.describe(); // what is in view, as JSON\n// [{ id: 'e35', tag: 'div', rect: { x: -3552, y: -2561, width: 1496, height: 958 }, children: [\n//   { id: 'e6', tag: 'h1', role: 'heading', text: 'Welcome back', rect: { ... } },\n//   { id: 'e18', tag: 'input', role: 'textbox', name: 'Email', rect: { ... } },\n//   { id: 'e23', tag: 'input', role: 'checkbox', name: 'Keep me signed in', checked: true, ... },\n//   { id: 'e25', tag: 'button', role: 'button', text: 'Sign in', rect: { ... } }, ...] }]\n\nview.element('e25'); // the element behind an id\nawait view.capture('e6', { scale: 2 }); // ImageData of that element\nawait view.capture({ x: 0, y: 0, width: 4000, height: 3000 }, { scale: 0.25 }); // any region\n```\n\nWrappers that add nothing are left out, so a sign-in screen is about 35 entries and 3.5 KB of\nJSON, read in 3 ms. Pass `rect` to read another region and `name` to label elements with your\nown names, such as their React component's. `capture` needs the GPU backend.\n\n## Transitions\n\nAny effect whose first parameter is progress (0 whole, 1 gone) animates as a transition:\n`dissolve`, `wipe` and `fade` are built in.\n\n```ts\nimport { animateEffect, effects, swapNodes } from 'gpucanvas';\n\nawait animateEffect(canvas, node, effects.wipe, { duration: 600, params: [90] }); // wipe downward\nawait animateEffect(canvas, node, effects.wipe, { from: 1, to: 0 }); // and back\n\n// One screen burns away while the next appears in its place.\nawait swapNodes(canvas, oldScreen, newScreen, { effect: effects.dissolve, duration: 800 });\ncanvas.removeNode(oldScreen);\n```\n\nA node that ends whole loses the effect; one that ends gone stays hidden until it is removed.\nStarting another animation on a node replaces the running one, which resolves `false`. In the\ndemo, select a screen and press `D` to dissolve it or `W` to wipe it. The DOM backend fades.\n\n## Marks\n\nDraw on top of the nodes. Marks follow the camera and the elements they are attached to, and\nstay the same size on screen at any zoom:\n\n```ts\nimport { createMarks } from 'gpucanvas';\n\nconst marks = createMarks(canvas);\nmarks.connect(button, nextScreen, { label: 'goes to' }); // a curved arrow\nmarks.pin(card, { label: '3', text: 'Rename to Continue?', onClick: openThread });\nmarks.note(view.element('e6'), 'This heading is 2px off the grid'); // what an agent means\nconst cursor = marks.cursor('Ada', { color: '#e11d48' });\ncursor.move({ x: 120, y: 80 }); // glides there, in world units\nmarks.clear();\n```\n\nArrows and pins also take a world point in place of an element. Marks are SVG and HTML in a\nlayer above the canvas, so they work with both backends. In the demo, both are on `window`:\n`agentView` and `marks`.\n\n## Run the demo\n\n```sh\nbun install\nbun run dev        # http://localhost:5199/?mode=gpu&n=10000  (mode: auto | gpu | dom)\n```\n\n## Releases\n\nPublishing a GitHub release for a `vX.Y.Z` tag that matches `package.json` publishes the package\nto npm from GitHub Actions, with provenance, through npm trusted publishing. See\n[release.yml](.github/workflows/release.yml).\n\n## How it works\n\n1. **Pages.** Nodes are live DOM inside `<canvas content=\"drawable\">`, packed side by side into\n   pages of 2048 CSS pixels. Chrome records a page as one snapshot, so one\n   `drawElementImageToTexture` call rasterizes dozens of nodes at once.\n2. **Rasterize, then park.** A page with nodes waiting for pixels becomes `drawable`. In the next\n   paint event it is drawn into a texture-array atlas, whole or one node at a time when only a\n   few changed. Then it is parked with `content-visibility: hidden`, which keeps layout but skips\n   paint, so the browser spends nothing on it per frame.\n3. **Thumbnails first.** Every node gets a 1/16 scale thumbnail in an atlas layer that is never\n   evicted, so a zoomed-out view of thousands of screens is always filled in. Sharper snapshots\n   go on top at power-of-two scales, so zooming reuses them.\n4. **Tiles up close.** Past 100% zoom on a 2x display, only the visible part of a node is\n   rasterized, as sharp tiles, center first. While its content animates, one half-resolution preview stands in.\n5. **One draw call.** Each frame culls nodes against the view and draws every visible one with\n   one instanced quad draw, or one per run of nodes sharing a shader effect. Panning and zooming\n   never touch the DOM. Raster work has a\n   per-frame budget, so the camera stays smooth while pixels fill in.\n6. **Live updates.** A MutationObserver marks a node dirty when its content changes, and\n   loading images, web fonts and CSS transitions trigger a redraw. Animated content on nodes\n   under 200 screen pixels refreshes at most four times a second.\n7. **Input.** Only the page under the pointer is registered for hit testing, and its canvas\n   transform puts the node under the pointer exactly where the GPU drew it. Clicks, typing, selection and\n   hover all go to the real element. A focused node keeps its page live, lined up with its\n   drawing when the pointer is elsewhere. Touch has no hover, so a\n   tap makes the node under the finger live and hands the click to the element it landed on. A\n   two-finger pinch zooms and pans the camera wherever the fingers land.\n\n## Measured (M-series Mac, Chrome 157, 1600 x 900 window, DPR 1)\n\nThe demo's benchmark (press `b`) runs a 30-second tour: a message typed and sent, a chart\nanimating, a push to 500% zoom, shift-click picks and a selection sweep, while 30 agent cursors\nbuild screens around the view. Every frame is timed. At 5,000 screens it measures 113 to 115 fps\nfor gpucanvas and 18 to 20 for DOM, and 138 for gpucanvas in the effects run below.\n\nThe table below was measured with the 0.1 benchmark, a 94-second session from the overview into\nclusters of app screens, close-ups up to 500% zoom, 20 clicks and typed messages, then back out.\n\n| Screens | gpucanvas avg fps | gpucanvas p95 | DOM avg fps | DOM p95  | Mount gpucanvas / DOM |\n| ------- | ----------------- | ------------- | ----------- | -------- | --------------------- |\n| 5,000   | 117               | 9.2 ms        | 23          | 50.2 ms  | 1.2 s / 1.3 s         |\n| 10,000  | 108               | 16.7 ms       | 9           | 133.8 ms | 1.8 s / 3.4 s         |\n\nDOM is the same screens in one CSS-transformed container, which is also the fallback backend.\n\nShader effects on every one of the 5,000 screens, the same 30-second tour, vsync off:\n\n| Effect         | gpucanvas avg fps | p95     |\n| -------------- | ----------------- | ------- |\n| none           | 138               | 15.2 ms |\n| glow           | 135               | 15.6 ms |\n| blur (32 taps) | 138               | 16.7 ms |\n| glass          | 122               | 18.2 ms |\n| frost          | 146               | 13.8 ms |\n\nEffects draw from each node's snapshot in the same pass, so most cost nothing measurable; glass,\nwhich samples around the pointer with a rim and shadow, costs about 12%. Each figure is one run,\nso a gap of a few percent, like frost above none, is noise rather than a speedup.\n\n## Chrome 157 findings (differ from the WICG explainer)\n\n- **Hit-test registration.** A drawable is hit-tested only after\n  `canvas.updateElementGeometry(el, options)` registers it.\n- **Hit-test position.** Chrome 157 hit tests at `options.canvasTransform`, a matrix in CSS\n  pixels from the element's border box to the canvas, and `getElementTransform(el)` returns it.\n  Chrome 156 ignored `canvasTransform` and hit tested at the CSS box, positioned with\n  `el.style.transform = canvas.getElementTransform(el, drawMatrix)`. gpucanvas handles both.\n- **Transform changes.** Changing a drawable's CSS transform or pointer-events reports it in\n  `changedElements`.\n- **Newly drawable elements.** An element that just became drawable is not reported in\n  `changedElements`. Its snapshot is available from the next paint event.\n- **Per-call cost.** Each `drawElementImageToTexture` call allocates and fully rasterizes, about\n  250 to 550 calls per second in total. This, not compositing, limits the fill rate, which is\n  why nodes are batched into pages.\n- **Cropping.** A source rectangle still rasterizes the whole source element at the requested\n  scale before cropping. Zoomed in, a node therefore moves to a page of its own.\n- **Drawable count.** Recording cost scales with the number of drawables (and non-`display:none`\n  canvas children) on every `requestPaint`. 10,000 always-drawable nodes run at 22 fps even when\n  idle.\n\n## Next\n\n- **Workers.** Composite in a worker with `captureElementImage`, and drive culling from the GPU.\n","readmeFilename":"README.md"}