The `chia_wasm` package has JavaScript bindings for the rust implementation of the `chia` crate in wasm.
Use `wasm-pack` to build the wasm `pkg` file used with npm. Install it with:
```
$ cargo install wasm-pack --locked
```
Then build with
```
$ wasm-pack build --release
```