AI/TLDR

Denis Sergeevitch · 2026-08-18 · notable

DesktopFly — a Mac desktop fly wired from the real FlyWire connectome

DesktopFly puts a 3D fruit fly on a macOS desktop and drives its behavior with a live spiking simulation of 668 real neurons from the FlyWire connectome. Move the cursor at it and the fly escapes in about 4 ms.

DesktopFly repository card on GitHub

A desktop pet whose behavior comes from a real fruit fly wiring diagram instead of hand-written animation.

Key specs

Neurons simulated668
Synapses~19,000
Simulation rate1 kHz

What is it?

DesktopFly is an open-source macOS app that renders a 3D fruit fly on your desktop, where its walking, grooming, sleeping and fleeing are produced by a live neural simulation rather than scripted animation. The circuit comes from FlyWire v783, the reconstructed wiring diagram of an adult Drosophila brain, which contains 139,255 neurons in total.

How does it work?

The app draws 23,210 neuron soma positions and runs a 668-neuron circuit with roughly 19,000 real synaptic connections through a leaky-integrate-and-fire model at 1 kHz. The escape reflex shows the chain end to end: moving the cursor toward the fly feeds looming input to the LC4 and LPLC2 visual neurons, which drive the Giant Fiber escape command neuron through about 1,200 synapses of feedforward inhibition, matching the roughly 4 ms latency measured in real flies.

Why does it matter?

Connectome datasets are usually explored in a browser viewer, one neuron at a time, which makes it hard to feel that the wiring produces behavior. DesktopFly runs the circuit in real time on a laptop and ties its output to something you can poke with a cursor, which makes it a compact teaching example for anyone learning spiking network simulation. The code is MIT-licensed and the derived data files are CC BY-NC 4.0.

Who is it for?

computational neuroscientists and curious developers

Try it

git clone https://github.com/DenisSergeevitch/desktop-fly && ./build.sh

Sources · 2 outlets

Tags

  • neuroscience
  • connectome
  • computational-biology
  • spiking-neural-network
  • neural-simulation
  • flywire
  • drosophila
  • macos
  • swift
  • open-source
  • showcase

← All releases · Learn AI