Decision Workspace
ammonia vs bubble-bath vs contextual-encoder
Side-by-side comparison of Rust crates
74
ammonia
stablev4.1.3
HTML Sanitization
36
bubble-bath
growingv0.2.1
Small and quick HTML sanitizer
54
contextual-encoder
experimentalv0.6.0
contextual output encoding for xss defense and safe literal embedding, inspired by the owasp java encoder
Core Metrics
| ammonia | bubble-bath | contextual-encoder | |
|---|---|---|---|
| Health Score | 74 | 36 | 54 |
| Total Downloads | 12.7M | 13.6K | 95 |
| 30d Downloads | 548.5K | 0 | 0 |
| Dependents | 1.7K | 0 | 0 |
| Releases | 42 | 7 | 6 |
| Last Updated | 13d ago | 613d ago | 8d ago |
| Age | 10y 10m | 2y 8m | 3m |
Health Breakdown
ammonia
Maintenance
18
Quality
13
Community
20
Popularity
8
Documentation
15
bubble-bath
Maintenance
5
Quality
10
Community
6
Popularity
5
Documentation
10
contextual-encoder
Maintenance
19
Quality
15
Community
6
Popularity
2
Documentation
12
Technical Details
| ammonia | bubble-bath | contextual-encoder | |
|---|---|---|---|
| Version | 4.1.3 | 0.2.1 | 0.6.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 6 | 10 | 0 |
| Crate Size | 60KB | 22KB | 46KB |
| Features | 0 | 3 | 0 |
| Yanked % | 61.9% | 28.6% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.80 | — | 1.70 |
| Owners | 2 (team) | 1 | 1 |
Links
Quick Verdict
- •ammonia leads with a health score of 74/100, but none of the options score above 80.
- •ammonia is depended on by 1.7K crates — strongest ecosystem trust.
- •⚠ bubble-bath has not been updated in over a year.
- •bubble-bath, contextual-encoder are pre-1.0 — API may change.