Hey HN,<p>I wanted to show you my weekend(s) project: cloc[0] as a Service.<p>I'm learning golang and wanted to have a real project so I decided to build this over the curse of some weekends. I know there are websites that analyze repositories and spit out way more information, but nonetheless here's my attempt.<p>The page is entirely written in golang (and html without any framework) and uses cloc to count the lines of code in the repository. It's hosted on fly.io and uses Redis as a cache to store the results.<p>It doesn't yet work for larger repositories because there's a 60 second timeout in fly's webproxy and I cannot program goroutines yet. :) Also for non-existing repos it just throws an error.<p>I also "implemented" an API, so you can just run:<p><pre><code> curl -X POST https://clocaas.fly.dev/repo?name=dev-sec%2Fansible-collection-hardening
</code></pre>
and get the results on the cli.<p>Let me know what you think. :)<p>0: <a href="https://github.com/AlDanial/cloc">https://github.com/AlDanial/cloc</a>