mlc-ai/xgrammar

mlc-ai/xgrammar has 51,302 source lines of code out of 63,427 total lines across 153 files, counted from the main ref at commit 614ab01d2af3 by the OctoCounts tokei engine on 2026-10-18. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

mlc-ai/xgrammar: 51,302 code lines at commit 614ab01d2af3, counted with tokei-14.0.0 on 2026-10-18. Saved result f857c44d9a6e8a55baeb4780d7ad6d04f1079c8ebdd9bbb88ae431884035b73e.

OctoCounts produced this report by resolving mlc-ai/xgrammar to commit 614ab01d2af3, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 80.9% of all lines, comments represent 10.8%, and the repository averages 335 code lines per file. C++ accounts for 53.8% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C++33322532758722222444
Python2886997633213853
C Header4412250716035441546
JSON56881688100
TypeScript41293782407104
CUDA12862371831
Sass1238200137
Shell113241996461
CMake52181781426
TOML11881263428
SVG311110407
JavaScript3807208
HTML4646103
Swift15941162
YAML26141614
Markdown74220296126

Top language (C++ 53.8%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does mlc-ai/xgrammar have?

mlc-ai/xgrammar has 63,427 total lines, including 51,302 code lines, 6,835 comment lines, and 5,290 blank lines.

How was the mlc-ai/xgrammar line count measured?

OctoCounts resolved the public GitHub repository to commit 614ab01d2af3, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

What commit was counted for mlc-ai/xgrammar?

This OctoCounts report was generated from main at commit 614ab01d2af3 on 2026-10-18T23:08:27.315148422Z.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for mlc-ai/xgrammar on this page — 51,302 code lines across 16 languages, counted by tokei.