100k particles
Simulate up to one hundred thousand individual particles simultaneously, each with unique state and behavior.
emergent particle life
capabilities
Simulate up to one hundred thousand individual particles simultaneously, each with unique state and behavior.
Define distinct species with custom interaction rules. Watch emergent patterns form as types attract and repel.
A configurable 6×6 attraction–repulsion matrix governs inter-type forces, enabling complex flocking and self-organization.
All simulation logic runs on the GPU via WebGPU compute shaders for maximum parallelism and performance.
Interactive frame-by-frame rendering with responsive controls. Tweak parameters and see results instantly.
Switch between 7 curated rule sets — Cells, Worms, Galaxy, Jelly, Crystals, Chaos or your own custom matrix.
Drag on the simulation to attract particles toward your cursor. Watch the flock follow your hand.
MIT-licensed. Fork, modify, and experiment freely. Contributions and new particle life discoveries welcome.
workflow
Distribute thousands of particles across a 2D field, each assigned one of six types with random initial positions and velocities.
For each particle, the GPU evaluates attraction or repulsion from every nearby particle based on the configurable rule matrix.
Simple local rules produce complex global patterns — flocking swarms, oscillating clusters, and stable orbiting structures.
get started
git clone https://github.com/kvnlnk/glitch.git
cd glitch
npm install
npm run dev