Unless you're self-hosting on the same computer you're using, a web app is, by definition, software as a service. But then, either you're just... running a program, or your self-hosted application lives somewhere else that still requires power and network connectivity.
I promise, everyone, it is very legal and very cool to just write applications that run without TCP roundtrips. I promise.