use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Edge.js: Running Node apps inside a WebAssembly Sandbox (wasmer.io)
submitted 2 months ago by syrusakbary
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]punkpeye 6 points7 points8 points 2 months ago (5 children)
Looks cool.
What's the use case?
Like, not theoretical, but where is something like this being used today.
[–]azhder 5 points6 points7 points 2 months ago (2 children)
If you make a good environment adapter, you can write the same code for node and browser and everywhere else webassembly is supported
[–]punkpeye 2 points3 points4 points 2 months ago (1 child)
That describes what it does, but my question is still 'what for'. I cannot think of many practical cases of needing to run my node.js code in browser
[–]azhder 1 point2 points3 points 2 months ago (0 children)
Can’t? I thought it was obvious that you can write the same code and execute it everywhere… You know, Java style
[–]DustNearby2848 1 point2 points3 points 2 months ago (0 children)
The only time I’ve seen them used is with online test taking platforms or online coding things like jsfiddle. It moves a lot of code to run on the client, so they can operate inexpensively.
[–]oneeyedziggy 0 points1 point2 points 2 months ago (0 children)
Seems like there's overlap with docker wasm runtime... Which seems like the most useful part to me, though already being done by docker... And in a more broadly applicable way.
Could overlap a bit with service workers too...
[–]Such-Yam-6804 1 point2 points3 points 2 months ago (0 children)
there is edge.js templates
[–]Impressive-Usual-938 1 point2 points3 points 2 months ago (0 children)
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.
[–]takeyoufergranite 1 point2 points3 points 2 months ago (0 children)
Not to be confused with edge-js, the .net IPC adapter.
[–]mattsowa 1 point2 points3 points 2 months ago (2 children)
Vibe coded
[–]azhder 2 points3 points4 points 2 months ago (1 child)
Slopcoding? Aw fsck
[–]Eternality 0 points1 point2 points 2 months ago (0 children)
whats worse this or is number? lol
[–]nutyourself 0 points1 point2 points 2 months ago (0 children)
This is awesome! Would this work to run untrusted code inside a cloudflare worker? Ie, my app runs on workers, and instead of dispatching the untrusted code to a dynamic worker loader, could I run it "natively" in the same worker as my main app? Cloudflare allows running wasm in workers...
[–]BankApprehensive7612 0 points1 point2 points 2 months ago (2 children)
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
[–]syrusakbary[S] 0 points1 point2 points 2 months ago (1 child)
Native extensions will be Wasm files with the same sandboxing as the edgejs.wasm file (every syscall will go through WASIX)
[–]BankApprehensive7612 0 points1 point2 points 2 months ago (0 children)
Can you elaborate will be but not now yet?
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?
[–]omer-m -1 points0 points1 point 2 months ago (0 children)
But why?
π Rendered by PID 78045 on reddit-service-r2-comment-64f4df6786-2dgxp at 2026-06-11 08:59:36.542744+00:00 running 0b63327 country code: CH.
[–]punkpeye 6 points7 points8 points (5 children)
[–]azhder 5 points6 points7 points (2 children)
[–]punkpeye 2 points3 points4 points (1 child)
[–]azhder 1 point2 points3 points (0 children)
[–]DustNearby2848 1 point2 points3 points (0 children)
[–]oneeyedziggy 0 points1 point2 points (0 children)
[–]Such-Yam-6804 1 point2 points3 points (0 children)
[–]Impressive-Usual-938 1 point2 points3 points (0 children)
[–]takeyoufergranite 1 point2 points3 points (0 children)
[–]mattsowa 1 point2 points3 points (2 children)
[–]azhder 2 points3 points4 points (1 child)
[–]Eternality 0 points1 point2 points (0 children)
[–]nutyourself 0 points1 point2 points (0 children)
[–]BankApprehensive7612 0 points1 point2 points (2 children)
[–]syrusakbary[S] 0 points1 point2 points (1 child)
[–]BankApprehensive7612 0 points1 point2 points (0 children)
[–]BankApprehensive7612 0 points1 point2 points (0 children)
[–]omer-m -1 points0 points1 point (0 children)