I just learned that service workers are finally getting to the state where JavaScript in the browser can handle HTTP requests browser-side!
A couple years ago, I was working on making a web ide that used git in the browser to sync and edit code entirely offline in any browser. Using appcache manifest I was able to even make the page reload offline. Data was stored in local storage and indexed db.
There was one major flaw though. I had no reasonable way to run the code. Sure I could eval some JavaScript snippets or even run them in a web worker (dynamically creating worker urls from blobs from user text). But what I really wanted and couldn't do was service HTTP requests and develop a web app in the browser.
So here's the basic idea for the next generation of tedit:
- Command line for primary interface, will have smart auto-completion, suggestions, inline help links and syntax highlighting. But it will be a command line!
- Apps can be launched from the command line. There will be a text editor wid