Prototype of some ideas I’ve had for a while, specced out here: https://gist.github.com/barnabywalters/6188240