Decision Workspace
tiktokenx vs tiktoken vs tiktoken-rs
Side-by-side comparison of Rust crates
41
tiktokenx
growingv0.1.0
A high-performance Rust implementation of OpenAI's tiktoken library
61
tiktoken
stablev4.1.2
A high-performance pure-Rust implementation of OpenAI's tiktoken BPE tokenizer
65
tiktoken-rs
growingv0.12.1
Library for encoding and decoding with the tiktoken library in Rust
Core Metrics
| tiktokenx | tiktoken | tiktoken-rs | |
|---|---|---|---|
| Health Score | 41 | 61 | 65 |
| Total Downloads | 420 | 57.8K | 20.2M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 245 | 8.7K |
| Releases | 1 | 26 | 36 |
| Last Updated | 414d ago | 57d ago | 15d ago |
| Age | 1y 1m | 3y 1m | 3y 8m |
Health Breakdown
tiktokenx
Maintenance
2
Quality
15
Community
6
Popularity
3
Documentation
15
tiktoken
Maintenance
16
Quality
13
Community
13
Popularity
6
Documentation
13
tiktoken-rs
Maintenance
18
Quality
12
Community
12
Popularity
8
Documentation
15
Technical Details
| tiktokenx | tiktoken | tiktoken-rs | |
|---|---|---|---|
| Version | 0.1.0 | 4.1.2 | 0.12.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT |
| Dependencies | 8 | 9 | 8 |
| Crate Size | 33KB | 5.3MB | 3.8MB |
| Features | 3 | 23 | 2 |
| Yanked % | 0.0% | 26.9% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | 1.85.0 | — | 1.85.0 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •tiktoken-rs leads with a health score of 65/100, but none of the options score above 80.
- •tiktoken-rs is depended on by 8.7K crates — strongest ecosystem trust.
- •⚠ tiktokenx has not been updated in over a year.
- •tiktokenx, tiktoken-rs are pre-1.0 — API may change.