http://kuukkanen.i2p/posts/native-webui
There aren’t many applications which use this model of operation, but there is
at least one that comes to mind, Syncthing . This works
great for such an application and also means that it can be run as a real server
if the user so chooses. I, for one, do exactly that. I use Syncthing locally on
my machines and also on my server to sync files across all my devices.