Kubewarden does not have a JavaScript SDK yet. Recent work done inside of the Bytecode Alliance made possible to compile JavaScript code into WebAssembly. This means it's now possible to create such a Kubewarden SDK.
I've made a small prototype, I think we can pull this off by using the following components:
- Javy: this is the JavaScript -> WebAssembly compiler created by the Bytecode alliance
- Our own Javy plugin to expose custom functions to the Wasm guest
- A JS native library that wraps up the communication between the host and the guest.
The JS policies are going to be compiled as WASI policies and will implement our WASI SDK pattern.
Kubewarden does not have a JavaScript SDK yet. Recent work done inside of the Bytecode Alliance made possible to compile JavaScript code into WebAssembly. This means it's now possible to create such a Kubewarden SDK.
I've made a small prototype, I think we can pull this off by using the following components:
The JS policies are going to be compiled as WASI policies and will implement our WASI SDK pattern.