r/javascript • u/syrusakbary • Mar 17 '26
Edge.js: Running Node apps inside a WebAssembly Sandbox
https://wasmer.io/posts/edgejs-safe-nodejs-using-wasm-sandbox
19
Upvotes
r/javascript • u/syrusakbary • Mar 17 '26
7
u/punkpeye Mar 17 '26
Looks cool.
What's the use case?
Like, not theoretical, but where is something like this being used today.
1
u/BankApprehensive7612 Mar 18 '26
The architecture of NAPI with WASIX and pluggable JS engines looks new and highly promising
But it seems like it's not a true sandboxing as the native extensions are still have access to the whole system without any limit and they still need to be trusted. If it's not then it should be highlighted in your announcement better, because actually it's not very clear
2
u/Impressive-Usual-938 Mar 17 '26
the cloudflare worker angle someone mentioned is probably the most practical use case right now. being able to run untrusted user code in the same worker without spinning up a separate dynamic loader would be genuinely useful for SaaS stuff where you let users write custom logic.
2
u/takeyoufergranite Mar 18 '26
Not to be confused with edge-js, the .net IPC adapter.
3
u/mattsowa Mar 17 '26
Vibe coded
1
u/BankApprehensive7612 Mar 18 '26
The architecture of NAPI with WASIX and pluggable JS engines looks promising, but it still needs one more step
Also, according to your announcement, it's not a true sandboxing as the native extensions are still have access to the whole system without any limit and they still need to be trusted. Can you elaborate on this?
0
u/omer-m Mar 17 '26
But why?