If you’re in the BuckleScript ecosystem and compiling to JavaScript, there’s no simple, recommended way to use OPAM ecosystem packages. You could download the package source and try to bootstrap a new BuckleScript project inside it, but then you need to deal with transitive dependencies and possible C code.
At least the first problem though is solved by using the js_of_ocaml compiler, since that is firmly in the OPAM ecosystem and can handle transitive OPAM dependencies.
You can certainly install opam and use opam packages using any build system you’d like (bsb-native, jbuilder).
If you’re interested in getting opam package with an nom-like workflow I’d recommend checking out esy, both bsb-native and jbuilder work with it.