For his first game, Kasper used Tree.js. For his second game, he switched to Pixi.js for graphics and Box2D for physics. He also built his own framework on top of RxJS for better control over the code.