Codestats, a light-weight, accessible, and blazing fast code analyzer

⚓ Rust    📅 2025-11-29    👤 surdeus    👁️ 3      

surdeus

Hi all,
Super glad to be here! This is my first real Rust project, I've written small web backends and CLI tools in it before but this is the first tool I have that has actually gotten large and made me learn a lot more about the language. It's called Codestats. It's a lightning fast and super small code analysis tool, able to provide you analysis of over 400 programming languages on the latest master branch, 384 as of the latest release. With all of my filesystem caches cleared, it analyzes my Linux home directory, containing about 3.76 GB of code, in 8.1 seconds. It allows you to follow symlinks, analyze hidden files, and even follow your gitignores. It has multiple different output formats, including CSV, JSON, and a clean, human-readable report that's nice and readable for screen readers, unlike tools like SCC or Tokei. In the latest master version, I've also added customizable number formatting, percentage precision setting, etc.
Binaries for x64 Windows and Linux are provided on the releases page, but I also upload binaries to crates.io, which is the recommended way to install the tool. A simple:

cargo install codestats

should get you there.
Enjoy, and please feel free to give me any feedback, pull requests, issues, etc.

1 post - 1 participant

Read full topic

🏷️ Rust_feed