You built this from scratch?! Damn, that's seriously impressive.
Three.js helps a lot by providing a set of tools and math helpers, but we had fun building something bespoke once we narrowed down the core concept! We'll link the git repo in the Itch.io page.
I respect the dedication. By the way, if you get the chance, I'd appreciate if you'd check out our game as well.