Code Line Counter

Get code statistics and badges for any Git repository using tokei.

Lines of Code Top Language Languages Code to Comment

For detailed information about badges, visit our badges documentation.

GitHub Direct Access

You can directly access GitHub repositories using the following format:

https://tokei.kojix2.net/github/:owner/:repo

For example, to analyze the Crystal language repository:

https://tokei.kojix2.net/github/kojix2/tokei-api

This allows you to access analysis results directly without having to input the repository URL.

API

tokei-api provides a consistent RESTful API for analyzing code statistics in Git repositories.

The API allows you to:

  • Analyze repositories and retrieve code statistics
  • Get language-specific information
  • Generate badges for your README
  • Access GitHub repositories directly