-- Leo's gemini proxy

-- Connecting to capsule.wetterberg.nu:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

Gemini Git


One thing that has been bugging me when I write these posts is that I have to link out to http for everything code-related. I love the simplicity and philosophy of sourcehut, so this is not a knock against it, I just want to be able to show my projects over gemini.


The approach I took with gemini git is quite similar to the gemlog server. The git repo itself becomes the database through the use of the excellent go-git, which I forgot to mention in my dependency wrap-up. Better late than never!


Go-Git


• • •


The flow works something like this: give gemini-git a sourcehut bearer token that has read access to your profile and repositories. It will then fetch information about your public repos and clone them (or fetch if already cloned). At a regular interval (30m default) it will then poll sourcehut to see if the tips of the default branch has changed, if so it will fetch the affected repos again.


The sourcehut metadata and repo contents is then used to give you a basic view of the repositories.


My self-hosted instance

Gemini-git itself

-- Response ended

-- Page fetched on Thu Apr 18 14:26:55 2024