Plebbit is a selfhosted, opensource, nonprofit social media protocol, this project was created due to wanting to give control of communication and data back to the people.
Plebbit only hosts text. Images from google and other sites can be linked/embedded in posts. This fixes the issue of hosting any nefarious content.
ENS domain are used to name communities.
Plebbit currently offers different UIs. Old reddit and new reddit, 4chanw, andhave a Blog. Plebbit intend to have an app, internet archive, wiki and twitter and Lemmy. Choice is important. The backend/communities are shared across clients.
You spin up a root zone for your tld, and you point your machines at it, and whomever else is interested in using your TLD. Or, you pay ~50K to ICANN, and meet some technical requirements (Last I checked, its like 8 zone servers, in 5 different geographical locations, response time maximums, etc).
Alternativley, you can also work with OpenNIC to do this, as they already have a number of OpenNIC resolvers, root zones. For this, your name servers you run need to meet their Tier I requirements.