Here is the code I made while learning to use WebAssembly. It runs and visualizes a pathfinding algorithm in the browser.
Click this link: github.io/pathfinding. Requires JavaScript and WebAssembly support; should work in most browsers.
To run locally, you need wasm-pack to build. You need a http server to load the code, and to run it. I use nvm http-server. Run these commands in the root folder:
wasm-pack build --target web
http-server
The program should now run in localhost:8080.
- python http.server didn't work for me