Could you build PWA top of IPFS or something similar and create decentralized apps.
Orchestration of the resources (CPU, memory, storage) to run API services would also be possible in a distribution manner if we can envision something like Kubernetes to manage workload allocation across compute hardware (smartphones?) and if there's a way for participating nodes to obtain container images and storage volumes (IPFS / Tahoe-LAFS?).
Signing and trust would still be an issue, particularly for container images and storage volumes.
[1] - https://withblue.ink/2019/03/20/hugo-and-ipfs-how-this-blog-...