Skip to content
PipeMagic: A WebGPU Node Editor for Image Pipelines

Details

Title
PipeMagic: A WebGPU Node Editor for Image Pipelines
Published

What it is

PipeMagic, by Xavier (Jack), is a node editor for image pipelines that does its entire job inside the browser tab. Drag a photo onto the canvas, wire up a few boxes, and watch the background vanish, an outline crisp itself around what's left, a depth map bloom out of flat pixels, and the whole thing arrive at 2x its original resolution. Not one byte left the page. The real trick is the runtime: once you've shaped a pipeline in the visual editor, you import the npm package, hand it the graph as JSON, and the same logic runs inside your own app in roughly 180 lines of vanilla TypeScript. It's the sticker factory you didn't know you needed, and it asks your GPU to do everything your server would have.

Under the hood it leans hard on WebGPU. Transformers.js carries the heavy ML (RMBG-1.4 for backgrounds, Depth Anything V2 for monocular depth, face-parsing for nineteen-class face segmentation), super-resolution arrives via WebSR's Anime4K CNNs, and the outline node is a hand-rolled Jump Flooding Algorithm in WGSL with a canvas fallback for browsers that haven't caught up. The repo is mostly TypeScript and Vue with a small, readable WGSL surface, so you can open the gpu/ folder and actually see the JFA pass instead of guessing at it.

How it’s made

Technology
WebGPUWGSL
Framework & Tool
Transformers.jsVue.js
Interaction
Drag Interaction

Enjoyed it? Pass it on.

Sharing is the simplest way to thank a maker. Your post credits Xavier Jack.

Post it on

Copy post text

If a composer opens empty, copy this text. For long posts, split it across posts and keep every maker’s credit.

WebGL / WebGPU

A home for the cross-platform GPU community. Independently run, open to contribution.

CommunityNewsProfiles
AboutAboutLegalSite index

An independent community site, not affiliated with The Khronos Group or the W3C.