r/coolgithubprojects • • 1d ago

Swarmgit: A Censorship-Resistant P2P Layer for Git Repositories

https://swarmgit.com

Hi everyone,

I've been working on a P2P Git protocol that lets us keep repositories alive without relying on hosted services like GitHub or GitLab.

It's end-to-end encrypted using a combination of classical and post-quantum cryptography, with protection against "store now, decrypt later" attacks. It also integrates with existing Git workflows, so there's no need to change how you normally work with Git.

Getting a repository onto SwarmNet takes less than a minute. All you need to do is install the client and run a single command (swarm init).

I've also built a relay binary, and I'm hosting a relay myself. It's very limited in resources at the moment, but it allows clients behind restrictive networks to connect and seed repositories.

The client is written in Rust and fully open source.

It's still in alpha, so expect some bugs, particularly on less common configurations. I'd appreciate it if you all gave it a try and let me know how it goes!

6 Upvotes

3 comments sorted by

2

u/touristtam 6h ago

Looks interesting, but part of the appeal of using a git hosted repo is the CI/CD aspect. How is that working with swarmgit?

1

u/rh9n 4h ago

It doesn't exist right now, but I imagine it could be implemented by an X number of peers agreeing to run the pipeline and publish the build output back onto repo or a tangential release only link so the regular repo isn't clogged up.

Multiple peers running would be better since it allows for crosschecking matching resulting checksums but this definitely requires some more thought put into to make sure this is not a way to perform supply chain attacks by injecting malware in the builds.

3

u/Vegetable_Tour_7086 13h ago

post quantum crypto and rust in one project is actually insane, definitely checking this out tonight