A port of Paldepind's Kran (https://github.com/paldepind/Kran) into (hopefully) idiomatic clojure.