You can use the pre-built npm packages or compile yourself from source following instructions on the individual git repos:
ceres-solver: https://github.com/bare-wasm/ceres GSL: https://github.com/bare-wasm/gsl GTSAM: https://github.com/bare-wasm/gtsam
Taking requests to convert any other c++ libs out there if there's demand for it.