Decision Workspace
loctok vs tokmd-scan vs llm-tokenizer
Side-by-side comparison of Rust crates
39
loctok
experimentalv0.2.0
Count LOC (lines of code) & TOK (LLM tokens), fast.
56
tokmd-scan
experimentalv1.8.1
Source code scanning adapter (Tokei wrapper) for tokmd.
54
llm-tokenizer
experimentalv1.3.0
LLM tokenizer library with caching and chat template support
Core Metrics
| loctok | tokmd-scan | llm-tokenizer | |
|---|---|---|---|
| Health Score | 39 | 56 | 54 |
| Total Downloads | 738 | 250 | 189.4K |
| 30d Downloads | 4 | 168 | 117.7K |
| Dependents | 0 | 18 | 14 |
| Releases | 2 | 7 | 5 |
| Last Updated | 227d ago | 7d ago | 17d ago |
| Age | 7m | 1m | 2m |
Health Breakdown
loctok
Maintenance
8
Quality
12
Community
6
Popularity
3
Documentation
10
tokmd-scan
Maintenance
16
Quality
16
Community
8
Popularity
3
Documentation
13
llm-tokenizer
Maintenance
16
Quality
13
Community
9
Popularity
6
Documentation
10
Technical Details
| loctok | tokmd-scan | llm-tokenizer | |
|---|---|---|---|
| Version | 0.2.0 | 1.8.1 | 1.3.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | Apache-2.0 |
| Dependencies | 12 | 7 | 23 |
| Crate Size | 30KB | 51KB | 101KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | 2021 |
| MSRV | — | — | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •tokmd-scan leads with a health score of 56/100, but none of the options score above 80.
- •llm-tokenizer has the most downloads (189.4K), suggesting wider adoption.
- •loctok is pre-1.0 — API may change.