# Angular vs React: source lines of code compared

The Angular vs React comparison on OctoCounts shows side-by-side source line counts for angular/angular and facebook/react, counted with the same engine and analysis options on the dates shown in the methodology line: files, total lines, code lines, comment lines, blank lines, and per-language totals, pinned to the exact commits listed below.

As of 2026-09-19, angular/angular contains 946,917 total lines (627,921 code) across 6,613 files, while facebook/react contains 460,611 total lines (364,889 code) across 2,133 files as of 2026-09-19. angular/angular is about 1.7x the size of facebook/react by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.

| Metric | [angular/angular](https://octocounts.com/github/angular/angular) | [facebook/react](https://octocounts.com/github/facebook/react) |
| --- | ---: | ---: |
| Files | 6,613 | 2,133 |
| Total lines | 946,917 | 460,611 |
| Code lines | 627,921 | 364,889 |
| Comment lines | 203,100 | 59,352 |
| Blank lines | 115,896 | 36,370 |
| Languages counted | 12 | 11 |

Top languages in angular/angular: TypeScript (55.5% of code), YAML (18.1% of code), JSON (14.2% of code). Top languages in facebook/react: JavaScript (63.5% of code), Rust (17.6% of code), TypeScript (16.4% of code). TypeScript, JSON appear in both top language lists; YAML, HTML, Bazel appear only in angular/angular's top languages; JavaScript, Rust, CSS appear only in facebook/react's top languages.

Methodology: both counts come from cached OctoCounts reports generated with tokei. angular/angular was counted at ref main (commit 7569a02d2961) on 2026-09-19; facebook/react was counted at ref main (commit 59aff3e18cb5) on 2026-09-19. See the [counting methodology](https://octocounts.com/docs/methodology) for ignored directories and analysis options.
## About this comparison

angular/angular counts the Angular framework monorepo: the core framework packages, compiler, and tooling, along with documentation and test suites. facebook/react counts the React monorepo: the React packages plus fixtures, documentation site content, and test infrastructure. Both counts therefore measure framework source trees, counted on the dates shown in the methodology line; Angular's CLI and wider tooling ecosystem live in separate repositories.

Both frameworks present themselves in TypeScript in their current source, as the per-language tables show: Angular's counted code is overwhelmingly TypeScript, while React's tree is majority JavaScript with a substantial TypeScript share — a reflection of how and when each codebase adopted TypeScript rather than of the API surface.

Each repository carries a large test and fixture footprint relative to its shipped packages, so a meaningful share of both counts exists to keep the framework correct rather than to ship to applications.

_Neither number predicts the size, performance, or quality of an app built with the framework: a bundled application contains a compiled subset of the framework, application code, and dependencies. Use these counts to gauge the reading and maintenance surface of each framework source tree._

Sources: [angular/angular repository (framework monorepo)](https://github.com/angular/angular) · [facebook/react repository structure (packages/ monorepo)](https://github.com/facebook/react). Statements verified 2026-09-16.

Evidence and next steps:

- [angular/angular SLOC report](https://octocounts.com/github/angular/angular)
- [facebook/react SLOC report](https://octocounts.com/github/facebook/react)
- [Compare angular/angular and facebook/react interactively](https://octocounts.com/compare?left=https%3A%2F%2Fgithub.com%2Fangular%2Fangular&right=https%3A%2F%2Fgithub.com%2Ffacebook%2Freact)

Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.

## Compare FAQ

### Which has more lines of code, angular/angular or facebook/react?

angular/angular has more code: 627,921 code lines versus 364,889 for facebook/react, about 1.7x as much, based on cached OctoCounts reports as of 2026-09-19.

### Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use SLOC to gauge the scale of what you'd be reading or maintaining, not as a quality signal for angular/angular, facebook/react, or any repository.

### How is this comparison calculated?

Methodology: both counts come from cached OctoCounts reports generated with tokei. angular/angular was counted at ref main (commit 7569a02d2961) on 2026-09-19; facebook/react was counted at ref main (commit 59aff3e18cb5) on 2026-09-19. See the counting methodology for ignored directories and analysis options.

### Can I compare a different branch, tag, or commit?

Yes. This page shows the default branch for each repository. Use the interactive comparison tool to pick any public GitHub repository, branch, tag, or commit SHA for both sides and get a fresh side-by-side report.

## Related OctoCounts pages

- [Interactive repository comparison](https://octocounts.com/compare)
- [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)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
