This is a demo of using nlopt from within a browser.
The library itself was compiled to wasm here
All I did was create-react-app, npm install that library, then fix all the import errors.
This is a proof of concept that I may integrate into CADmium as my 2D sketch constraint solver.
npm start
then look at localhost:3000
Check out the console to see an example result computed by nlopt using the SLSQP solver