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