Fly District: A Fruit-Fly Connectome Simulated Live in the Browser
AI products · Contributor: habitat, dashboard and learning, on an upstream project · live
A browser world where a fruit fly lives, learns and dies while its whole measured wiring diagram runs as a simulation beside it.
Open: https://fly.siddhvasudev.com
The detail
Built on an existing open-source WebGPU fly-brain project by another author, whose history and notice are preserved. My work adds the habitat, the dashboard, learning across lifetimes and a sponsor-marketplace test.
All 139,255 neurons of the measured wiring run as a spiking simulation on WebGPU, and an anatomical body runs in MuJoCo. The fly finds food and water, rests, forages and lays eggs. Directly below the world sit every neuron, a live spike raster and the retina. You can give reinforcement, freeze learning, change a synapse, pulse a neuron or disconnect it.
The limits are stated on the page: the wiring and body are measured, the dynamics, senses, physiology and inheritance are authored models, and the whole-organism coupling has not been biologically validated.
TypeScript, WebGPU, Three.js, MuJoCo, Vite.
What I did
- Built the habitat on top of an existing open-source WebGPU fly-brain project, with the upstream history and notice preserved
- Added a world where the fly finds food and water, rests, forages, lays eggs and dies
- Paired the world with one continuous dashboard: every neuron, a live spike raster, the retina, connectivity and lineage
- Added two online learners and inheritance of what was learned across generations
- Moved blocking body simulation into a worker and cut simulation overhead
- Documented exactly what is measured and what is an authored model
Stack
TypeScript, WebGPU, Three.js, MuJoCo, Vite, Simulation, Playwright, Open Source
Case study: https://www.siddhvasudev.com/projects/fly-district-a-fruit-fly-connectome