{"action":"created","issue":{"url":"https://api.github.com/repos/andersevenrud/OS.js-v2/issues/182","labels_url":"https://api.github.com/repos/andersevenrud/OS.js-v2/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/andersevenrud/OS.js-v2/issues/182/comments","events_url":"https://api.github.com/repos/andersevenrud/OS.js-v2/issues/182/events","html_url":"https://github.com/andersevenrud/OS.js-v2/issues/182","id":124202175,"number":182,"title":"Terminal with shell and ability to run node CLI programs in the browser","user":{"login":"fazo96","id":2546805,"avatar_url":"https://avatars.githubusercontent.com/u/2546805?v=3","gravatar_id":"","url":"https://api.github.com/users/fazo96","html_url":"https://github.com/fazo96","followers_url":"https://api.github.com/users/fazo96/followers","following_url":"https://api.github.com/users/fazo96/following{/other_user}","gists_url":"https://api.github.com/users/fazo96/gists{/gist_id}","starred_url":"https://api.github.com/users/fazo96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fazo96/subscriptions","organizations_url":"https://api.github.com/users/fazo96/orgs","repos_url":"https://api.github.com/users/fazo96/repos","events_url":"https://api.github.com/users/fazo96/events{/privacy}","received_events_url":"https://api.github.com/users/fazo96/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-29T12:07:10Z","updated_at":"2015-12-29T15:12:49Z","closed_at":null,"body":"Hi! Nice project :+1: \r\n\r\nA cool thing I thought would be the ability to run most node tools __on the client__. This can be done by having a _terminal_ app and a _shell_ running inside it. Then, when executing a program (which would be javascript) the shell injects some stuff into the global env of the executed script, such as:\r\n\r\n- the _require_ function which works like node's _require_\r\n- an implementation of the standard node API such as `fs` and `http` (of course not everything is possible but most of the stuff actually is and implementations for the browser already exsit)\r\n\r\nThis would allow most node CLIs to actually run in the browser and the ability to have a useful, powerful shell in the OS for scripting."},"comment":{"url":"https://api.github.com/repos/andersevenrud/OS.js-v2/issues/comments/167807982","html_url":"https://github.com/andersevenrud/OS.js-v2/issues/182#issuecomment-167807982","issue_url":"https://api.github.com/repos/andersevenrud/OS.js-v2/issues/182","id":167807982,"user":{"login":"andersevenrud","id":161548,"avatar_url":"https://avatars.githubusercontent.com/u/161548?v=3","gravatar_id":"","url":"https://api.github.com/users/andersevenrud","html_url":"https://github.com/andersevenrud","followers_url":"https://api.github.com/users/andersevenrud/followers","following_url":"https://api.github.com/users/andersevenrud/following{/other_user}","gists_url":"https://api.github.com/users/andersevenrud/gists{/gist_id}","starred_url":"https://api.github.com/users/andersevenrud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersevenrud/subscriptions","organizations_url":"https://api.github.com/users/andersevenrud/orgs","repos_url":"https://api.github.com/users/andersevenrud/repos","events_url":"https://api.github.com/users/andersevenrud/events{/privacy}","received_events_url":"https://api.github.com/users/andersevenrud/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T15:12:49Z","updated_at":"2015-12-29T15:12:49Z","body":"So, like a JavaScript REPL with console output ? That could be done!"}}