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

PWA support for OS.js applications and framework #801

Open
grue-bleen opened this issue Apr 24, 2022 · 7 comments
Open

PWA support for OS.js applications and framework #801

grue-bleen opened this issue Apr 24, 2022 · 7 comments

Comments

@grue-bleen
Copy link

grue-bleen commented Apr 24, 2022

By doing so, OS.js application packaging would align with PWA standards and WebPack support. This further paves a path to OS.js support for Web Package and Web Bundles which builds on this appmanifest standard.

In a nutshell, it would undoubtedly be a a great roadmap item for OS.js to evolve into an execution environment for bundled web applications. This includes both:

  • OS.js itself as a PWA, and
  • Web Package+Bundles for OS.js applications
@andersevenrud
Copy link
Member

There's been a couple of discussions around stuff like this on Gitter etc. but never really went anywhere.

I'm not really sure if there's much gain in making OS.js interface itself PWA, but having direct support for launching bundles etc. would indeed be nice.

@grue-bleen
Copy link
Author

grue-bleen commented Apr 26, 2022

I think an offline capable web-based application platform is powerful. PWA is perhaps a start, but would not rule out native clients for iOS/Android/Desktop if the need be.

This would be particularly interesting if OS.js were to leverage the wasmer ecosystem to enable offline-first connected application delivery for a true-blue web-based operating system. Perhaps even a self-hosting web operating system based on emception some day?

@andersevenrud
Copy link
Member

I think an offline capable web-based application platform is powerful

Ah, yes. This skipped my mind :)

@hello-smile6
Copy link

I think an offline capable web-based application platform is powerful

Ah, yes. This skipped my mind :)

With navigator.keyboard.lock(), osjs could use more keybindings.

@mikeblackstock
Copy link

great idea, re 'navigator.keyboard.lock(), osjs could use more keybindings.'
Could you submit a patch?

@ajmeese7
Copy link
Member

I'm probably going to use mousetrap to implement a bunch of shortcuts on my fork in the near future, I'll try to bleed them over to the main OS.js whenever possible.

@milahu
Copy link

milahu commented Nov 25, 2022

a self-hosting web operating system

this would require

  • a crash-tolerant runtime with hot-swapping and rollback, like nixos generations
  • an npm package manager with a "patch" feature
  • build must run in the browser (no node-gyp/python/gcc)
  • a versioned filesystem: isomorphic-git + cors proxy + BrowserFS + IndexedDB
  • a service manager? like systemd on linux, to manage service workers

hot-swapping

ideally, preserve the app state like figwheel

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

No branches or pull requests

6 participants