BEWARE: The WebGPU specification is still a work-in-progress and could change any time.
WebGPU for Node.js via Google Dawn. Allows you to use WebGPU without a browser.
It should work on Linux, Mac, and Windows. Prebuilt binaries are available for x64 architectures, and arm-based Macs.
Check the examples for how to use this package. You can use both compute and render pipelines, but for render pipelines there's of course no surface to display the result on, so you have to read it out into a buffer to use it.
In the future you should be able to use this package together with @kmamal/sdl to get direct rendering to window surfaces. The goal of this package is to be for WebGPU what @kmamal/gl is for WebGL.