Fly Brain — a dead insect's sense of self, running in your browser

One male fruit fly. Killed, fixed in resin, sliced into thousands of sections, every neuron and every synapse traced. The animal is gone; its complete wiring diagram — 166,700 neurons, the MaleCNS connectome released by HHMI Janelia and collaborators in September 2026 — is a public file. This site switches two of its circuits back on. They run in your tab, every cell and connection real, and nothing you do here leaves your browser.

★ Open source on GitHub — the wiring, the simulators and every modelling choice

The compass: a ring of EPG cells with one bright bump and a needle, beside the real 3D skeletons of the same 152 neurons
Part 1 · the self

The compass

152 neurons that tell a fly which way it is facing. A bump of activity sits on a ring of cells; the bump is the heading. Steer it, let go, and it holds — nothing stored anywhere, no weight ever changes. The geometry of the wiring holds it. Memory without learning.

Turn the fly →
The learning centre: 4,064 Kenyon cells as a sparse constellation for an odour, beside the 3D skeletons of the mushroom body
Part 2 · the lesson

The learning centre

4,733 neurons of the mushroom body, with the one synapse type the animal makes plastic. Show it an odour and give it sugar and it comes to like that odour; shock it on another and it learns to avoid that one — specific, reversible, forgettable. Pavlov, on the original hardware.

Teach the fly →
The complete MaleCNS connectome: the brain and the ventral nerve cord of one male fruit fly, every neuron rendered
The whole of it: brain, neck and nerve cord of one fly, every neuron rendered from the reconstruction. The two pages above run on pieces of this. Image: MaleCNS / Janelia Research Campus (HHMI), CC BY 4.0.

The vertigo, briefly

A heading is the smallest self there is — the point from which "left" and "right" mean anything at all. For its whole life this fly's brain kept that bearing as a single bump of activity on a ring of a few dozen cells, nudged round by the animal's own turns, held steady in the dark. The animal no longer exists. The ring does. It is holding a bearing right now, in your tab, updated by your hand, for a body it no longer has. The capacity to hold a heading was never in any cell; it was in the arrangement — and the arrangement survived the death of everything it was arranged in.

A connectome is a photograph of a process. These pages run the photograph as a process again. Whether that is resurrection, re-enactment or ventriloquism is a question we are not qualified to settle, so we did the honest thing and measured it instead.

What is real: every neuron, its transmitter, every synapse count between them, the ring order (derived from the wiring, then checked against the anatomists' labels: 18 for 18), which dopamine neurons teach which output neurons. What is ours: cartoon neuron dynamics (leaky integrate-and-fire), a handful of gains, and the modelling choices written up in the repository. The 3D panels draw the reconstructed skeletons of the actual neurons in each simulation, lit by their own spikes. Best on a laptop or desktop with a mouse; the learning centre downloads about 15 MB of neurons.

The series

Part 1 is the compass, Part 2 the learning centre. Later parts: the experiment (the brain as an instrument), the room (visual landmarks anchoring the compass), the eye (the motion detectors), and finally all 166,700 neurons at once. The code, the data pipeline and the write-up are on GitHub; the simulators there run the same circuits in Python, and the pages here are the same pages, with the fly moved into a Web Worker.