AI UX PlaygroundNewsletterJoin 2K+ AI designers and PMs on Substack. New teardowns, patterns, and prompts as they drop.

Vercel LabsShaders & WebGPU

vgpu

From Vercel Labs. A small TypeScript WebGPU stack with typed WGSL imports and a single Gpu handle—same code in the browser, headless Node (Dawn), and a deterministic mock for tests. Bundles stay tiny; a fullscreen effect ships around 25 KB gzipped. Agents can load agents.md and llms.txt, browse examples with `npx vgpu examples`, or connect to the hosted MCP at /api/mcp. Open source at vercel-labs/vgpu; install with `pnpm add vgpu`.

What's interesting

  • One typed API across browser canvas, headless Node, and tests
  • CLI and MCP paths for agent-driven discovery
  • Small bundles: fullscreen effects around 25 KB gzipped

Use in your project

Install

pnpm add vgpu
  1. Skim examples with `npx vgpu examples`.
  2. Port the closest example to your scene.
  3. Target ~25 KB gzipped if this ships on a marketing page.

Prompt your agent

From AI UX Playground: https://aiuxplayground.com/inspirations/vgpu
vgpu by Vercel Labs

From Vercel Labs. A small TypeScript WebGPU stack with typed WGSL imports and a single Gpu handle—same code in the browser, headless Node (Dawn), and a deterministic mock for tests. Bundles stay tiny; a fullscreen effect ships around 25 KB gzipped. Agents can load agents.md and llms.txt, browse examples with `npx vgpu examples`, or connect to the hosted MCP at /api/mcp. Open source at vercel-labs/vgpu; install with `pnpm add vgpu`.

Use vgpu for our [hero | loader | background] effect.

Port the closest example to our React app. Browser canvas first.
Name the WGSL files to touch and how you will test. Keep bundle size in view.

Tags

WebGPUAgentsMCPCLITypeScriptOpen source