rclabs · distillateexperiment EXP-003
shippedEnigma
- Question
- Can I recreate the Enigma machine as an interactive 3D sim people can actually turn?
- In short
- WWII cipher machine in the browser
- Started
- 2026
- Apparatus
- Three.jsCloudflare Workers
- Specimens
- Live ↗
- Write-up
- Read the full story of how it works →
Curious about
Most Enigma demos are flat diagrams or text boxes. I wanted the physical machine: rotors you can step, a lampboard that lights, a plugboard that changes the path, and the same settings that encipher also decipher. Bonus if the breakers sit on the same stage.
Built
A Three.js Enigma simulator in the browser — lampboard, keyboard, plugboard, named camera shots (rotors, drums, internals), OrbitControls and bloom on the amber lamps. Model switches for Enigma I / II and related paths, plus Bomba and Turing break views that can load a stop back into the machine. Served as a Cloudflare Worker with static assets at enigma.rclabs.in.
Learned
- Cipher fidelity beats prettier chrome. Once rotor stepping and the plugboard were honest, the object stopped feeling like a toy.
- Named camera shots teach faster than a help wall. Free look is for the curious; the shots are for everyone else.
- A thin Worker plus SPA assets is enough hosting for a sim this size. The machine was the hard part.
next specimen → EXP-004 · bb