Decision Workspace
ammonia vs bubble-bath vs contextual-encoder
Side-by-side comparison of Rust crates
67
ammonia
growingv4.1.2
HTML Sanitization
37
bubble-bath
growingv0.2.1
Small and quick HTML sanitizer
44
contextual-encoder
experimentalv0.2.0
contextual output encoding for xss defense, inspired by the owasp java encoder
Core Metrics
| ammonia | bubble-bath | contextual-encoder | |
|---|---|---|---|
| Health Score | 67 | 37 | 44 |
| Total Downloads | 10.2M | 12.7K | 24 |
| 30d Downloads | 502.6K | 78 | 24 |
| Dependents | 1.3K | 0 | 0 |
| Releases | 39 | 7 | 2 |
| Last Updated | 187d ago | 505d ago | 6d ago |
| Age | 10y 6m | 2y 4m | 6d |
Health Breakdown
ammonia
Maintenance
11
Quality
13
Community
20
Popularity
8
Documentation
15
bubble-bath
Maintenance
6
Quality
10
Community
6
Popularity
5
Documentation
10
contextual-encoder
Maintenance
14
Quality
15
Community
6
Popularity
2
Documentation
7
Technical Details
| ammonia | bubble-bath | contextual-encoder | |
|---|---|---|---|
| Version | 4.1.2 | 0.2.1 | 0.2.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT |
| Dependencies | 7 | 10 | 0 |
| Crate Size | 57KB | 22KB | 33KB |
| Features | 0 | 3 | 0 |
| Yanked % | 66.7% | 28.6% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.80 | — | — |
| Owners | 2 (team) | 1 | 1 |
Links
Quick Verdict
- •ammonia leads with a health score of 67/100, but none of the options score above 80.
- •ammonia is depended on by 1.3K 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.