ReadabilityRS: Mozilla's Readability algorithm ported to Rust - 93.8% test compatible, faster than the original and actually better

122 points theisk44 26 comments

I just released ReadabilityRS - a Rust port of Mozilla's Readability algorithm (the same one powering Firefox's Reader View).

Crates.io: https://crates.io/crates/readabilityrs
GitHub: https://github.com/theiskaa/readabilityrs

  • Passes 93.8% of Mozilla's official test suite (122/130 tests)
  • The 8 "failures" are actually intentional improvements in byline detection and excerpt selection
  • Significantly faster than the JavaScript original thanks to zero-cost abstractions
  • Memory safe with minimal allocations

Would love feedback from the community!