# Comfy-Org/ComfyUI SLOC report

> As of 2026-09-17 (commit d39cdfdb0393), Comfy-Org/ComfyUI contains 1,878,202 total lines: 1,331,853 code, 503,287 comments, 43,062 blank, across 1,078 files in 7 languages (top: JSON 80.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

Comfy-Org/ComfyUI has 1,331,853 source lines of code out of 1,878,202 total lines across 1,078 files, counted from the d39cdfdb03932f14f390dda27891b3e546efb746 ref at commit d39cdfdb0393 by the OctoCounts tokei engine on 2026-09-17. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving Comfy-Org/ComfyUI to commit d39cdfdb0393, 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 very large codebase by counted code lines. Code represents 70.9% of all lines, comments represent 26.8%, and the repository averages 1,235 code lines per file. JSON accounts for 80.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| JSON | 159 | 1,070,848 | 1,070,847 | 0 | 1 |
| Python | 888 | 304,812 | 254,644 | 7,473 | 42,695 |
| YAML | 12 | 6,349 | 6,280 | 6 | 63 |
| TOML | 1 | 75 | 67 | 3 | 5 |
| INI | 2 | 93 | 15 | 62 | 16 |
| Markdown | 9 | 1,093 | 0 | 812 | 281 |
| Plain Text | 7 | 494,932 | 0 | 494,931 | 1 |

Top language (JSON 80.4%). Generated at 2026-09-17T02:31:15.887313372+00:00. Canonical report: https://octocounts.com/github/Comfy-Org/ComfyUI

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/Comfy-Org/ComfyUI/commit/d39cdfdb03932f14f390dda27891b3e546efb746?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does Comfy-Org/ComfyUI have?

Comfy-Org/ComfyUI has 1,878,202 total lines, including 1,331,853 code lines, 503,287 comment lines, and 43,062 blank lines.

### How was the Comfy-Org/ComfyUI line count measured?

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

### What commit was counted for Comfy-Org/ComfyUI?

This OctoCounts report was generated from d39cdfdb03932f14f390dda27891b3e546efb746 at commit d39cdfdb0393 on 2026-09-17T02:31:15.887313372+00:00.

## Similar repository reports

- [trycua/cua](https://octocounts.com/github/trycua/cua) — JSON, 1,322,459 code lines
- [SesameAILabs/turnbench](https://octocounts.com/github/SesameAILabs/turnbench) — JSON, 1,402,567 code lines
- [vial-kb/vial-qmk](https://octocounts.com/github/vial-kb/vial-qmk) — JSON, 1,415,394 code lines
- [dokploy/dokploy](https://octocounts.com/github/dokploy/dokploy) — JSON, 1,441,048 code lines
- [medplum/medplum](https://octocounts.com/github/medplum/medplum) — JSON, 1,441,864 code lines
- [insightlabs38-pixel/HydroSwarm](https://octocounts.com/github/insightlabs38-pixel/HydroSwarm) — JSON, 1,564,744 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
