Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Rust
  3. tokei

tokei

NOASSERTIONRustv14.0.0

A fast and accurate command-line tool that counts lines of code, comments, and blanks across over 150 programming languages.

GitHubGitHub
14.3k stars664 forks0 contributors

What is tokei?

Tokei is a command-line tool that generates detailed statistics about codebases, counting lines of code, comments, and blanks across files and programming languages. It solves the problem of quickly understanding the size and composition of software projects, especially in large or multi-language repositories.

Target Audience

Developers, team leads, and open-source maintainers who need to analyze codebase metrics, track project growth, or generate reports for documentation and planning.

Value Proposition

Developers choose Tokei for its exceptional speed, accuracy in handling complex comment structures, and extensive language support, making it a reliable and efficient alternative to slower or less precise code counting tools.

Overview

Count your code, quickly.

Use Cases

Best For

  • Generating codebase statistics for project documentation
  • Analyzing multi-language repositories to understand language distribution
  • Tracking code growth and contributions over time
  • Integrating code metrics into CI/CD pipelines
  • Comparing code statistics across different projects or branches
  • Creating visualizations of code composition with tools like tokei-pie

Not Ideal For

  • Developers needing real-time, integrated code metrics within their IDE.
  • Projects requiring in-depth code quality analysis beyond line counts.
  • Teams preferring graphical user interfaces over command-line tools.

Pros & Cons

Pros

Blazing Fast Performance

Counts millions of lines of code in seconds, as benchmarked in the 11.0.0 release against other tools.

Accurate Comment Handling

Correctly processes multi-line and nested comments, and ignores comments within strings for precise statistics.

Extensive Language Support

Recognizes over 150 programming languages and their various file extensions, covering a wide range of projects.

Flexible Output Options

Supports human-readable terminal output and structured formats like JSON, YAML, and CBOR, enabling data reuse in other applications.

Cross-Platform Availability

Available on macOS, Linux, and Windows via multiple package managers and prebuilt binaries, ensuring easy installation.

Cons

Compilation Complexity for Features

Serialization formats require reinstalling with specific feature flags (e.g., --features all), adding extra steps for full functionality.

Limited to Surface Metrics

Only provides counts of lines, comments, and blanks, without insights into code complexity, duplication, or other quality indicators.

File Type Confusion

Can misidentify files, such as .d files from gcc as D code, necessitating manual exclusion with the --exclude flag.

Frequently Asked Questions

Quick Stats

Stars14,298
Forks664
Contributors0
Open Issues0
Last commit2 months ago
CreatedSince 2015

Tags

#developer-tools#productivity#statistics#cli-tool#cli#cloc#linux#cross-platform#code#code-analysis#rust#macos#metrics#windows#performance

Built With

R
Rust

Included in

Rust56.6k
Auto-fetched 1 day ago

Related Projects

BatBat

A cat(1) clone with wings.

Stars58,484
Forks1,535
Last commit4 days ago
fdfd

A simple, fast and user-friendly alternative to 'find'

Stars42,659
Forks1,050
Last commit3 days ago
nushellnushell

A new type of shell

Stars39,139
Forks2,113
Last commit2 days ago
zoxidezoxide

A smarter cd command. Supports all major shells.

Stars35,984
Forks801
Last commit11 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub