Javy-generated modules are by design WASI only and follow the command pattern.
Any input must be passed via stdin
and any output will be placed in stdout
.
This is especially important when invoking Javy modules from a custom embedding.
In a runtime like Wasmtime, wasmtime-wasi can be used to set the input and retrieve the output.
To embed Javy in a Node.js application see this example.