# XAMPPRocky/tokei

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/xampprocky-tokei).**

13,966 stars · 653 forks · Rust · other

## Links

- GitHub: https://github.com/XAMPPRocky/tokei
- awesome-repositories: https://awesome-repositories.com/repository/xampprocky-tokei.md

## Topics

`badge` `cli` `cloc` `code` `command-line-tool` `linux` `macos` `rust` `sloc` `statistics` `tokei` `windows`

## Description

Tokei is a command-line utility designed to analyze the composition of software projects by calculating the volume of source code, comments, and blank lines. It provides detailed metrics on codebase size and structure, allowing users to audit project distribution across multiple programming languages.

The tool distinguishes itself through high-performance analysis capabilities that handle complex syntax, including nested comments and string literals. It utilizes parallel directory traversal and memory-mapped file access to process large codebases efficiently, while employing a centralized configuration schema to map file extensions to specific parsing rules.

Users can refine their analysis through configurable search parameters that filter by language or file type. The utility also supports sorting and ranking of results based on specific metrics, such as file count or code density, to provide clear visibility into the growth and technical composition of a repository.

## Tags

### Development Tools & Productivity

- [Source Code Strippers](https://awesome-repositories.com/f/development-tools-productivity/comment-formatting-utilities/source-code-strippers.md) — Calculates lines of code, comments, and blank spaces across multiple programming languages within a project directory.
- [Codebase Metrics](https://awesome-repositories.com/f/development-tools-productivity/developer-utilities-libraries/workflow-productivity-enhancers/developer-analytics/codebase-metrics.md) — Provides high-performance analysis of codebase composition through detailed metrics on lines of code and language distribution.
- [Codebase Analysis Tools](https://awesome-repositories.com/f/development-tools-productivity/codebase-analysis-tools.md) — Measures the total volume of source code, comments, and blank lines to understand the scale and complexity of a project.
- [Codebase Size Analyzers](https://awesome-repositories.com/f/development-tools-productivity/codebase-size-analyzers.md) — Calculates the total number of lines, comments, and blank spaces to determine the overall size and scale of a codebase. ([source](https://docs.rs/tokei/all.html))
- [Project Metadata Analyzers](https://awesome-repositories.com/f/development-tools-productivity/project-configuration/project-metadata-analyzers.md) — Analyzes project directories to calculate metrics across various programming languages for a summary of project structure. ([source](https://docs.rs/tokei/constant.BLANKS_COLUMN_WIDTH.html))
- [Codebase Composition Auditors](https://awesome-repositories.com/f/development-tools-productivity/version-control-repository-tools/project-history-auditing/codebase-composition-auditors.md) — Summarizes the composition of a codebase by language to evaluate technical debt and project structure.

### Data & Databases

- [Language Distribution Metrics](https://awesome-repositories.com/f/data-databases/data-analysis-visualization/analytical-platforms-engines/software-ecosystem-insights/language-distribution-metrics.md) — Measures and ranks project structure by file count, code density, and language distribution.
- [Memory-Mapped File Access](https://awesome-repositories.com/f/data-databases/data-access-querying/memory-mapped-file-access.md) — Reads file contents directly into memory buffers to minimize disk I/O overhead during high-speed analysis.

### Programming Languages & Runtimes

- [Syntax-Aware Statistics](https://awesome-repositories.com/f/programming-languages-runtimes/source-code-compilers/syntax-aware-statistics.md) — Calculates lines of code and comments while accurately parsing complex syntax like nested comments and string literals. ([source](https://docs.rs/tokei/))

### Software Engineering & Architecture

- [Repository Growth Metrics](https://awesome-repositories.com/f/software-engineering-architecture/performance-metrics/development-velocity-metrics/repository-growth-metrics.md) — Generates statistical reports on code distribution to track progress and maintain visibility into the growth of a repository.
- [Language Parsing Rules](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/extensibility/plugin-architectures/domain-specific/language-support-definitions/language-parsing-rules.md) — Maps file extensions to specific parsing rules to handle syntax variations across different programming languages.
- [Regex-Based Parsers](https://awesome-repositories.com/f/software-engineering-architecture/syntax-parsing-engines/regex-based-parsers.md) — Employs pre-compiled regular expressions to identify and categorize code, comments, and blank lines.

### System Administration & Monitoring

- [Parallel Traversal Tools](https://awesome-repositories.com/f/system-administration-monitoring/parallel-traversal-tools.md) — Uses multi-threaded workers to scan file systems concurrently for high-performance directory traversal.

### DevOps & Infrastructure

- [Analysis Filters](https://awesome-repositories.com/f/devops-infrastructure/type-safe-configuration-managers/analysis-configuration-automators/analysis-filters.md) — Configures search parameters to target specific programming languages or file types when calculating statistics. ([source](https://docs.rs/tokei/))
