Decision Workspace
srcmetrics vs srcmetrics-cli vs bonsai-core
Side-by-side comparison of Rust crates
45
srcmetrics
experimentalv0.2.0
Language-independent source code metrics (size, complexity, nesting, Halstead, duplication, dependencies, documentation) for C, C++, Go, Java, JavaScript, Python, Rust and TypeScript
46
srcmetrics-cli
experimentalv0.2.0
Command-line tool and local HTTP API for srcmetrics: analyze source code, export metrics as JSON/CSV, statistics and HTML reports
55
bonsai-core
experimentalv0.5.0
Language-agnostic cognitive complexity scoring over tree-sitter trees
Core Metrics
| srcmetrics | srcmetrics-cli | bonsai-core | |
|---|---|---|---|
| Health Score | 45 | 46 | 55 |
| Total Downloads | 32 | 22 | 416 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 2 | 0 | 73 |
| Releases | 2 | 2 | 10 |
| Last Updated | 11d ago | 11d ago | 9d ago |
| Age | 11d | 11d | 20d |
Health Breakdown
srcmetrics
Maintenance
13
Quality
12
Community
6
Popularity
2
Documentation
12
srcmetrics-cli
Maintenance
13
Quality
13
Community
6
Popularity
2
Documentation
12
bonsai-core
Maintenance
16
Quality
14
Community
10
Popularity
3
Documentation
12
Technical Details
| srcmetrics | srcmetrics-cli | bonsai-core | |
|---|---|---|---|
| Version | 0.2.0 | 0.2.0 | 0.5.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 14 | 6 | 1 |
| Crate Size | 58KB | 18KB | 32KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | 1.85 | 1.85 | 1.90 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •bonsai-core leads with a health score of 55/100, but none of the options score above 80.