Decision Workspace
safehtml vs ammonia vs bubble-bath
Side-by-side comparison of Rust crates
47
safehtml
experimentalv0.2.0
A high-performance, no_std Rust library for Type-Driven Security (XSS and injection prevention).
74
ammonia
stablev4.2.1
HTML Sanitization
36
bubble-bath
growingv0.2.1
Small and quick HTML sanitizer
Core Metrics
| safehtml | ammonia | bubble-bath | |
|---|---|---|---|
| Health Score | 47 | 74 | 36 |
| Total Downloads | 41 | 18.1M | 14.2K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 2.1K | 0 |
| Releases | 2 | 48 | 7 |
| Last Updated | 83d ago | 7d ago | 702d ago |
| Age | 2m | 11y 1m | 2y 10m |
Health Breakdown
safehtml
Maintenance
9
Quality
15
Community
6
Popularity
2
Documentation
15
ammonia
Maintenance
18
Quality
13
Community
20
Popularity
8
Documentation
15
bubble-bath
Maintenance
5
Quality
10
Community
6
Popularity
5
Documentation
10
Technical Details
| safehtml | ammonia | bubble-bath | |
|---|---|---|---|
| Version | 0.2.0 | 4.2.1 | 0.2.1 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 6 | 10 |
| Crate Size | 82KB | 65KB | 22KB |
| Features | 4 | 0 | 3 |
| Yanked % | 0.0% | 54.2% | 28.6% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.85 | 1.85 | — |
| 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 2.1K crates — strongest ecosystem trust.
- •⚠ bubble-bath has not been updated in over a year.
- •safehtml, bubble-bath are pre-1.0 — API may change.