For just text there's Usenet, Freenet, Mastodon. Though these work for more than merely text.
I suppose something like this with git and source code exists on Tor.
During the Arab Spring and Hong Kong protests, Bluetooth was used to share messages whilst the internet was cut off.