Decentralized Git & Github Alternatives
As touched upon in my previous impromptu post, GitHub recently either suspended or deleted my account. Exactly which is which I don’t know - I’m still yet to receive an email, notification, or response to my ticket even acknowledging that anything happened. All I know is that late Friday afternoon I tried logging in and the login page kept redirecting me to a /suspended url that otherwise looked like a login page, and all of my data was completely inaccessible. I submitted a ticket and waited for both a ticket response and some sort of automated “hey, we suspended you for x, y are your options” with no luck. A half an hour to hour later I spammed out my help message to my blog, Nostr, ActivityPub, Hacker News, and X/Twitter. A few hours after that, my account was back online and working like nothing ever happened.
The deletion itself was a bit stressful, however. I had some data that only existed on GitHub; old projects where I’d deleted the local copies that’ve been completely nuked (such as NI.PY), or newer vibe coded projects like Story Tool where I was organizing my chapter outline of Untitled Novel pt. 2 - having a backup of the application data but not the web app itself. I had no mirrors, or even backups, of a large swath of the data on my GitHub profile; standing to lose a lot if I didn’t get my account back.
This was absolutely on me. Crunching the numbers - including this post - my blog hosts 45 posts going back three and a half years. Eight of those posts could be classified as “meta” posts: site updates, personal updates, blogging challenges, etc; leaving me with 38 standard blog posts. Fourteen of those, or 38%, were primarily about either A: decentralized &/or federated protocols, or B: data archival. You know how I often like to say something along the lines of “Don’t take my posts too seriously, they’re just ‘Nate talks about his interest of the week.’?” Well, this is why. I knew exactly what could go wrong if I relied on a centralized service such as Microsoft’s GitHub with no backup plan. And I knew of the alternatives - I mentioned Radicle in a blog post in August, and was asking about NGit in an Agora chatroom in October. And yet, despite my tendency to archive random stuff, it never even dawned on me to keep a copy of my own darn GitHub profile. At least not until Friday, November 20th, 2026, at 3/4ish PM EST.
While it was still down I migrated my website from GitHub Pages to CloudFlare Pages, being saved by owning my own domain. Going forward, every random web app or project I want to host will be on a (sub)domain I control, instead of relying on a 0n4t3.github.io/repo domain for even stupid, one off, vibe coded webapps. Owning a domain1, and keeping a local backup of all repos, will be the biggest insurance against my GitHub account being nuked again - and something I would urge you, dear reader, to do if you haven’t already. That said, I’ve resolved to also mirror my repos elsewhere. It was Friday, November 20th, 2026, at 10ish PM EST when I learned a local git repo can have multiple remotes. I repeat: I’m a moron, don’t take my writings or advice too seriously. I wound up settling on mirroring most of my content on ngit, although there’s quite a few options to mirror content on. Mirroring content (on NGit or anything else) is absurdly simple - just add an extra remote to the repo and you can push and pull from both within the same local git repo. The rest of this post is going to be exactly that, me going over a handful of alternatives to GitHub.
Decentralized Git
There’s three different decentralized Git services I’m aware of: Radicle, NGit, and Tangled.
Radicle
Radicle definitely has the most interesting architecture, using key based identities and distributing content P2P. Similar to something like IPFS or BitTorrent, anybody who downloads a copy of somebody else’s repo helps host while they still have a copy and their device remains online. To prevent personal repos from going offline, dedicated seeder nodes (which can be self hosted, and are also run by community members) cache and serve repos to prevent your device needing to be online and running Radicle 24/7. Radicle has my favorite architecture of the three; P2P likely being the best form of decentralization2 for something like Git that can afford to be slightly slower.
Radicle would’ve otherwise been my first pick, but there are a few things stopping me from diving in head first. First is a combo of unpatched security vulnerabilities discovered two months ago. While it’s only relevant to private repos, the words Network traffic between nodes is not encrypted and not authenticated are quick to shiver my timbers. It’s also in earlier development; alternative networking (Iroh) being planned but not implemented, requiring you to host it on a publicly accessible IP like a standard web service.
NGit
NGit is Nostr’s answer to decentralized git. Nostr identifies users with key pairs, posts and accounts mirrored on servers called relays. Users and their content aren’t tied to specific relays; an account’s relay list can be updated and content rebroadcasted at any time (assuming at least one relay’s still online). NGit works the same, using GRASP relays: a relay and Git server bundled into one - Gitworkship defaulting to three community relays for new accounts. NGit can be separated out - using standard Nostr as an identitiy/communication layer on top of an external git server(s) for repo hosting (including GitHub). Still, the most streamlined method would be to utilize multiple GRASP relays, providing redundancy and decentralization without too much friction or moving parts. The NGit CLI & Web clients are both focused on being simple, drop in tool to work alongside regular Git, providing decentralization without being too radicle (pun intended) or breaking workflows.
I wound up choosing NGit for now, largely for two reasons. First, because I’m already integrated into the Nostr ecosystem3 - making it easier to join and utilize than something completely new. Further, because of Radicle’s current (and likely to change) limitations, NGit offers easier redundancy and a couple more features (e.g. private repos). If you aren’t already part of the Nostr ecosystem, however, Radicle may be the best choice.
Tangled
Tangled is the AT4 protocol’s answer to Git. Nostr and AT are sort of protocol cousins, sharing key based identities that work across their entire respective ecosystems5. Similar to a standard comparison, AT is slightly more complicated and less redundant, which brings pros and cons, but in this case limits decentralization & redundancy (especially if a BlueSky PDS is used). To oversimplify the structure: a decentralized AT identity is hosted on a PDS, allowing interaction with any other users’ Tangled infrastructure. A Knots server hosts Git repositories, a Spindle server handling CI operations, and an Index collecting data from Knots servers and serving the data to clients. Each of those servers can be self hosted or community infrastructure, although they are not as redundant or fungible as Radicle peers or NGit GRASP relays.
Tangled isn’t as decentralized as Radicle or NGit, effectively using a decentralized identity layer on top of centralized Git servers. If you were looking for decentralized Git and starting from scratch, Radicle or NGit would likely be a better option to start with. However - just like my choice to use NGit - if you were integrated into the AT ecosystem, Tangled may be your best option.
Forgejo (Honorable Mention)
Forgejo is a self hosted Git server, with pending ActivityPub federation. At the time of writing federation is disabled by default, supporting starring repositories, while unstarring and following repositories have limited support. Once fully implemented, however, users of one Forgejo instance will be able to interact natively with other Forgejo instances. ActivityPub is federated, not decentralized, so AP powered Git will be more in line with a self hosted Git forge that can interact with other self hosted Git forges as opposed to decentralized Git6.
Blockchain Git
As I’ve lamented elsewhere, I really don’t think that files and blockchains mess well. It’s one thing to list short entries (such as transactions or domains) and pay a few cents fee when doing so, but paying a larger fee and bloating a network anytime you want to update files feels rather pointless. The only time I would see it applicable is for big, important projects that rarely see updates; providing the most redundancy and proof of non-tampering (through cryptography and consensus) - at the cost of somebody bankrolling every commit. If you were interested in blockchain based git: GitTorrent, Mango, DGit, GitTopia, and Entire all use blockchains for Git hosting and/or collaboration.
Traditional Git Services
Maybe you’ve gotten this far and are going, “Okay Nate, those look interesting, but I’m really not looking to fiddle with a janky experimental setup to host or mirror my repos. Unlike you, I actually write good code and want to spend my time doing that instead of toying with annoying protocols.” Fear not, my slightly rude hypothetical reader. Like I mentioned above, it was the end of last week that I learned repos can have multiple remotes. Even if you mainly use GitHub or another centralized service, stashing a mirror of your code on another similar service is probably going to give you 99% of the same redundancy as using a decentralized service.
There’s GitLab (self hosted or paid) offering a very GitHub style suite, there’s the OG SourceHut built around emailing patches, there’s SourceForge where I’m sure we’ve all downloaded sketchy looking software from, and Codeberg with its more curated software catalogue. There’s also a myriad of self hosted options, GitLab standing out as a full suite and Gitea standing out as a lighter Git server. There’s even the occasional darkweb community server, such as git.idk.i2p.
Closing
Anyway, after all that, will I continue using GitHub? Yes. I’m probably going to lose some decentralized protocol nerd cred, but GitHub does offer some value to me for as long as they let me continue wasting their resources. Hosting is a big one. Sure, I could host all my stuff on a $5 VPS. GitHub Pages is free, though, meaning I get to keep that $5. Not to mention with all the recent security vulnerabilities, the time and risks of managing yet another server doesn’t sound appealing. Given I own my own domain and could migrate my site in under 5 minutes - as I did at the end of last week (excluding /photos) - I’m not risking all that much.
And, honestly, the social aspect of GitHub is nice too. Stars remain one of the greatest at-a-glance ways to tell how sketchy any particular piece of software is. As much as I’m all for embracing the alternatives, I’d be lying if I said I wasn’t always a little sketched out downloading code off some random Gitea instance. Even with something like Nostr, being a smaller tight knit community with some social verification, it’s still not to the same degree as GitHub. And the ability to open issues/PRs on just about every repo out there is nice.
That said, I do intend to use NGit as a serious co-location of my repos instead of just a backup mirror (prob on Radicle as well as their development continues). One is a community that I’ve genuinely enjoyed being a part of, the other a soulless Microsoft subsidiary that probably didn’t care to have a human review before deleting my account without warning. I also intend to use GitHub as I was before. Something I did got me deleted, and I don’t know what. I could be super careful, trying to avoid doing anything that could get me deleted again, but I won’t. I’ll do exactly what I’ve been doing, and if I get deleted again, so be it - I’ll have backups and mirrors this go around.
Finally, I intend to create accounts on Radicle, Tangled, GitLab, ect - being ready to interact with, star, and contribute to any project hosted on those services without any friction. Protos together strong: Nostr, AT, Radicle and ActivityPub once they get their forges fixed, smolweb and self hosters - we’re all better off being more collaborative and less siloed one-off islands.
Footnotes
-
And probably, ideally, own a domain on a registrar that doesn’t host any of your content. I have a domain on a standard registrar, but point its DNS servers to Cloudflare where I manage the domain. The idea of moving my domain to CloudFlare, and having one less thing to worry about, has always been in the back of my mind. However, I’ve avoided it because I’d rather separate my host from my domain. CloudFlare hosts the Untitled Novel and acts as a CDN for much of my stuff hosted elsewhere. A host is probably much more likely to accidentally (or intentionally) delete my account than a registrar who does nothing but let me rent my domain. ↩︎
-
As a bit of a side note, a true P2P git setup is probably the best way to host something like an emulator, where there’s (in the US) precedent for their legality, but where companies like Nintendo have a habit of mass DMCAing emulators and their forks on places like GitHub. Something like NGit and Tangled are still somewhat vulnerable to this, since relays & PDSs can be DMCAed like GitHub (more targets, but still hosted services subject to Section 230). You can’t DMCA a peer, you can only figure out who owns the computer and send them a cease and desist. GitHub or a relay provider might not be willing to lose their legal shield by fighting a DMCA claim, but there’s plenty of individuals who’d be willing to say “eff you, this is legal and you can’t stop me.” ↩︎
-
With all the vulnerabilities going on, and the effort required to maintain self hosted services, I’ve been in the process of consolidating my publicly accessible self hosted services. If I host a Radicle seed node (or a standalone run-of-the-mill git forge) I’m hosting a service for git and git alone. Since I’m more integrated into the Nostr ecosystem, if I get around to hosting a Nostr relay, then I’ll be hosting my own git forge, sync server for my RSS reader, social media service (short notes, blog posts, ect), the backend for parts of my website, a chatroom/DM/NMail server, and quite a bit more. ↩︎
-
Ironically, though Tangled only uses AT for identification, the AT protocol itself actually uses merkle trees for its microblogging content. ↩︎
-
And, theoretically, each other’s ecosystems since they share the same secp256k1 based keypairs. Though I’m not aware of any projects with cross compatibility that utilize that fact. ↩︎
-
Given ActivityPub’s more monolithic structure, there will also be some limitations on what accounts can do what. For example, while a user might be able to star or follow a repo from Mastodon, submitting a PR will likely require a separate ActivityPub account on a self hosted or community hosted ForgeJo account. ↩︎