
Anton Triola - 2016-06-02 16:00:00
Using browser storage is OK, but you can save your logs directly to a file on the local machine and eliminate the need for a server by simply running your js &/or html under nwjs (nwjs.io).
If this code is targeted as a desktop app, you can take advantage of node.js functionality, which is built in to nwjs, and use all html/js etc. web-code as a native app in win, osx and linux with no code changes.
There are no same-origin restrictions, I use nwjs to run a player for live streams and have full use of web-audio api to process the audio live, compressor, eq (no browser will let you do that).
No changes for code that runs on your server is required but now you can offer a desktop app, as well, that 'just runs' for all three major platforms.
Oh yeah, you can also protect your code if you desire with the built-in bytecode generator, it works very well.
Ta, Tony