vgpu Docs

Build WebGPU applications for browsers, Node.js, and automated workflows.

vgpu is a TypeScript library for building WebGPU applications with one composable API. Write modular WGSL once, then use the same shaders for interactive canvases, headless rendering, images, video, and automated tests.

How to use these docs

Using a coding agent? Run npx vgpu to give it access to the docs, verified examples, validation tools, and runtime diagnostics.

Tools and workflows

  • CLI — explore documentation, inspect examples, validate WGSL, and diagnose the runtime.
  • MCP — connect agents to VGPU documentation and verified examples.
  • ML — run ONNX models alongside vgpu on a shared GPUDevice.