Takes your javascript code, applies it to a random array of numbers and visualises the changes step by step.
- it uses JS Proxies to register each transformation of an array, that will become a frame in animation
- it moves the execution of a customer script to a separate thread in order to keep the main thread unlocked (e.g., if you need to sort 10M items) Pay attention: running 3rd party code this way is insecure.
- it creates a web worker with a custom code on the fly by using a Blob API.
- clone the repo and run a static http-server from this folder
- by default, it uses a quick sort algorithm. You can update this in
index.html
. - by default, it uses an array of 1000 random numbers. Adjust that in
index.js