Demo: https://kaihendry.github.io/lesshero/
It's important for your health to watch your weight.
Same for code.
Aim of this project is to celebrate those who refactor and put code on a diet!
Assuming you have a Go runtime installed:
go install github.com/kaihendry/lesshero@latest
lesshero -b
will show source code additions over time in a chart in your browser.
Explicit usage:
lesshero /path/to/a/full/git/checkout > sloc.jsonl
cat sloc.jsonl | lesshero -o chart.html
docker run -v $(pwd):/repo hendry/lesshero -o /repo/chart.html /repo
First you need to enable Github Pages with the source of Github Actions.