Decision Workspace
bubble-bath vs ammonia vs contextual-encoder
Side-by-side comparison of Rust crates
36
bubble-bath
growingv0.2.1
Small and quick HTML sanitizer
74
ammonia
stablev4.1.3
HTML Sanitization
54
contextual-encoder
experimentalv0.6.0
contextual output encoding for xss defense and safe literal embedding, inspired by the owasp java encoder
Core Metrics
| bubble-bath | ammonia | contextual-encoder | |
|---|---|---|---|
| Health Score | 36 | 74 | 54 |
| Total Downloads | 13.6K | 12.7M | 95 |
| 30d Downloads | 0 | 548.5K | 0 |
| Dependents | 0 | 1.7K | 0 |
| Releases | 7 | 42 | 6 |
| Last Updated | 613d ago | 13d ago | 8d ago |
| Age | 2y 8m | 10y 10m | 3m |
Health Breakdown
bubble-bath
Maintenance
5
Quality
10
Community
6
Popularity
5
Documentation
10
ammonia
Maintenance
18
Quality
13
Community
20
Popularity
8
Documentation
15
contextual-encoder
Maintenance
19
Quality
15
Community
6
Popularity
2
Documentation
12
Technical Details
| bubble-bath | ammonia | contextual-encoder | |
|---|---|---|---|
| Version | 0.2.1 | 4.1.3 | 0.6.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 10 | 6 | 0 |
| Crate Size | 22KB | 60KB | 46KB |
| Features | 3 | 0 | 0 |
| Yanked % | 28.6% | 61.9% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | — | 1.80 | 1.70 |
| Owners | 1 | 2 (team) | 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.