Hacker News new | ask | show | jobs
by jkaptur 1935 days ago
My diff tool, diff.so, is a web app, but it doesn’t send the text to the server (unless you publish). I wish there were a technical mechanism that could guarantee and enforce that, and certify it to users.
2 comments

You could distribute it as a single index.html file, with unobfuscated/unminimized vanilla javascript. The user could then execute it offline no problem.
For fun, you could even use redbean ( https://justine.lol/redbean/index.html ), which has been discussed on here recently. That would give you a tiny executable running a webserver that serves your webapp locally. Probably not much advantage compared to a plain html file, though. Might be smaller overall, since everything would be compressed.
I'm also very impressed by redbean. However, I couldn't get it to work, just like many of the other HNers on that thread.
Right. Worked for me when i tried it with two different web payloads. But i didn't do more than a bit of playing around.
That’s an interesting idea - you could even imagine an “Electron without the networking” so you wouldn’t have to take the whole computer offline.
It doesn't recognize JSON input. Could you please do this, auto-format it and show the diff similarly to Graphtage?