finds.dev

DavidHDev/canvas-ui

A library of creative canvas components. Real HTML with WebGL effects running over it. React, Vue, Svelte, vanilla.

View on GitHubHomepage ↗

★ 5,162TypeScriptNOASSERTIONupdated Oct 2026

// the take

Canvas UI is a collection of 35 visual effect components (fluid sims, fire, glass, glitch, particles, 3D object renders) that draw over your live, still-interactive DOM using the experimental HTML-in-canvas API, with a GPU-overlay fallback where that API isn't available. It targets frontend/creative-coding devs who want flashy WebGL/WebGPU effects on marketing sites or portfolios without hand-rolling shader code, and it ships wrappers for React, Vue, Svelte, Solid, Preact and vanilla JS.

Distributing via a shadcn-style registry (npx shadcn add) means you get plain source files dropped into your repo instead of a runtime npm dependency, so you can read and edit the actual shader/engine code rather than treat it as a black box. The engines are genuinely framework-agnostic — WebGL2/GLSL or WebGPU/WGSL cores with thin per-framework wrappers, no component depending on another — which is a sane way to support six frontends from one codebase. The project is actively tracking Chrome's own breaking changes to the HTML-in-canvas spec (texElementImage2D/copyElementImageToTexture signature stability, geometry sync for hit-testing in Chrome 154), which shows someone is actually keeping up with an unstable upstream API rather than letting it silently rot.

The headline feature — live, selectable, clickable DOM rendered through canvas effects — only works in Chrome behind a flag or a paid origin trial token; everyone else gets a non-interactive GPU overlay, so most production visitors won't see what's advertised. That core mechanic is built on an experimental, Chrome-only API that's still changing shape (the README already documents two rounds of breaking upstream changes), meaning this library's maintenance is hostage to an external spec that isn't stable yet. WebGPU builds need quite recent browsers (Chrome/Edge 113+, Safari 26+/iOS 26, Firefox 141+), so for a while yet most users are effectively on the WebGL fallback regardless of which build you install. The license is MIT plus Commons Clause, not a standard OSI license — fine for using it in a product, but it blocks reselling the library itself, which is worth reading closely before building something commercial directly on top of it.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
5,162
Forks
267
Language
TypeScript
License
NOASSERTION
Last commit
3 Oct 2026

// nearby

If canvas-ui isn't quite it.

All repos →