mrkeyoor.comAsk

vercel-labs/vgputested 29 Aug 2026commit 2e29a32

vgpu review

Evaluate vgpu for typed WGSL imports and explicit WebGPU control, with a small application-specific trial before adoption.

  • Install 41 s
  • Build 9 s
2,417/2,568passed, run exited non-zero
  • 941 packages
Webevaluationupdated 01 Nov 2026
+44stars / 7d

Try vgpu if you want to keep shaders in WGSL while using TypeScript to control WebGPU rendering and compute. vgpu provides typed WGSL imports and a shared API across browsers, Dawn-backed Node, and a deterministic mock for tests. Our sandbox build succeeded, but its test command failed; this review does not establish rendering correctness across those runtimes.

Verdict

Evaluate vgpu for typed WGSL imports and explicit WebGPU control, with a small application-specific trial before adoption. Our dated sandbox evidence establishes a successful build and a failed test command, not cross-runtime rendering correctness. Pin the version, investigate the timeout if a clean suite is required, and verify the browser, Node, and tooling paths your project will use.

We ran it

Lab card: what happened when we ran vgpu
Lab card from our sandbox run
Screenshot of vgpu (vgpu.labs.vercel.dev)
vgpu.labs.vercel.dev
Install✓ · 41s941 packages · 1905 MB
Build✓ · 9s
Tests✗ · 129s2417 passed · 1 failed · 150 skipped of 2568 (vitest)
Repo2423 files~146,976 lines of source · 67.8 MB · 7 CI workflows

Answers from our run

Does vgpu build from source?

Dependencies installed in 41 seconds (941 packages), and the build succeeded in 9 seconds. We cloned commit 2e29a32 into a clean Debian container with 3 CPUs and no project-specific setup.

Do vgpu's tests pass?

No. The project's own test command finished in 129 seconds and reported 2417 passed, 1 failed, 150 skipped (vitest).

Who should not use vgpu?

Projects requiring a documented WebGL fallback: the supplied vgpu README describes WebGPU runtimes and a mock, without documenting that fallback.

What are the alternatives to vgpu?

TypeGPU, three.js. Evaluate vgpu for typed WGSL imports and explicit WebGPU control, with a small application-specific trial before adoption.

Setup3/5Usable with consequential caveats: our install and build completed, but the recorded footprint was 941 packages and 1,905 MB, installation warned about an engine requirement, and the test command failed.
Docs5/5Comprehensive documented breadth within this dimension: the pinned README identifies setup, runtime guidance, API reference, offline docs, examples, shader checks, and MCP access. Individual instructions were not independently exercised.
Community4/5Broad evidence of public collaboration within the supplied issue: issue 383 contains reproduction details and later commits referencing a fix. This assesses that visible collaboration, not adoption, response-time guarantees, or support capacity.
Maturity3/5Usable evidence with consequential caveats: the recorded v0.3.1 workspace built, but the test command exited 1 after a reported test timeout. Browser and GPU compatibility were not established by our run.

Who it’s for

TypeScript developers who already write WGSL and want reflected binding names, types, and layouts instead of handwritten declarations.
Teams willing to control frames, passes, and resource disposal explicitly.
Projects evaluating shared rendering code across browsers, headless Node, and application tests.
Developers prepared to verify their own browser and GPU requirements before adopting the library.

Who it’s NOT for

Projects requiring a documented WebGL fallback: the supplied vgpu README describes WebGPU runtimes and a mock, without documenting that fallback.
Teams requiring a passing repository test command before evaluation: our recorded command exited with code 1.
Developers seeking an API organized primarily around implicit scene-graph rendering.
Teams treating this review as a browser compatibility test, GPU benchmark, security assessment, or verification of the CLI and MCP workflows.

Setup reality

Our run on August 29, 2026 used commit 2e29a32 in our 3-CPU, 8 GB lab-node:22 sandbox. The attached harness records installation at 41 seconds, build at 9 seconds, and tests at 129 seconds. Installation and build exited with code 0; tests exited with code 1. These are recorded command outcomes, not evidence that we deployed an application or exercised every runtime.

The stored dependency measurements are 941 packages and 1,905 MB. The install log separately prints Packages: +940; that package-manager message does not replace the stored dependency measurement. Installation also warned that apps/agent-evals wanted Node >=24 while the environment used Node v22.23.2, and reported cyclic workspace dependencies. Installation still completed, and the supplied evidence does not establish either warning as the cause of the test failure.

The attached stored parser summaries report 2,417 passed, 1 failed, and 150 skipped tests, with a total of 2,568. These counts do not establish exhaustive unique test coverage. The raw tail reports a test exceeding 30,000 ms, but does not identify it. The harness did not time out the overall test command. No new execution was performed for this correction.

Should you try vgpu?

Choose an evaluation of vgpu when typed imports for existing WGSL shaders would remove binding declarations you currently maintain by hand. Its explicit rendering model also suits developers who want each frame to state its passes and draws. If your main requirement is writing shader logic in TypeScript or working with a general-purpose 3D scene library, compare the alternatives below before committing to that model.

vgpu provides typed WGSL imports and a shared API across browsers, Dawn-backed Node, and a deterministic mock for tests. That is the project's documented capability, not something our repository build independently verified across every runtime.

What our sandbox established

In our run on August 29, 2026, commit 2e29a32 built successfully, but the test command exited with code 1. The installed workspace included vgpu 0.3.1. This is an existing stored run, not a new test of the current repository.

