virto-network / valor

Create HTTP APIs with a plugin system that runs in the server and the browser.
GNU General Public License v3.0
9 stars 8 forks source link

[native] JS runtime #12

Open olanod opened 3 years ago

olanod commented 3 years ago

With the help of deno-core we can bring a V8 powered JS runtime to the server side to be able to write and run plugins in JavaScript and WASM. Ideally the runtime should support all the APIs available to Web Workers in the browser but we can start simple and support some basic web APIs and fetch, sadly it's still not straight forward to extract the Worker environment out of Deno so the initial implementation will have a reduced API surface and possibly not even import other modules.

olanod commented 3 years ago

Recently the Deno team released the deno-runtime crate in response to this issue. Now it's much easier to bring the JS runtime to Valor than using deno-core directly.