Nodlight
experiment2026A little character that looks 3D on a folding iPhone by tracking your head, and dances to whatever's playing.
UIKit · Metal · ARKit · ShazamKit · Vision · FLUX.1-schnell
- Dependencies
- 0 (UIKit + Metal)
- Projection tests
- 248 assertions
- Beat tracker
- 62–188 BPM
- Tempo table
- ~1.8M songs, CC0
- Network
- song ID only: a ShazamKit signature, one tempo shard



When the fold sits open at an angle, the two halves of the screen are two windows into one room. Nodlight tracks your head with the front camera, reads the hinge angle, and redraws both halves with matching perspective, so a small character looks like it's standing on your desk. Raw Metal, no dependencies; tracking and rendering run on the device.
Here's the same trick in your browser, with your mouse standing in for your head:
- Front camera
- ARKit face pose
where your eyes are
- One Euro filter
steady when you're still, quick when you move
- Hinge angle
how far the fold is open
- Off-axis projection
one per screen half, one shared scene, in Metal
When tracking drops out or goes somewhere unsafe
- No pose, or a bad one
- Hold
both halves keep the last safe view; the robot keeps dancing
- Chose
- Head tracking, one picture for both eyes
- Over
- Stereo
- Because
- In Arthur, Booth and Ware's study, depth judgements were wrong 3.2% of the time with head coupling alone and 14.7% with stereo alone. So the effort went into tracking quality, and lag hurts depth more than frame rate does.
- data
- deterministic code
It's turning into a desk companion that dances to music near you. For that I needed song tempos, so I published a public-domain table of about 1.8 million songs. It's split into 4,096 static shards, and the app downloads a whole shard, so the server never learns which song you're listening to.
Codex built the first six builds, then Claude took over, with seven research passes and an outside review that found seven issues. All of it was built on the simulator with a synthetic fold. It now works on a real iPhone Duo.