Thousands of colored particles fall, collide, and settle inside a browser window, with a control panel visible for adjusting physics parameters in real time.
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.
- Live Demo: https://caza.la/party
- Source Code: https://github.com/cazala/party
- Author: Juan Cazala (X, GitHub)