Our harness records success or failure, exit codes, elapsed time, timeout status, and parsed test summaries separately. Installation completed in 41 seconds and the build in 9 seconds. The test command ran for 129 seconds before returning its failure status. The build log shows TypeScript compilation and file-copy steps; a successful build does not demonstrate a browser rendering session, a headless rendering workload, or a working CLI deployment.

The attached stored parser summaries report 2,417 passed, 1 failed, and 150 skipped tests, with a total of 2,568. They are recorded summaries, not verified counts of exhaustive unique tests. We have not reconciled a complete log or rerun the suite. Skipped tests are not failures.

The raw tail reports a test timing out at 30,000 ms. It does not name the test or establish why it stalled. This is distinct from an overall harness timeout: the recorded test step has timedOut set to false and exit code 1. The tail also includes skipped GPU tests for compute, target readback, and snapshots, so this run cannot establish that those GPU checks passed. File-level footer totals describe test files, not additional passing or skipped tests, and are not used as test counts here.

The MrKeyoor testing methodology explains how command outcomes and parser summaries reach the review. That page supplies provenance context; its current procedure does not prove which methodology version governed this older run. The dated record is the evidence for the results above.

What typed WGSL changes

The README at the tested commit describes WGSL files importing and exporting functions, structs, and constants as modules. Reflection supplies binding names, types, and layouts to TypeScript. Imports resolve during the build without a separate code-generation step or manual binding declarations.

That gives a WGSL author a concrete reason to evaluate vgpu: keep shader source in WGSL while reducing the declarations maintained alongside it. It does not establish that an application's shaders are correct or that every device supports their requirements.

The API uses one Gpu context, with frames, passes, clears, and draws expressed explicitly. The README also lists scene helpers, so describing vgpu as having no scene facilities would be misleading. The relevant distinction is its explicit execution model.

Browser, Node, and mock need different validation

The documented Node entry point uses Dawn and includes an example that renders to an offscreen target and reads its pixels. The mock supplies a deterministic software adapter so tests can run without a GPU. These paths serve different checks: a mock result cannot establish behavior on a physical GPU or across browser drivers.

The supplied README does not document a WebGL fallback. Treat support for your intended browsers and devices as an acceptance criterion. Before adoption, run a representative effect on those devices, exercise any required Node readback, and check what your mock tests actually cover. These are recommended next steps, not workloads completed in our sandbox.

The run also contains no audit result. Known-advisory findings and scan coverage are unknown; installation and build success provide no security assurance. We did not measure runtime throughput or independently measure a browser bundle.

Documentation breadth does not prove CLI portability

The pinned README documents offline guides and API reference, searchable examples, shader validation, and local or hosted MCP access. Those are useful discovery paths, but our stored command record does not verify their individual operation.

Issue 383 reports that pulling an example failed on Windows with vgpu 0.3.1, while the reporter's device validation and headless rendering worked. That separates the reported filesystem problem from a general claim that rendering fails on Windows. The supplied issue extract also shows later commits referencing a Windows fix. It does not establish which published package contains that fix, so check the installed version rather than treating the original report as a permanent limitation.

Which alternative fits the job?

TypeGPU supports writing shaders in TypeScript. Its README also describes using its APIs individually within an existing application. Compare it as an alternative when shader authoring in TypeScript is your priority. Its modular role can also complement existing WebGPU code, but the supplied evidence does not establish direct integration with vgpu.

three.js includes WebGL and WebGPU renderers. Its README demonstrates a scene, camera, mesh, and WebGL renderer. Compare it as an alternative when that general-purpose 3D model matches your application. The existence of both renderers does not establish automatic fallback or identical feature support between them.

How to read the ratings

These are editorial assessments of setup friction, documented coverage, public collaboration, and readiness evidence. They are not performance measurements or adoption rankings. On the five-point scale, 1 means substantial documented obstacles, 2 means material unresolved gaps, 3 means usable evidence with consequential caveats, 4 means broad supporting evidence with remaining uncertainty, and 5 means comprehensive evidence within the stated dimension and scope.

Setup ease is 3: installation and build completed, but the workspace footprint, engine warning, and failed test command matter. Documentation is 5 for the breadth documented in the pinned README, covering setup, runtimes, API reference, examples, and agent access; this does not rate every instruction as independently tested. Community is 4 for the concrete public collaboration visible in issue 383, including a reproducible report and later fix references; support responsiveness and adoption remain unknown. Maturity is 3 because the recorded v0.3.1 workspace built but its test command failed, and runtime compatibility was not established by our run.

Alternatives

ProjectWhat it isPick it when
TypeGPUA modular WebGPU toolkit with type inference and shader authoring in TypeScript.Choose it when writing shader logic in TypeScript is the main requirement. Its APIs can also be introduced individually into existing WebGPU code; direct integration with vgpu is not established here.
three.js gh↗A general-purpose JavaScript 3D library whose current builds include WebGL and WebGPU renderers.Choose it when a scene, camera, and mesh model suits the application, or when you need to evaluate a documented WebGL renderer. Check renderer-specific requirements rather than assuming automatic fallback.

What people are saying

  1. [github-trending] vercel-labs/vgpu

Sources

  1. vgpu README
  2. vgpu v0.3.1 release
  3. Issue 383: examples pull fails on Windows
  4. Issue 384: docs find and cat path mismatch

More web reviews