Redux vs Zustand: source lines of code compared

This page compares the source lines of code (SLOC) of reduxjs/redux and pmndrs/zustand using cached OctoCounts reports. Code size is not code quality: a larger count only means more source material, not a better or worse project.

As of 2026-08-26, reduxjs/redux contains 382,445 total lines (379,887 code) across 264 files, while pmndrs/zustand contains 18,216 total lines (16,291 code) across 57 files as of 2026-08-26. reduxjs/redux is about 23x the size of pmndrs/zustand by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.

Metricreduxjs/reduxpmndrs/zustand
Files26457
Total lines382,44518,216
Code lines379,88716,291
Comment lines1,422373
Blank lines1,1361,552
Languages counted1011

Top languages in reduxjs/redux: JSON (98.1% of code), JavaScript (1.3% of code), TypeScript (0.4% of code). Top languages in pmndrs/zustand: JSON (57.6% of code), YAML (27.1% of code), TypeScript (7.7% of code). JSON, JavaScript, TypeScript appear in both top language lists; CSS, TSX appear only in reduxjs/redux's top languages; YAML, JSX appear only in pmndrs/zustand's top languages.

Methodology: both counts come from cached OctoCounts reports generated with tokei. reduxjs/redux was counted at ref master (commit 71606661ac51) on 2026-08-26; pmndrs/zustand was counted at ref main (commit b57db4f86ef1) on 2026-08-26. See the counting methodology for ignored directories and analysis options.

Evidence and next steps:

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, reduxjs/redux or pmndrs/zustand?

reduxjs/redux has more code: 379,887 code lines versus 16,291 for pmndrs/zustand, about 23x as much, based on cached OctoCounts reports as of 2026-08-26.

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 reduxjs/redux, pmndrs/zustand, or any repository.

How is this comparison calculated?

Methodology: both counts come from cached OctoCounts reports generated with tokei. reduxjs/redux was counted at ref master (commit 71606661ac51) on 2026-08-26; pmndrs/zustand was counted at ref main (commit b57db4f86ef1) on 2026-08-26. 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.