AI Disclosure:
Qwen3.8 27B and later Flash Next have done most of the coding work. Some of the initial libraries (earlier version of ka.js/kapka and markdown) and some of the ideas predate my use of LLMs.
Link
Prelude
Due to policy changes and forcing of rules (e.g. 2FA), I’ve decided to move out from the public forges. I like to share small projects with the hope that they would be useful to somebody.
I had switched to another forge before finally deciding to be self-hosted and to install cgit. However, Meta DDoSed my cgit instance that was running on a 16-year-old laptop. Setting up a Poof-of-Work gate stopped their insatiable thirst for generated HTML pages, but it had put 15% constant CPU load.
Project
Pure static HTML+CSS+JS webapp that can be used for exploring git repositories. It requires a configuration file with an index of repositories. The Web server (e.g. nginx) should provide read-only access to the bare git repositories. The Web browser needs to have JavaScript enabled.
It is the solution to my security and availability concerns I’ve had before. Moreover, the bots stopped scraping. It seems that It is harder for them. They need to spool up a headless browser, which costs memory, and they’ve probably decided it’s not worthy.
Limitations
There are more than a few limitations. The first and foremost is that the browser needs to support JavaScript and it needs to be enabled. I dislike the idea that I need to force people to do this, but I don’t haven’t figured out a good way to fix this.
Another limitation is that self-hosting is not as reliable as putting your stuff on someone else’s server. Just a few hours ago my ISP died and I had to switch. Fortunately, I’ve setup an outpost server and with some tunnelling magic, the site should still be available.
There are features in the forge that are useful, for instance Pull Requests / Merge Requests, Issues, Discussions. These are no longer publicly visible and probably harder, as I am requiring people to send me emails with patches, if they want to, but at least I don’t push them to register (give me) a username and password to a self-hosted forge software.
Rant about Meta
I was joking that Meta attacked me, because I’ve called them Metastasis. There has been a robots.txt with Disallow: /. Nonetheless, they could have just cloned the repos and not hammered the fcgiwrap of the cgit, until it returns 200, filling my logs with 502s. They haven’t even bothered to reply to my abuse complaint I’ve sent to the email provided in the IP range whois.