{"slug": "magit-client-side-git-repository-explorer-for-static-self-hosting", "title": "[magit] Client-side git repository explorer for static self-hosting", "summary": "A developer has released magit, a pure static HTML+CSS+JS client-side git repository explorer for self-hosting, after Meta's scraping traffic overwhelmed a cgit instance running on a 16-year-old laptop and a proof-of-work gate added 15% constant CPU load. The developer, who said Qwen3.8 27B and later Flash Next did most of the coding, moved off public forges over policy changes such as 2FA and now requires contributors to email patches rather than register accounts. The static approach stopped the bot scraping because crawlers would need to spool up a headless browser, though the tool requires JavaScript enabled in the browser and nginx-style read-only access to bare git repositories.", "body_md": "AI Disclosure:\n\nQwen3.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.\n\nDue to policy changes and forcing of rules (e.g. 2FA), I’ve decided to move out from the public forges. I like to sharing small projects with the hope that they would be useful to somebody.\n\nI had switched to another forge, before finally deciding to be self-hosted and installed cgit. However, Meta DDoSed my cgit instance that is running on a 16-year-old laptop. Setting up a Poof-of-Work gate stopped the insatiable thirst for generated HTML pages, but it had put 15% constant CPU load.\n\nPure static HTML+CSS+JS webapp that can be used for exploring git repositories. It requires a configuration with an index of repositories. The Web server (e.g. nginx) should provide read-only access to the bare git repositories and the Web browser needs JavaScript to be enabled.\n\nIt is the solution to my security and availability concerns I’ve had before. Moreover, the bots stopped scraping. It is harder for them, they need to spool up headless browser, which costs memory and they’ve probably decided it’s not worthy.\n\nThere 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 have good ideas how to fix this.\n\nAnother 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.\n\nThere are features in the forge that are useful, e.g. 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.\n\nI was joking that Meta attacked me, because I’ve called them **Meta** stasis. There has been a robots.txt. Even, they could have just cloned the repos and not hammer 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.", "url": "https://wpnews.pro/news/magit-client-side-git-repository-explorer-for-static-self-hosting", "canonical_source": "https://forum.level1techs.com/t/magit-client-side-git-repository-explorer-for-static-self-hosting/261385#post_1", "published_at": "2026-12-01 05:26:17+00:00", "updated_at": "2026-12-01 06:14:47.829112+00:00", "lang": "en", "topics": ["developer-tools", "ai-crawlers", "ai-tools"], "entities": ["magit", "Meta", "cgit", "Qwen3.8 27B", "Flash Next", "nginx"], "also_reported_by": [], "takeaway": "Serving git repositories as a static HTML+CSS+JS app with read-only bare-repo access stopped bot scraping that had saturated a cgit instance, at the cost of requiring JavaScript in the browser.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/magit-client-side-git-repository-explorer-for-static-self-hosting", "markdown": "https://wpnews.pro/news/magit-client-side-git-repository-explorer-for-static-self-hosting.md", "text": "https://wpnews.pro/news/magit-client-side-git-repository-explorer-for-static-self-hosting.txt", "jsonld": "https://wpnews.pro/news/magit-client-side-git-repository-explorer-for-static-self-hosting.jsonld"}}