FreeCAD/FreeCAD has 7,140,389 source lines of code out of 7,808,569 total lines across 11,025 files, counted from the main ref at commit 406063b1116a by the OctoCounts tokei engine on 2026-10-14. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-14 (commit 406063b1116a), FreeCAD/FreeCAD contains 7,808,569 total lines: 7,140,389 code, 356,763 comments, 311,417 blank, across 11,025 files in 38 languages (top: TypeScript 65.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving FreeCAD/FreeCAD to commit 406063b1116a, 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.
This is a very large codebase by counted code lines. Code represents 91.4% of all lines, comments represent 4.6%, and the repository averages 648 code lines per file. TypeScript accounts for 65.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| TypeScript | 1232 | 4715380 | 4704942 | 0 | 10438 |
| C++ | 2323 | 1152591 | 869999 | 137686 | 144906 |
| Python | 2210 | 803916 | 652465 | 68848 | 82603 |
| SVG | 2344 | 579369 | 575120 | 2840 | 1409 |
| C Header | 1954 | 319223 | 183539 | 88405 | 47279 |
| C++ Header | 448 | 115043 | 72135 | 29101 | 13807 |
| C | 13 | 32473 | 21663 | 6845 | 3965 |
| JSON | 28 | 20202 | 20193 | 0 | 9 |
| CMake | 194 | 23585 | 19307 | 1532 | 2746 |
| FORTRAN Legacy | 2 | 16852 | 7779 | 8861 | 212 |
| YAML | 59 | 4017 | 2646 | 1257 | 114 |
| Forge Config | 20 | 3452 | 2141 | 878 | 433 |
Top language (TypeScript 65.9%). Generated at .
FreeCAD/FreeCAD has 7,808,569 total lines, including 7,140,389 code lines, 356,763 comment lines, and 311,417 blank lines.
OctoCounts resolved the public GitHub repository to commit 406063b1116a, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 406063b1116a on 2026-10-14T12:42:45.189875501+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for FreeCAD/FreeCAD on this page — 7,140,389 code lines across 12 languages, counted by tokei.