This is a Typescript / React website built to solve The New York Times game Letter Boxed.
It utilizes Rust in WebAssembly to run the algorithm locally on the client's machine.
It would have higher word counts than 4, but it is unsafe. If many words and combinations are possible, then this single tab can potentially use gigabytes of memory.
Still, with light optimizations and using compiled Rust, this can spit out thousands of solutions in milliseconds.
Ensure you have Rust installed, as well as wasm-pack (cargo install wasm-pack).
Clone the repository
git clone LINKcd letter-boxed-solver
Prepare the word list (optional, prepared list included)
cd prepwordlistcargo runcd ..
Build the web assembly
cd client/src/wasm/letter-boxed-solverwasm-pack build --target webcd ../../..
Launch the site
npm installnpm run startfor dev mode