Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open-sourcing for the webplatform ? #458

Closed
abflow opened this issue Dec 3, 2021 · 5 comments
Closed

Open-sourcing for the webplatform ? #458

abflow opened this issue Dec 3, 2021 · 5 comments
Labels
question Further information is requested

Comments

@abflow
Copy link

abflow commented Dec 3, 2021

Is your feature request related to a problem? Please describe:

It would be great if any website could have its own "WebOS" and be able to launch their own "Web Containers" in order to have offline-first backend applications directly working into the browser.

Describe the solution you'd like:

Is there any plan on open-sourcing the technology or to begin a standardization process which would allow more actors in the industry to participate to a collective project ?

Describe alternatives you've considered:

Would deno be a better choice than node.js as a wasm component (as deno is built in Rust which is directly compilable to wasm and has a nodejs compatibility layer) ?

Additional context:

The idea of Trusted Desktop Activity has been suggested since november 2018 in the chromium repo.

Some similar ideas from the issue in chromium repo:

One could even compile nodejs to webassembly and run node into the browser with special authorizations for example running node in sandboxed VM mode or allowing access to hard drive only for some user-defined paths for example.

A permissions-based security model similar to the one in Deno could be configured by the user into the browser UI when installing the web application

@jrvidal jrvidal added the question Further information is requested label Jan 20, 2022
@milahu
Copy link

milahu commented Dec 9, 2022

alternatives

short answer: not really

longer answer ...

webcontainer is a compatibility layer for node apps, similar to wine (Wine Is Not an Emulator)

Wine provides its compatibility layer for Windows runtime system which translates Windows API calls into POSIX API calls -- https://en.wikipedia.org/wiki/Wine_(software)

so were looking for a compatibility layer between node.js apis and web apis

some node apis have polyfills, see https://github.com/niksy/node-stdlib-browser
but some node apis are hard to polyfill

  • child_process
  • cluster
  • dgram
  • dns
  • fs
  • module
  • net
  • readline
  • repl
  • tls

fs has some mocks, see https://github.com/niksy/node-stdlib-browser#mocking-fs

child_process

related

closed source

@jrvidal
Copy link
Contributor

jrvidal commented Jul 3, 2023

We don't have any immediate plans to open source WebContainers, beyond the API client library in @webcontainer/api.

This might or might not change in the future, but I'm closing this issue for now, as it's not really actionable/trackable. If/when that happened, I'm pretty sure that we would make a lot of noise in https://blog.stackblitz.com/ and other venues.

Thanks for the suggestion!

@jrvidal jrvidal closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2023
@stretch07
Copy link

@jrvidal any plans yet? offline-first would be perfect for my needs

@sanandnarayan
Copy link

just for educational purposes
https://github.com/RealSput/Wenode/blob/main/dist/wenode.js

@stretch07
Copy link

just for educational purposes
https://github.com/RealSput/Wenode/blob/main/dist/wenode.js

This is super cool, I'll take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants