Electron vs Tauri: source lines of code compared
As of 2026-07-27, electron/electron contains 240,004 total lines (187,317 code) across 1,197 files, while tauri-apps/tauri contains 152,283 total lines (107,510 code) across 666 files as of 2026-07-27. electron/electron is about 1.7x the size of tauri-apps/tauri by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.
| Metric | electron/electron | tauri-apps/tauri |
|---|
| Files | 1,197 | 666 |
| Total lines | 240,004 | 152,283 |
| Code lines | 187,317 | 107,510 |
| Comment lines | 17,504 | 23,453 |
| Blank lines | 35,183 | 21,320 |
| Languages counted | 12 | 12 |
Top languages in electron/electron: C++ (39.8% of code), TypeScript (37.0% of code), C Header (11.9% of code). Top languages in tauri-apps/tauri: Rust (67.5% of code), JSON (15.8% of code), YAML (4.0% of code). TypeScript appears in both top language lists; C++, C Header, Objective-C++, JavaScript appear only in electron/electron's top languages; Rust, JSON, YAML, TOML appear only in tauri-apps/tauri's top languages.
Methodology: both counts come from cached OctoCounts reports generated with tokei. electron/electron was counted at ref main (commit 99778533351c) on 2026-07-27; tauri-apps/tauri was counted at ref dev (commit d17c5185403d) on 2026-07-27. 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.