tokei.rs has support for badges. For example .
[![](https://tokei.rs/b1/github/XAMPPRocky/tokei_rs)](https://github.com/XAMPPRocky/tokei_rs).
Tokei's URL scheme is as follows.
https://tokei.rs/<host>/<namespace>/<name>
host
: eithergithub
orgitlab
.namespace
: The namespace of the repo. eg.rust-lang
orXAMPPRocky
.name
: the name of the repo eg.rust
ortokei
.
By default the badge will show the repo's LoC(Lines of Code), you can also
specify for it to show a different category, by using the ?category=
query
string. It can be either code
, blanks
, files
, lines
, or comments
.
Here is an example showing total number of lines.
.
[![](https://tokei.rs/b1/github/XAMPPRocky/tokei?category=lines)](https://github.com/XAMPPRocky/tokei).