How’s about radicle.dev ? Apparently like GitHub, but decentralized like Git.
I tried it, years apart. It's forever experimental, and requires hosting for forever online repo anyway.
Forgejo is also mentioned, to me it's a valid alternative, without the community aspect.