Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

regexsolver.com

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 thin wasm-bindgen wrapper around the regexsolver crate, 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.js runs the engine in a Web Worker; src/lib/engine.ts is the page side.
  • web-shared/: brand assets, fonts, analytics and site links.

Develop

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 dev

Deploy

Every 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages