4 ms·
Er, I must be missing an important nuance here, can someone who understands this explain. What is the real world use case for this? I'm afraid I don't understan
by drunkenmagician 4y ago
Er, I must be missing an important nuance here, can someone who understands this explain. What is the real world use case for this? I'm afraid I don't understand what this provides that either wasm or the browser sandbox does not.
- kasajian 4y agoDo you want to run nodejs right inside your browser without a backend? If not, then you can just ignore it. But if you do, then this attempts to solve that problem. If you're asking what's the use case for running nodejs in the browser? I say use your imagination.
- lxgr 4y agoI'm not familiar with node.js, but don't most JavaScript libraries already run in both the browser (including Electron) and node.js? Is it a matter of significantly different system APIs and standard libraries, and this offers a bridge for applications expecting to run in Node, providing that environment in the JavaScript context of a browser? (Or does it actually run Node in WASM?)
- benmccann 4y agohttps://learn.svelte.dev/tutorial/introducing-sveltekit https://learn.svelte.dev/tutorial/introducing-sveltekit was built with web containers. SvelteKit allows developers to create server-side APIs and do server-side rendering and web containers allow those server-side components to run in the browser.
- adamddev1 4y agoThis page has some more helpful explanation https://blog.stackblitz.com/posts/introducing-webcontainers/ https://blog.stackblitz.com/posts/introducing-webcontainers/ It has some nice features like native back-end debugging for things like Next.js apps.