There is a command-line tool to calculate the HoC of a repository, but some people might want a nice badge to put in their README, that's why I implemented this API. Currently the API can be used for GitHub, GitLab and Bitbucket repositories. Just put the following code in your README:
![Hits-of-Code](https://hoc.oldsql.cc/<service>/<user>/<repo>)
where <service>
is one of github
, gitlab
or bitbucket
. So the
following Markdown
![Hits-of-Code](https://hoc.oldsql.cc/github/vbrandl/elm-chess)
would render this badge: