Vuex vs Pinia: source lines of code compared

This page compares the source lines of code (SLOC) of vuejs/vuex and vuejs/pinia 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, vuejs/vuex contains 4,905 total lines (3,396 code) across 116 files, while vuejs/pinia contains 25,957 total lines (20,321 code) across 157 files as of 2026-08-26. vuejs/pinia is about 6.0x the size of vuejs/vuex by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.

Metricvuejs/vuexvuejs/pinia
Files116157
Total lines4,90525,957
Code lines3,39620,321
Comment lines6322,855
Blank lines8772,781
Languages counted710

Top languages in vuejs/vuex: JavaScript (77.7% of code), TypeScript (6.5% of code), CSS (4.7% of code). Top languages in vuejs/pinia: YAML (64.6% of code), TypeScript (30.8% of code), JSON (2.4% of code). JavaScript, TypeScript, JSON appear in both top language lists; CSS, HTML appear only in vuejs/vuex's top languages; YAML, Vue appear only in vuejs/pinia's top languages.

Methodology: both counts come from cached OctoCounts reports generated with tokei. vuejs/vuex was counted at ref main (commit bd907467b839) on 2026-08-26; vuejs/pinia was counted at ref v4 (commit 5d6ac5b86491) 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, vuejs/vuex or vuejs/pinia?

vuejs/pinia has more code: 20,321 code lines versus 3,396 for vuejs/vuex, about 6.0x 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 vuejs/vuex, vuejs/pinia, or any repository.

How is this comparison calculated?

Methodology: both counts come from cached OctoCounts reports generated with tokei. vuejs/vuex was counted at ref main (commit bd907467b839) on 2026-08-26; vuejs/pinia was counted at ref v4 (commit 5d6ac5b86491) 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.