Hacker News new | ask | show | jobs
by johnpt 4422 days ago
Why do you make a live HTML5 editor using Node.js but you don't make it work online? I think it would be much awesome and useful if it worked online and you could embed it on any website.

I was thinking on real time examples where you could play around with the code to learn how stuff works. It would be great for learning how to code or for explaining how a library works.

3 comments

The reason why I made it with node-webkit and not online is because I prefer my editors to be desktop. However, implementing a preview on the download page would be a good idea too.
While I can't speak for the author, one benefit of packaging your app with node-webkit[1]; is that your app is always used inside this container, that bundles a very recent version of Chromium and has a node.js backend with file system access.

[1]: https://github.com/rogerwang/node-webkit

That's what I was going for when I made my GitHub Gist viewer (http://thedata.directory/view/10570653) If you have an HTML gist it'll display it when you put the gist number in the path (as in the link above). It will also give you an embed code so you can collaborate.