The regexsolver.com website and its live demo. The demo runs regexsolver in the browser, compiled to WebAssembly: nothing is sent to a server.
wasm/: the demo's engine, a thinwasm-bindgenwrapper around theregexsolvercrate, with neural synthesis to turn automata into short regexes (model:alexvbrdn/kleene2-5m-b16-t128, fetched from the Hugging Face Hub by the browser).site/: the Next.js static export.public/engine/worker.jsruns the engine in a Web Worker;src/lib/engine.tsis the page side.web-shared/: brand assets, fonts, analytics and site links.
Needs Rust with the wasm32-unknown-unknown target, the wasm-bindgen CLI at
the version wasm/Cargo.toml pins, and Node.js 22.
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli --version 0.2.130
cd site
npm ci
npm run build:wasm # engine -> public/engine/pkg/
npm run devEvery push to main builds and publishes to GitHub Pages
(.github/workflows/deploy.yml) at https://regexsolver.com. Its
DEPLOY_TARGET can be set back to preview to build for
https://regexsolver.github.io/regexsolver.com/ instead, for a site without the
custom domain.