I put a fruit fly's smell-learning circuit in a browser, then gave it a little room to explore.
In Whiff, you can pair a scent with food and watch the fly's learned preference change. Open the brain inspector and you can see the activity while the simulation runs. I wanted people to be able to poke at it and see what changed, so the teaching section has lights and knobs you can adjust yourself.
The wiring comes from FlyWire, with simplified neurons and an artificial movement controller. The 3D world and interface are my code, built with TypeScript and Three.js, with simulation work in Web Workers.