Where would you host your code if you prefer non-for-profit communities with FLOSS commitment?
My first idea was to use the Gitea instance of the Free Software Foundation Europe, but T&Cs strongly encourage only projects with direct relation to the FSFE activities, so personal projects don't seem welcome.
The first-party Gitea platform seems to be in risk of becoming for-profit.
If you are willing to self-host and are scared of the gitea license shake-up, use forgejo.
When it comes to self-hosting, there's also the costs. Hosting providers have been hitting me with price hikes one after another this year, so I'm looking into shutting down some servers instead.
I host it on a raspberry pi with 2 GB RAM for myself. The only challenge with it is because I do hundreds of repo mirrors, basically a local archive of public repos on other code forges that I found useful to have
I can recommend Sourcehut, it's still free right now: sourcehut.org
You will need to learn how to use Git with email, but that isn't a bad skill to have anyway, so why not.
I can give it a shot, certainly. One of the main contributors behind it is in my RSS reader so there's some name recognition there. Future pricing is not final though, so I can't budget for it before committing.
I second Sourcehut. I liked it so much, I started paying for it a couple of years ago.
The CI works really well, and the parts are slowly (but continuously) becoming more integrated and cohesive.
The features I like best may, however, be anti-features to others. The web interfaces are spartan (and correspondingly lightweight). Many interactions require more esoteric workflows - such as the aforementioned "PRs via email." You could self-host the entire suite, if you wanted, and there's almost no possibility for vendor lock-in... I guess there's no real downside to that one. And Drew is a Character, which is fun if you agree with him on many things, which I do, but could be annoying if you don't.
It might not be a solution for everyone, but you can self host a git repository on your static site!
stagit is a static git site generator. It is lean, you can self host it even of the cheapest of shared hosting and it makes code browseable via html, which is a plus for sharing and receiving suggestions/contributions.
For a relatively small, low bandwith project it is a charm. As an example, here are my repositories.
Nope! Little known to people, you just need to locally clone your repository with --bare and upload that. You will see you can clone it even if you don't have a git server!
Selfhosting Forgejo is a good solution, especially since federation via ActivityPub will be available soonish.
Codeberg is nice (and will join the federation), but they are getting a bit too big and are having some scaling problems.
I am also working on a Forgejo code hosting site over at https://f-hub.org but it isn't really open for public yet (I am willing to on-board people interested in contributing to running the site though). The idea is to launch it together with the availability of the Forgejo federation.
Why why I do it? I have some open source code there and I link to my repos from LinkedIn. My code is not secret. If it were I would self host my repos. I'm not saying gitlab is great for everything bitits is good for many things.
It's pretty hard to log in nowadays in some cases. Like, with my hardened firefox profile I can never get through the cloudflare automatic bot check (not even a captcha, just a reloading page that fingerprints) even if I allow the usual things.
But the Librewolf team probably has a list of reasons publicly available, as they have just moved from gitlab to codeberg for reasons like this. Simply put, gitlab is becoming user hostile.
So far I didn't have any issues logging in even on firefox with all the usual plugins and privacy settings enabled. I think saying that it's user hostile is a big exaggeration. I see how it's not 'non-profit' but I think it's still a great place for open source projects. I self host it and use the official page and it has been a very useful, good quality tool.