Glad to see new work in this space. Sorcia looks very clean, and well implemented.<p>I only noticed one issue, which is very much an edge case: when trying to view a file with third party JS disabled (i.e. the Cloudflare JS sourced script), the file is rendered quite poorly. Would be nice if the service degraded gracefully and used a simple pre tag or similar.<p>I must also admit that I am interested in a more "non-technical" git frontend -- one that puts the file tree up front and center, leaving details like remotes and commits in out of the way views.<p>If anyone is interested in other options, see also:<p>* <a href="https://git.nemo157.com/grarr" rel="nofollow">https://git.nemo157.com/grarr</a> (Rust, the UI themes are a little tacky IMHO)
* <a href="https://github.com/emersion/matcha" rel="nofollow">https://github.com/emersion/matcha</a> (also in Go, but not very complete or performant...)
Hi, OP and author of the project here.<p>You could check the landing page of this project here:
<a href="https://sorcia.mysticmode.org/" rel="nofollow">https://sorcia.mysticmode.org/</a><p>I've put up a FAQ and Features section with screenshots, so it is easy for you to look at it and see why I've built this software.
Tangential: lastly I was searching for an easy to deploy, easy to use readonly html frontend for git repositories that could be reached via an URL subpath behind a reverse proxy, served from a container.<p>The use case is to let website owners see what their developers are changing in the source code that I'm hosting for those owners, and to embed this in the existing dashboard of mine where the owners can see what's happening on their servers. I would handle myself the part where the source code modifications are committed to the underlining git repositories, and a nice bonus would be that those repositories would act an additional backup strategy.<p>Unfortunately nothing came close to this simple wishlist, I was unable to get the likes of git-web or gitiles working under those constraints, I tried 4 or 5 at least.<p>I should have a look at Sorcia then!
Very cool! Although I noticed (at least in Safari and iOS) the contributors page has 23px widths for the profile pictures.<p>Front-ends like these are really cool. They allow simple, self hosted solutions strictly for code that can then be mirrored to other, more complex solutions if desired. Or if you like working with very minimal tooling.
This kind of simple design has grown on me after I tried sourcehut. I kind like it, it's light and snappy, no extra loading bar is needed.<p>My questions:<p>- Can you make it a drop-and-play Docker image?<p>- Why not host JavaScripts like `highlight.js` directly on the Sorcia server? That way LAN-only user will be able use this software as well.
Constructive recommendations:
- add tests (I couldn't find a simple _test.go file)
- relative imports aren't recommended in Go (pkgs like "sorcia/model")
- please rethink/avoid global (package) variables like middlewareDB (<a href="https://git.mysticmode.org/r/sorcia/tree/master/middleware/middleware.go#L14" rel="nofollow">https://git.mysticmode.org/r/sorcia/tree/master/middleware/m...</a>)
- avoid adding logic in the init() functions
- screenshots?