Imagine something like bittorrent or ipfs (?) would be part of web browsers: ad-hoc publishing without the headache for "servers".

Check out Beaker Browser! It’s pretty much exactly what you’ve described: https://beakerbrowser.com/

Beaker is no longer in development IIRC, you might want to check AgregoreWeb which supports Hypercore, IPFS and more https://github.com/AgregoreWeb/agregore-browser