📜 ⬆️ ⬇️

OS.js: JavaScript desktop

Developer Anders Evenrud (Anders Evenrud) made a curious project OS.js , which he calls "the operating system in Javascript."



The name will change soon, because it does not reflect the reality: in fact, OS.js is not an operating system, but a shell and window manager in the style of Linux, with a set of applications for HTML5 and CSS2 +, with a PHP backend. Applications include a clock (HTML5-SVG, CSS2), a video player (HTML5-Video), an audio player (HTML5-Audio), a file manager, a terminal, a graphics editor (HTML5-Canvas), games, and more. They are developed mainly on Glade Interface Designer (GTK + 3 XML).

The performance of an average PC is quite enough for simultaneous operation of 20 windows, including a video player, audio, etc. in full-screen mode Chrome / Chromium 14+ for Linux. The OS emulator also works on mobile devices for Android and iOS, although it is not yet optimized for them (window size, etc.). There are some problems under Opera and IE due to poor Glade / GTK CSS support. You can watch OS.js in action on video or run a working prototype in your browser with TCP / IP disabled. Note: the virtual file system does not work under Windows yet.
')
OS.js includes a built-in compiler and a virtual file system, so you can develop new applications and work with files normally. Applications interact through public APIs with a server-side script that emulates the functions of the operating system (file system, network calls, services, etc.).

The entire OS.js project will soon be published under GPL v.3 (the address of the future page on github), and now the author can send the source code if you have an interest in the project. The OS emulator is quite compact: <300 KB in JavaScript (including applications, etc.), <200 KB in CSS, <300 KB in XML (including applications) and <200 KB in PHP.









PS The idea of ​​web desktops is not new, just recall eyeOS and CorneliOS .

Source: https://habr.com/ru/post/132983/


All Articles