Skip to content
Party: A WebGPU Particle Physics Playground

Party: A WebGPU Particle Physics Playground

Thousands of particles swarm and collide with real physics, all running on WebGPU compute shaders. Party lets you tweak gravity, forces, and constraints live. It's part demo, part instrument.

Details

Published

What it is

There's a particular joy in watching things fall. Not destructively, but expressively. Juan Cazala's Party is a WebGPU particle playground where thousands of points swarm, collide, and settle according to physics you can mess with in real time. It's the kind of thing you open to test for two minutes and close forty minutes later, unsure where the time went. The particles move with weight. They feel like they have opinions about gravity.

What makes this interesting technically is how it handles scale. WebGPU's compute shaders do the heavy lifting, running collision detection and physics simulation on the GPU where it belongs. The result is buttery smooth even when you're throwing absurd numbers at it. The playground interface lets you tweak parameters live, which turns the whole thing into a kind of instrument. You're not just watching a demo. You're conducting it.

The source code is public, so if you want to see how he's structuring the compute passes or handling the physics step, it's all there. Worth a dig.

How it’s made

Technology
WebGPU