# Cake Wallet and 26 Cake Labs dependency repositories

**831,615 source-code lines**, including **746,659 Dart lines**, across 27 repositories.

Measured on 2026-09-22 from wallet revision `b88fbf32ae47cfe894703738d49fd35b263d7cc3` and the dependency revisions in its checked-in `pubspec.lock`.

| Repository | All source lines | Dart lines | Other source lines |
|---|---:|---:|---:|
| [cake_wallet](https://github.com/cake-tech/cake_wallet/tree/b88fbf32ae47cfe894703738d49fd35b263d7cc3) | 251,860 | 244,591 | 7,269 |
| [blockchain_utils](https://github.com/cake-tech/blockchain_utils/tree/59fdf29d72068e0522a96a8953ed7272833a9f57) | 243,565 | 242,446 | 1,119 |
| [on_chain](https://github.com/cake-tech/on_chain/tree/096865a8c6b89c260beadfec04f7e184c40a3273) | 87,475 | 86,338 | 1,137 |
| [zkool2](https://github.com/cake-tech/zkool2/tree/36e72b530c274c4a54a6127aadb94886e84d67bf) | 84,377 | 41,915 | 42,462 |
| [polyseed_dart](https://github.com/cake-tech/polyseed_dart/tree/1a8280ac2b6f01d202d8bff71527fe1ce498c4ed) | 42,634 | 42,634 | 0 |
| [universal_ble](https://github.com/cake-tech/universal_ble/tree/9952fc72ded48891844d7786c0fa14c4cae1ce0b) | 26,752 | 9,628 | 17,124 |
| [trezor-flutter](https://github.com/cake-tech/trezor-flutter/tree/591d4b8c821b9c10561f848b866324a9a8dcb489) | 22,316 | 20,439 | 1,877 |
| [bitcoin_base](https://github.com/cake-tech/bitcoin_base/tree/4e41f96f4838139895c65c3f49109d05af5d46aa) | 14,986 | 13,849 | 1,137 |
| [modal_bottom_sheet](https://github.com/cake-tech/modal_bottom_sheet/tree/b1cca111c53d41b9f07123a8c67cfe06fb1b69bf) | 12,597 | 12,268 | 329 |
| [flutter_file_picker](https://github.com/cake-tech/flutter_file_picker/tree/c414574bc5ac349450f601e7f72c7b9f31b4d087) | 6,030 | 3,061 | 2,969 |
| [sp_scanner](https://github.com/cake-tech/sp_scanner/tree/40ed3ce8319744907bef3b25bc6e0af8428c8724) | 5,518 | 4,367 | 1,151 |
| [flutter_secure_storage](https://github.com/cake-tech/flutter_secure_storage/tree/ca897a08677edb443b366352dd7412735e098e7b) | 5,374 | 1,573 | 3,801 |
| [ledger-flutter-plus-plugins](https://github.com/cake-tech/ledger-flutter-plus-plugins/tree/75bba8632c529debf30ee2b1858530009fa6440b) | 5,029 | 5,029 | 0 |
| [web3dart](https://github.com/cake-tech/web3dart/tree/aa3f932dbf54eda651b7bd01ad00204acf998bd0) | 4,824 | 4,824 | 0 |
| [nostr_tools](https://github.com/cake-tech/nostr_tools/tree/089d5a2dd751429a040ba10fb24fcbae564053e5) | 2,631 | 1,533 | 1,098 |
| [bitbox-flutter](https://github.com/cake-tech/bitbox-flutter/tree/57b78afb85bd2c30d3cdb9f7884f3878a62be442) | 2,398 | 2,261 | 137 |
| [ens_dart](https://github.com/cake-tech/ens_dart/tree/9fa09b9db69b8645d5d50a844652aa570451d101) | 2,354 | 2,354 | 0 |
| [flutter_local_authentication](https://github.com/cake-tech/flutter_local_authentication/tree/75c8681ebef62398a87c8ae0cccb7cfddffa9734) | 2,260 | 362 | 1,898 |
| [ledger-flutter-plus](https://github.com/cake-tech/ledger-flutter-plus/tree/eaf49764ad0863e8dec97ad30ff6aea0a1d1bd28) | 2,016 | 2,016 | 0 |
| [ledger-usb-plus](https://github.com/cake-tech/ledger-usb-plus/tree/40af7c48cf34211ba3cc9e87dd05ed1af8a429a2) | 1,701 | 1,085 | 616 |
| [qr.flutter](https://github.com/cake-tech/qr.flutter/tree/dced28909a82e1906e7c510ae8ca807a1658c898) | 1,193 | 1,081 | 112 |
| [trezor_connect](https://github.com/cake-tech/trezor_connect/tree/d1242cea90f84b00200e7bcab914a5af750e23fb) | 1,155 | 1,061 | 94 |
| [uni_links](https://github.com/cake-tech/uni_links/tree/1989db3f5d625e2fffbad7b85a3b1b8c78c6dfa1) | 735 | 347 | 388 |
| [bech32](https://github.com/cake-tech/bech32/tree/05755063b593aa6cca0a4820a318e0ce17de6192) | 647 | 647 | 0 |
| [google-translator](https://github.com/cake-tech/google-translator/tree/b36571ec11efd838afda010adcc21a4e95302745) | 432 | 432 | 0 |
| [sensitive_clipboard](https://github.com/cake-tech/sensitive_clipboard/tree/288c7ee2d63b459bc735f7dc89321b29a1f12fae) | 396 | 158 | 238 |
| [cake_backup](https://github.com/cake-tech/cake_backup/tree/3aba867dcab6737f6707782f5db15d71f303db38) | 360 | 360 | 0 |
| **26 dependencies subtotal** | **579,755** | **502,068** | **77,687** |
| **Combined total** | **831,615** | **746,659** | **84,956** |

## Counting method

- Used cloc 2.10 with `--by-file --json --skip-uniqueness` on full GitHub source archives at pinned revisions. Every source file recognized by cloc is counted, including duplicate files across and within repositories.
- Source lines exclude blank lines and comments. The source count includes programming languages, interface definitions, and build scripts. It includes checked-in tests, examples, generated source, and word lists embedded in source files.
- Excluded directory components: `doc`, `docs`, and `documentation`.
- Excluded cloc language categories: `AsciiDoc`, `CSV`, `INI`, `JSON`, `Markdown`, `ProGuard`, `Properties`, `SVG`, `TOML`, `Text`, `XML`, `YAML`, `reStructuredText`.
- Counts cover each entire repository, including packages the wallet does not import. They do not represent the number of lines shipped in a wallet binary.
- Downloads did not expand Git submodules, fetch LFS contents, or resolve further dependencies. External native repositories and other transitive dependencies, including the separately built Reown repository, are outside these specified 27 repositories.
- The Ledger plugins repository occurs at two revisions in the lockfile. It is counted once at the Bitcoin/Litecoin revision; its Ethereum package is identical to the separately pinned Ethereum revision.
- The CSV test/example columns use directory-name heuristics and can overlap (for example, tests inside an example app). They should not be summed as disjoint categories.

## Interpreting the size

- `blockchain_utils` includes 171,945 source lines under test directories; some are also under examples.
- `polyseed_dart` contains about 42,000 lines of mnemonic-related source, mostly word lists.
- `zkool2` contains substantial generated Dart/Rust bridge code and generated Dart models.
- `bitbox-flutter` contains roughly 36,000 lines of generated API documentation, excluded from the source total.

## Files

- `counts.csv`: per-repository breakdown and total.
- `counts.json`: full metrics, language breakdowns, revisions, and counting rules.
- `dependency-manifest.json`: package-to-repository and revision mapping from the wallet lockfile.
- `cloc-reports.json`: per-file cloc results with repository-relative paths.

## Recursive dependency audit

The original 26 Cake Labs dependencies already include nine transitive-only repositories. Sixteen repositories provide directly declared runtime packages; google-translator is a direct development dependency.

The complete checked-in Dart lockfile contains 396 packages, including 365 Git packages from 195 distinct repositories: 26 Cake Labs and 169 external. Repository identities were verified with GitHub; 15 renamed/transferred URLs redirect, but none are duplicate entries. This includes development and build tools, not just app runtime dependencies.

Additional Cake Labs dependencies outside the measured source total:

- sp_scanner → rust-silentpayments, using floating master without a committed Cargo lockfile.
- Native preparation scripts → reown_flutter at 8a6d79ef7a268c493eeba45feef9991eea119bbd.
- reown_flutter → yttrium at 740a251c126570b7f5987ce4e05c0cfbfe96a21a.

zkool2 has a separate Rust lockfile containing 21 Git packages from nine external repositories and 872 crates.io package/version entries. Optional, test, build and platform dependencies are represented. iOS file_picker leads to four CocoaPods source repositories. The Monero/Zcash wrapper submodule audit contains 23 unique source repositories at 24 revisions, including the wrappers themselves; downloaded source is not necessarily linked code.

The audit is based on manifests, lockfiles and build scripts. It does not recursively resolve all external manifests, registry dependencies, optional features or native platform configurations. No expanded recursive LOC total has been calculated. The 831,615 source-line count remains scoped to the original 27 measured repositories.

Additional downloads: `dart-repository-inventory.csv` lists all 195 resolved Git repositories; `dependency-audit.json` contains the detailed evidence, dependency edges, revisions, scope limits and identity checks.
