Decision Workspace
sparse-ngrams vs gramdex vs sngram
Side-by-side comparison of Rust crates
52
sparse-ngrams
experimentalv0.4.0
Fast sparse n-gram extraction from byte slices.
63
gramdex
experimentalv0.5.0
K-gram indexing for approximate string matching
56
sngram
experimentalv1.0.0
Sparse n-gram extraction for code search indexing
Core Metrics
| sparse-ngrams | gramdex | sngram | |
|---|---|---|---|
| Health Score | 52 | 63 | 56 |
| Total Downloads | 5.6K | 2.1K | 240 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 36 | 2 |
| Releases | 4 | 12 | 9 |
| Last Updated | 2d ago | today | 35d ago |
| Age | 2m | 8m | 4m |
Health Breakdown
sparse-ngrams
Maintenance
13
Quality
15
Community
10
Popularity
4
Documentation
10
gramdex
Maintenance
19
Quality
15
Community
10
Popularity
4
Documentation
15
sngram
Maintenance
17
Quality
17
Community
7
Popularity
3
Documentation
12
Technical Details
| sparse-ngrams | gramdex | sngram | |
|---|---|---|---|
| Version | 0.4.0 | 0.5.0 | 1.0.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 3 | 7 | 5 |
| Crate Size | 78KB | 38KB | 269KB |
| Features | 1 | 2 | 3 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2024 | 2021 | 2024 |
| MSRV | — | 1.80 | 1.96 |
| Owners | 4 | 1 | 1 |
Links
Quick Verdict
- •gramdex leads with a health score of 63/100, but none of the options score above 80.
- •sparse-ngrams has the most downloads (5.6K), suggesting wider adoption.
- •sparse-ngrams, gramdex are pre-1.0 — API may change.