Thank you very much Laurent for looking into it. I'll try to ask in their community.

I think that for browsers the package switches (automatically) to ONNX WebAssembly runtime. Maybe there's a way to make it unaware that it's running in node. In any case, I'll try to experiment with it occasionally, and perhaps similar use cases will pop up on GitHub at some point.

Since I ran into similar problems with other native modules (lower priority packages), I thought there might be a Joplin trick to it.