Close Menu
NCIJ Network NCIJ Network
    What's Hot

    Authorities disrupt nearly 11,000 cybercrime networks in Africa

    October 22, 2026

    Fires Char New Guinea – NASA Science

    October 22, 2026

    Li Qiang and Cai Qi Are Xi Jinping’s Soldiers, Not Successors

    October 22, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Authorities disrupt nearly 11,000 cybercrime networks in Africa
    • Fires Char New Guinea – NASA Science
    • Li Qiang and Cai Qi Are Xi Jinping’s Soldiers, Not Successors
    • Viral clip shows Bangladesh coast not ships stuck in Strait of Hormuz – Full Fact
    • Murder arrest over death of Jacqueline Causton in Zante
    • Angry scenes at Senedd as Reform call for ban on Muslim face coverings
    • The ‘trillion pound’ oil fund the government believes Britain could have built
    • Google Chrome Adds ClickFix Warnings to Stop Users From Running Malicious Commands
    • About
      • Our Team
      • Editorial Policy
      • Editorial Independence
      • International Support
    • Trust & Standards
      • AI Usage Policy
      • Conflict of Interest Policy
      • Corrections Policy
      • Ethics Policy
      • Fact-Checking Policy
      • Source Protection
    • Get Involved
      • Guide for Sources
      • Support Independent Journalism
    • Legal
      • Cookie Policy
      • Privacy Policy
      • Terms of Use
    Facebook X (Twitter) Instagram
    NCIJ Network NCIJ Network
    Thursday, October 22
    • Home
    • World
    • Ai
    • Business
    • Politics
    • Health
    • Crypto
    • Science
    • Technology
    • Cybersecurity
    • Defense & Security
    • Economy
    • Energy
    • Europe
    • More
      • Fact Check
      • Investigations
      • Opinion & Analysis
      • Environment
    NCIJ Network NCIJ Network
    Home»Artificial Intelligence

    Vercel AI Open-Sources vgpu: A TypeScript WebGPU Library for AI Agent Shaders

    NCIJ NETWNCIJ NETWORKBy NCIJ NETWNCIJ NETWORKAugust 28, 2026 Artificial Intelligence No Comments4 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Shaders are still the hardest thing to ship on a normal web team. WebGPU gives you the hardware, then hands you adapters, bind group layouts, and pipeline descriptors before a single pixel moves. Vercel spent that cost internally building the shaders on vercel.com, and has now open-sourced the result. vgpu is a TypeScript library that treats .wgsl files as importable modules, exposes one Gpu context, and runs the same shader in a browser canvas, in headless Node.js, and in a CI snapshot test.

    Is it deployable?

    Yes,vgpu is MIT licensed and published to npm, so pnpm add vgpu is the entire acquisition path. It is a library, not a hosted service, so there is no account, quota, or inference bill.

    One context, no hidden global state

    init() acquires an adapter and device and returns a single Gpu handle. Everything else hangs off it. The browser quick start in the README is four lines:

    const gpu = await init();
    const surface = gpu.surface(canvas, { dpr: [1, 2] });
    const wave = gpu.effect(WAVE_WGSL, { set: { speed: 2 } });
    gpu.frame.loop(() => { wave.set({ time: gpu.time }); wave.draw(); });

    surface wraps the canvas and clamps device pixel ratio between 1 and 2. effect compiles WGSL into a fullscreen effect whose uniforms are addressed by their WGSL names through set(). Frames are explicit: passes, clears, and draws are calls, never implicit scene-graph state.

    WGSL as a Module System

    The differentiator is shader tooling. .wgsl files import and export like TypeScript modules. vgpu resolves the module graph, reflects bindings, removes unused declarations, and emits compact shader source at build time. That removes the hand-written binding declarations that normally drift out of sync with the shader. The README states a complete fullscreen effect ships in 25 KB gzipped, and that the budget is enforced in CI.

    Three Runtimes, One API

    The package exposes subpath exports for vgpu, vgpu/node, vgpu/mock, vgpu/scene, vgpu/client, and vgpu/core. The Node path is Dawn-backed and renders offscreen:

    const target = gpu.target({ size: [256, 256], format: "rgba8unorm" });
    const pixels = await target.read();

    That is what makes CI rendering practical. pixelmatch and pngjs are direct dependencies of the published package, consistent with the documented workflow where CI compiles the shader, renders a headless frame, and compares the snapshot. The mock adapter is deterministic and exists for tests that should not touch a GPU at all.

    The Agent Surface

    Vercel calls this an agent-first library, and the packaging backs that up. The package ships a vgpu binary, so npx vgpu docs, npx vgpu examples, and npx vgpu check work without a global install. vgpu.sh publishes agents.md, llms.txt, and a full documentation export, plus a tokenless examples discovery API with an OpenAPI 3.1 description. A hosted read-only MCP server is available at vgpu.sh/api/mcp, and @modelcontextprotocol/server is a direct dependency. There is also an installable agent skill in the repo.

    Comparison

    Key Takeaways

    • Vercel open-sourced vgpu, the WebGPU library it built to ship shaders on vercel.com.
    • One API surface runs in the browser, in headless Node.js via Dawn, and in a deterministic mock.
    • .wgsl files import and export like TypeScript modules, with reflection for bindings and layouts.
    • A complete fullscreen effect ships in 25 KB gzipped, a budget the repo says CI enforces.
    • MIT licensed, on npm at v0.3.1, with a CLI, llms.txt, and a hosted read-only MCP endpoint.

    Check out the GitHub Repo, Docs and Examples, and the npm package. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.


    Asif Razzaq is the CEO of Marktechpost Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.

    agent Library OpenSources Shaders TypeScript Vercel vgpu WebGPU
    NCIJ NETWNCIJ NETWORK
    • Website

    Keep Reading

    Perplexity and NVIDIA Researchers Introduce JOLT: a Joint Teacher-Student Reinforcement Learning Method

    A Coding Guide to Cactus Whistle: Does a 16.9 MB Speech Model Hold Up Against Whisper Base? Word Error Rate, Speed, Streaming, Timestamps, Keywords, and Speech-to-Tool Calls on a CPU

    Vercel Open-Sources durable-harness for Crash-Proof Coding Agents

    Asymptote Labs Lands $5.5 Million Seed for AI Agent Runtime Security

    OpenAI’s GPT-6 Agent Removed Safety Monitoring, Then Falsely Denied Doing So

    Recursive Releases Flint, an Open-Weight 40B MoE Local Coding Model for Agents with 2.5B Active Params

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Authorities disrupt nearly 11,000 cybercrime networks in Africa

    October 22, 2026

    Fires Char New Guinea – NASA Science

    October 22, 2026

    Li Qiang and Cai Qi Are Xi Jinping’s Soldiers, Not Successors

    October 22, 2026

    Viral clip shows Bangladesh coast not ships stuck in Strait of Hormuz – Full Fact

    October 22, 2026
    Latest Posts

    Leavitt to depart the White House

    August 13, 2026

    Israeli troops force families from homes amid settler terror campaign in West Bank | West Bank

    August 13, 2026

    Video of children being taught Muslim prayers does not show a school in England – Full Fact

    August 13, 2026

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    NCIJ Network is an independent digital news platform delivering trusted investigative journalism, European and global news, in-depth analysis, and fact-based reporting with accuracy, transparency, and integrity.

    Facebook X (Twitter) Instagram Pinterest YouTube

    Authorities disrupt nearly 11,000 cybercrime networks in Africa

    October 22, 2026

    Fires Char New Guinea – NASA Science

    October 22, 2026

    Li Qiang and Cai Qi Are Xi Jinping’s Soldiers, Not Successors

    October 22, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Type above and press Enter to search. Press Esc to cancel.