WebGPUjs
JSON →WebGPUjs (v0.0.30) is a JavaScript library that enables writing full-featured WGSL pipelines directly in JavaScript, without requiring separate shader files. It provides a high-level API for allocating buffers, uniforms, textures, and specifying compute, vertex, and fragment shaders. Key features include automatic binding combination, support for compute shaders with multiple output buffers, chaining of shader stages, and instance VBOs. As an early-stage project (pre-v1), it breaks often and lacks comprehensive docs. It competes with raw WebGPU API and wgpu-native bindings, focusing on developer ergonomics for rapid prototyping. Release cadence is irregular; expect breaking changes.
Resources
packagewebgpujs ↗