Interactive Drosophila brain simulation — 139K LIF neurons from the FlyWire FAFB connectome
95
stars
98
commits
JavaScript
primary language
Aug 13, 2026
updated
Interactive browser simulation of the Drosophila melanogaster (fruit fly) brain. 139,255 neurons and 2.7M connections from the FlyWire FAFB v783 connectome run in real time via a leaky integrate-and-fire model in a Web Worker.
The fly is not scripted. Behavior emerges from signal propagation through weighted neural connections: place food and watch it seek, touch it and watch it startle, change the light and watch it navigate.
Open index.html in a browser (or visit the hosted version). The fly loads the full connectome and begins exploring. Use the toolbar to interact:
The bottom panel shows all 139K neurons firing in real time (WebGL), grouped by region: Sensory, Central, Drives, Motor.
Connectome data from the FlyWire Whole-Brain Connectome:
Dorkenwald, S., Matsliah, A., Sterling, A.R. et al. Neuronal wiring diagram of an adult brain. Nature 634, 124--138 (2024). https://doi.org/10.1038/s41586-024-07558-y
The binary connectome file (data/neuron_meta.bin.gz) is derived from the FlyWire Codex public dataset (FAFB v783). Neurons are classified into functional groups (sensory, central, drives, motor) based on FlyWire cell type annotations.
Forked from heyseth/worm-sim, which simulated the 302-neuron C. elegans connectome in the browser. FlyBrain replaces the worm with a fruit fly and scales from 302 neurons to 139,255.
MIT License -- see license.md for details.
JavaScript
80.2%
CSS
9.2%
Python
4.8%
Shell
2.7%
HTML
2.6%
Interactive Drosophila brain simulation — 139K LIF neurons from the FlyWire FAFB connectome
95
stars
98
commits
JavaScript
primary language
Aug 13, 2026
updated
Interactive browser simulation of the Drosophila melanogaster (fruit fly) brain. 139,255 neurons and 2.7M connections from the FlyWire FAFB v783 connectome run in real time via a leaky integrate-and-fire model in a Web Worker.
The fly is not scripted. Behavior emerges from signal propagation through weighted neural connections: place food and watch it seek, touch it and watch it startle, change the light and watch it navigate.
Open index.html in a browser (or visit the hosted version). The fly loads the full connectome and begins exploring. Use the toolbar to interact:
The bottom panel shows all 139K neurons firing in real time (WebGL), grouped by region: Sensory, Central, Drives, Motor.
Connectome data from the FlyWire Whole-Brain Connectome:
Dorkenwald, S., Matsliah, A., Sterling, A.R. et al. Neuronal wiring diagram of an adult brain. Nature 634, 124--138 (2024). https://doi.org/10.1038/s41586-024-07558-y
The binary connectome file (data/neuron_meta.bin.gz) is derived from the FlyWire Codex public dataset (FAFB v783). Neurons are classified into functional groups (sensory, central, drives, motor) based on FlyWire cell type annotations.
Forked from heyseth/worm-sim, which simulated the 302-neuron C. elegans connectome in the browser. FlyBrain replaces the worm with a fruit fly and scales from 302 neurons to 139,255.
MIT License -- see license.md for details.
JavaScript
80.2%
CSS
9.2%
Python
4.8%
Shell
2.7%
HTML
2.6%