mezura
Counts the lines of a codebase quickly and accurately, separates the test code from production code, counts user-defined keywords like classes and structs. Tracks how the figures move between runs, and between any two git revisions. Command line program, library and MCP server.
mezura official project screenshot · Image source · mezura project
Image provenance
Original project branding or screenshot referenced from official project evidence with attribution; trademarks remain with their owners.
Understand the work it supports.
- Ensures the right language for each file. When two languages claim one extension, the way .h is C, C++ and Objective-C, or .m is MATLAB, Objective-C and Mercury, every file is identified by its own content: a #! line first, then heuristics on its content. And you always have the last word: set your preferences globally in languageconflicts.txt, or per-project through its configuration, or --force-language for one run, or even per module in the same run. See Supported languages.
- Discards non-code files with a matching extension (no more Make dependency .d files counted as the D language!). Alongside the minified and generated files that are skipped by default, they are reported as skipped. See What is skipped.
- Test code detection. Each language's tests are a row under it and under the total. It automatically identifies test code by the test marks inside the code, by what the toolchain names as a test, by what a build tool compiles for tests, and by the default test names of a tool whose own file is in the project. It also gives you manual control for marking or unmarking code as test code, with the --tests command. See Test code.
- Keyword counting. Occurrences of words you pick per language, classes, structs, traits, anything, counted only where they appear as code.
- Nested languages. The and blocks of HTML, Vue, Svelte and Astro files are counted as the distinct languages they hold, and so is the page a PHP file returns to after a ?>, up to the next <?php or the end of the file, with the scripts that page holds.
- Modules. Give a name to parts of a project and the report is grouped by these parts as well as by language. This way you can split your project into e.g. Frontend and Backend and see distinct reports for each module in the same table in the same run. See Modules.
Capabilities & data portability
- AI capabilities
- Not confirmed in published facts
- Integrations
- Not confirmed
- API access
- Not confirmed
- Import
- Not confirmed
- Export
- Not confirmed
- Platforms
- Not confirmed
- Product languages
- Not confirmed
- License
- identifier: Apache-2.0; scope: code; source: https://github.com/subamanis/mezura/blob/HEAD/LICENSE
Pricing & commitmentRead the conditions.
Read the conditions.
Then compare the cost.
Check edition, seats, region and billing commitment together. Open-source code does not establish free hosted service.
Published pricing facts
Pricing not confirmed
- Pricing model
- Pricing not confirmed
- Scope
- mezura official project
- Free trial
- Not confirmed
- Billing model
- Not confirmed
- Trial conditions
- Not confirmed
- Price visibility
- Not confirmed
- Billing unit
- Not confirmed
- Minimum seats
- Not confirmed
- Region / tax
- Not confirmed
- The repository does not establish a current hosted-service price. Review the official pricing and deployment terms before purchase.
Trace the facts to their sources.
Reviewed 2026-11-23. Prices and availability can change.
- api.github.comChecked 2026-11-23 · Source evidence reviewed
- api.github.comChecked 2026-11-23 · Source evidence reviewed