Use.GPU is a set of declarative, reactive WebGPU legos. Compose live graphs, layouts, meshes and shaders, on the fly.
It's a stand-alone Typescript+Rust/WASM library with its own React-like run-time. If you're familiar with React, you will feel right at home.
It has a built-in shader linker and binding generator, which means a lot of the tedium of common GPU programming is eliminated, without compromising on flexibility.
Questions? Join Use.GPU Discord
Use.GPU lets you build incremental apps, which respond to arbitrary changes with minimal recomputation.
Similar to React, you use it by composing a tree of components, starting with an
<App> <Router> <Routes> <MyPage> <WebGPU> <AutoCanvas> <Pass> </Pass> </AutoCanvas> </WebGPU> </MyPage> </Routes> </Router> </App>
You can nest the Use.GPU components to create complex GPU graphics, with bespoke rendering pipelines. No heavy lifting required.
Use.GPU is divided into packages, at different levels of abstraction. This enables free-form tinkering for any graphics skill level.
@use-gpu/gltf- GLTF loader and bindings
@use-gpu/inspect- Live inspector
@use-gpu/layout- HTML-like layout
@use-gpu/map- Maps and projections
@use-gpu/plot- 2D/3D plotting (axes, grids, curves, labels, transforms, …)
@use-gpu/react- Live ↔︎ React portals
@use-gpu/scene- Classic scene tree with instancing
@use-gpu/webgpu- WebGPU canvas
/animate- Keyframe animation
/camera- Views and controls
/compute- Compute kernels and staging
/data- CPU → GPU data packing
/interact- GPU UI picking
/layers- Data-driven geometry
/light- Light and environment
/material- Physical materials
/pass- Composable render passes
/primitives- Programmable geometry
/queue- WebGPU sequencing
/render- Forward + Deferred renderer and RTT
/router- URL ↔︎ Page routing
/shader- Custom WGSL injection
/text- SDF text rendering
@use-gpu/core- Pure WebGPU + data helpers
@use-gpu/glyph- Rust/WASM ABGlyph wrapper
@use-gpu/shader- WGSL shader linker and tree shaker
@use-gpu/wgsl- Standard .wgsl library
@use-gpu/live- Effect run-time (React replacement)
@use-gpu/state- Minimal state management
@use-gpu/traits- Composable prop archetypes
@use-gpu/glsl-loader- GLSL loader (webpack / node / rollup)
@use-gpu/wgsl-loader- WGSL loader (webpack / node / rollup)