The question is too broad ... you need to be more detailed about what you are trying to achieve. Something like Facebook? Something like TikTok? Something like Twitter?<p>Video sharing? Audio? GIFs?<p>Replies? Discussions? Groups? DMs and PMs?<p>Who is your audience? People who can install Docker? Or people who don't know the difference between a browser and an "app"?<p>Look up and read about XMPP, Matrix, and ActivityPub. Here's a document:<p><a href="https://docs.joinmastodon.org/" rel="nofollow">https://docs.joinmastodon.org/</a><p>That talks a little about the protocols and the software and might serve as a reasonable starting point.
The Interplanetary File System is a good start for decentralizing websites. <a href="https://docs.ipfs.io/" rel="nofollow">https://docs.ipfs.io/</a><p>I'm waiting to hear from the rest of HN, I've been curious about decentralized websites for a while.