This simple project approximates the shape of lightning by generating a random maze using Randomized Prim's algorithm and solving it using breadth-first search.
Why do you think that https://github.com/ml5js/ml5-library is a good alternative to maze-lightning