Skip to content
Generate Hits-of-Code badges for GitHub repositories
Branch: master
Clone or download
Latest commit d9faf25 May 19, 2019


Hits-of-Code Drone build Gitlab build Travis build dependency status

Small webservice, that returns a badge of the Hits-of-Code of a git repository, as described by Yegor Bugayenko. It is implemented in Rust, using the actix-web web framework.

A live version of this webservice can be found on


The API is as simple as


where <service> is one of gitub, gitlab or bitbucket.


The code can be built as a standalone binary, using cargo or as a Docker container. Run either

$ cargo build --release


$ docker build .

inside the repository.


Run either the binary produced by cargo, the Docker container you just built (using docker-compose) or pull the image from Docker Hub

$ docker run -it --rm vbrandl/hits-of-code --help

When running the binary directly, you need a git binary in your PATH.


hoc is licensed under the MIT License (LICENSE or

You can’t perform that action at this time.