Sorting visualizers are a genre. This one is different in one way that matters: the algorithm code has zero knowledge of the DOM. Bubble, Insertion, Merge, and Quick Sort are plain generator functions that yield at every comparison and swap. The animation driver calls
.next()on a timer and updates bars. Changing "algorithm" means swapping the generator. Nothing else changes.
📦 GitHub: — MIT, ~200 lines of JS (sorters) + ~150 lines of UI, 46 unit tests, zero dependencies, no build step.
🛠 Built by for more.
SOCIAL SHARE CARD GENERATOR