🪰Drosophil-Anki: a fruit fly with a real brain studies with you

AnkiWeb addon 888374074

Places a 3D fruit fly with a simulated connectome-based brain beside your reviews, reacting, learning via card answers, plus exams, leaderboards, costumes and focus controls.
AI-generated summary; may contain mistakes.

fsrsstatisticsprogress-trackinggamificationmotivation

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
6 (👍 6 · 👎 0)
Updated
2026-09-29
Anki versions
26.09.1~
License
MIT (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
JSON, JavaScript, Dart, Python, HTML, Verilog
Description language
en

Maintenance

active

  • Last update or commit: 2026-09-29 (33 days before the snapshot).
  • Test files: 4.
  • GitHub Actions workflows: 1.
  • Commits in the last year: 45.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

GitHub

Repository
ethanwchen/anki-fly · more by ethanwchen
Stars
⭐ 1 · forks 0 · open issues 0
Last commit
2026-09-29
License
MIT
Languages
JavaScript, Python, TypeScript, HTML, Shell
Tests
4

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
25.0226.092026-09-29
26.09.1+2026-09-29
History across monthly snapshots

Loading…

Similar addons

Advanced FSRS Simulator

Simplifies Anki's FSRS simulator by letting users simulate a deck, its subdecks, or a preset, inspect included cards and counts, adjust settings, and compare runs on one graph.

schedulingfsrsstatisticsdeck-management

1 votes 21% approval 👍 1 · 👎 0 Anki 2.1.2~ Updated 2026-09-23
Daily Study Planner

Estimates daily review time by deck, adjusts for fatigue and retention, splits sessions into 30-minute morning, afternoon and evening blocks, simulates faster speeds, and allows excluding decks.

review-flowprogress-tracking

2 votes 34% approval 👍 2 · 👎 0 Anki 23.09~ Updated 2026-08-17
Exam Simulator - NB

Builds custom MCQ exams from note banks with filtering, timing, scoring, a dedicated exam interface, and structured post-exam review.

review-flowtimertaggingquiz

9 votes 70% approval 👍 9 · 👎 0 Anki 25.09.2~ Updated 2026-10-30
DeckMoL2.1

Imports a folder of ordered photos into a structured deck of chained cards, linking each photo to the next for Method of Loci memory-palace practice.

card-creationimport

3 votes 0% approval 👍 0 · 👎 3 Updated 2018-04-17

Description

Drosophil-Anki puts a tiny, anatomically real fruit fly at a desk in the corner of Anki. It studies your cards with you, and its brain is real: a slice of the fruit fly connectome (MaleCNS v1.0, Janelia and Google, 2026) running as a live spiking-neuron simulation while you review.

Drosophil-Anki

A brain, not a mascot

  • Every card is a smell to the fly. Good and Easy fire its reward neurons, Again fires its punishment neurons, and its synapses rewire the way a real fly learns. Watch the neurons fire; hover the brain to see which neuron is under the cursor.
  • Sync replays your existing review history into the fly's brain in seconds.
  • Two real brains: the male fly runs the MaleCNS connectome, the female fly runs the FlyWire connectome.

A fly with a personality

  • A 3D fly from the flybody anatomical model, at a little desk with your index cards and its own Again / Hard / Good / Easy buttons, which it presses along with you.
  • Moods from your session: it dances and does zoomies on a strong run, crashes out and sulks after too many Agains, dozes off at its desk when you leave.
  • It speaks rarely, on purpose. Only for things worth noticing, and only for streaks that are impressive by your own standards.

Fly Exam (Ctrl+Shift+E): pick decks and the fly sits an exam on them, pencil in hand. The score is Anki's own FSRS prediction of what you would remember right now, explained in plain words, with your true retention, again rate and consistency, and a short diagnosis with the research reason behind each flag.

Fly Exam

Make it yours: name it, give it a team tag, level it up with XP from every review, and dress it from a Wardrobe of 40 costumes unlocked by studying (hats, sunglasses, cat ears, seasonal outfits, and a medical and language-learner set).

Fly race (optional): a weekly leaderboard on the home screen of cards reviewed by you and your friends, each fly's face next to its name, a green dot for who is studying right now, and profiles you can click. You choose what friends can see. Only your fly's name, look, level and weekly totals are shared, never cards, decks or individual answers. Turn it on under Tools > Drosophil-Anki > Friends: show my fly code.

Not distracting: Deep Focus (Ctrl+Shift+D) keeps it still and silent; minimize, resize or hide it (Ctrl+Shift+F). A gentle nudge to take a break when your answers get slower and wronger, and a chip pointing at the cards you keep missing.

Install: Tools > Add-ons > Get Add-ons, code 888374074, restart Anki, start reviewing. Anki 25.02 or newer on desktop (Mac, Windows, Linux). Tested most on macOS; please report issues on GitHub rather than in reviews: https://github.com/ethanwchen/anki-fly/issues

Open source (MIT): https://github.com/ethanwchen/anki-fly. MaleCNS data CC BY 4.0; FlyWire data CC BY-NC 4.0 (this add-on is free and non-commercial); neuron model after Shiu et al. 2024; fly body from the flybody project (Apache-2.0); three.js (MIT).

Buy Me a Coffee: https://buymeacoffee.com/ethanpolar :)

README

Drosophil-Anki

A fruit fly with a real brain studies with you in Anki.

The fly in the corner is not a mascot. Its brain is a slice of the fruit fly connectome (MaleCNS v1.0, Janelia and Google, 2026) running as a live spiking-neuron simulation while you review. Your cards are its smells, your answers are its dopamine, and you can watch the neurons fire.

Install: Anki → Tools → Add-ons → Get Add-ons… → code 888374074 → restart Anki. AnkiWeb page: https://ankiweb.net/shared/info/888374074 · Anki 25.02+ on Mac, Windows, Linux.

Dr. Buzz studying

What it does

A brain, not a mascot

  • Every card is a smell. Its note id activates olfactory neurons; a sparse set of Kenyon cells responds, as in the real wiring.
  • Good and Easy fire the reward (PAM) neurons, Again fires the punishment (PPL1) neurons, and the fly's Kenyon-cell → MBON synapses rewire the way a real fly learns. The memory bar shows how it feels about the current card.
  • Hover the brain to see which neuron and transmitter is under the cursor.
  • Sync replays your whole review history into the fly's brain in seconds.
  • Two real brains: the male fly runs MaleCNS, the female fly runs the FlyWire connectome.

Brain view

A fly with a personality

  • A 3D fly from the flybody anatomical model at a desk with your cards and its own Again / Hard / Good / Easy buttons, which it presses along with you.
  • Moods from your session: dances and zoomies on a strong run, a crash-out and a sulk after too many Agains, asleep at its desk if you leave.
  • It speaks rarely, on purpose: only for things worth noticing, and only for streaks that are impressive by your own standards.

Fly Exam (Ctrl+Shift+E): pick decks and the fly sits an exam on them, pencil in hand. The score is Anki's own FSRS prediction of what you would remember right now, explained in plain words, with true retention, again rate and consistency from your review log, and a short diagnosis with the research reason behind each flag.

Fly Exam

Exam report

Make it yours: name your fly, give it a team tag (BCM, UCLA…), level it up with XP from every review, and dress it from a Wardrobe of 40 costumes unlocked by studying: hats, sunglasses, cat ears, seasonal outfits, and a medical and language-learner set (stethoscope, scrub cap, head mirror, goggles, surgical mask, language headset, dictionary).

Wardrobe

Fly race: a weekly leaderboard on Anki's home screen of cards reviewed by you and your friends, each fly's face and costume next to its name, a green dot for who is studying right now. Click a fly for its profile; your own profile has checkboxes for what friends may see, and friends can be removed from theirs. Friends are added by fly code. Only your fly's name, look, level and weekly totals are shared, never cards, decks or individual answers.

Fly race

Friend profile

Not distracting

  • Deep Focus (Ctrl+Shift+D) keeps the fly still and silent.
  • Minimize it to a tiny fly, resize it (drag the top-left corner), or hide it for the session (Ctrl+Shift+F).
  • A gentle "take a break?" when your answers get slower and wronger than at the start of the session, at most every 15 minutes.
  • A "to revisit" chip pointing at the cards you keep missing.

Full demo video: docs/anki-fly-demo.mp4

Development

./build.sh                                  # -> dist/anki-fly.ankiaddon (refuses to package without the brain data)
python3 tools/extract_subgraph.py           # rebuild the male pack from neuprint-cns.janelia.org (public, no token)
python3 tools/extract_subgraph.py --dataset female
node tests/test_sim.mjs                     # LIF engine unit tests + real-subgraph sanity
node tests/test_circuits.mjs                # male pack: sugar→MN9, loom→GF, sparse odor code, plasticity, recovery
node tests/test_circuits_female.mjs         # the same on the FlyWire pack
<venv with aqt>/bin/python tests/test_addon.py   # offscreen Anki: hooks, exam data collection
cd backend && npm test                      # friends server (Cloudflare Worker)

backend/ is the friends server (Cloudflare Worker + KV). The add-on points at the official deployment by default; npx wrangler deploy publishes your own and friends_server in the config selects it.

Model notes

  • Dynamics follow Shiu et al. 2024 (Nature): τ_m 20 ms, V_rest −52, V_th −45, V_reset −52 mV, refractory 2.2 ms, delay 1.8 ms, τ_syn 5 ms, 0.275 mV × synapse count, sign by predicted transmitter (ACh +, GABA/Glu −).
  • Subcircuit: uniglomerular PNs, all Kenyon cells, APL/DPM, MBONs, PAM/PPL1 DANs, LC4 → DNp01 (giant fiber), sugar GRNs with their 1- and 2-hop interneurons to MN9/MN1/MN6, walking/grooming/turning descending neurons, and a 4,000-neuron open-loop silhouette. Edges with ≥ 3 synapses.
  • Deliberate deviations, each chosen after testing: neuromodulatory neurons have no fast synaptic effect (their effect is the plasticity rule); APL/DPM output is scaled because they are non-spiking, graded neurons; antennal-lobe excitatory local neurons are excluded; LC4 is feed-forward; a sustained-loop quench stands in for the adaptation and inhibition the subgraph lacks; silhouette neurons never feed back.
  • Plasticity: PAM depresses eligible KC→glutamatergic (avoidance) MBON synapses, PPL1 depresses KC→GABA/ACh (approach) MBON synapses; 3 s eligibility trace; slow recovery.

Data and licenses

  • MaleCNS v1.0 connectome: CC BY 4.0, Janelia Research Campus / Google Research, via neuPrint.
  • FlyWire FAFB v783 connectome (female fly): CC BY-NC 4.0, Dorkenwald et al. 2024 / Schlegel et al. 2024. This add-on is free and non-commercial.
  • Fly body meshes: flybody (Turaga Lab / Google DeepMind), Apache-2.0. three.js: MIT. Add-on code: MIT.