Hacker News new | ask | show | jobs
by CompuIves 1065 days ago
The editor on CodeSandbox runs web VSCode, and in that version we emulate Node.js in the browser to run local extensions.
1 comments

I'm curious about the technical details. Could you elaborate on how CodeSandbox runs Node.js in the browser? Does it use a Linux VM like Alpine compiled to WASM?
Oh I think I found the answer.

> Nodebox is a runtime for executing Node.js modules in the browser.

https://github.com/codesandbox/nodebox-runtime

https://sandpack.codesandbox.io/docs/advanced-usage/nodebox