Decision Workspace
svg-hush vs htmlsanitizer vs ammonia
Side-by-side comparison of Rust crates
58
svg-hush
growingv0.9.6
Strip scripting and other abusable features from SVG files
41
htmlsanitizer
experimentalv0.2.0
A fast, allowlist-based HTML sanitizer
67
ammonia
growingv4.1.2
HTML Sanitization
Core Metrics
| svg-hush | htmlsanitizer | ammonia | |
|---|---|---|---|
| Health Score | 58 | 41 | 67 |
| Total Downloads | 133.6K | 29 | 10.2M |
| 30d Downloads | 18.6K | 29 | 516.7K |
| Dependents | 3 | 0 | 1.3K |
| Releases | 7 | 3 | 39 |
| Last Updated | 40d ago | today | 187d ago |
| Age | 3y 8m | 1d | 10y 6m |
Health Breakdown
svg-hush
Maintenance
15
Quality
14
Community
11
Popularity
6
Documentation
12
htmlsanitizer
Maintenance
14
Quality
9
Community
6
Popularity
2
Documentation
10
ammonia
Maintenance
11
Quality
13
Community
20
Popularity
8
Documentation
15
Technical Details
| svg-hush | htmlsanitizer | ammonia | |
|---|---|---|---|
| Version | 0.9.6 | 0.2.0 | 4.1.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | Apache-2.0 OR MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 5 | 4 | 7 |
| Crate Size | 17KB | 62KB | 57KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 66.7% | 66.7% |
| Edition | 2024 | 2021 | 2021 |
| MSRV | 1.85 | — | 1.80 |
| Owners | 3 | 1 | 2 (team) |
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.
- •svg-hush, htmlsanitizer are pre-1.0 — API may change.