The standalone readability library behind Firefox Reader View, now on npm

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Developers who need clean article text from messy web pages can now use Firefox's battle-tested extraction algorithm directly in Node.js instead of writing their own scraping heuristics.

Read this as

Mozilla has published the code that powers Firefox Reader View, the button that strips ads and clutter from web articles, as a free, installable package for JavaScript developers. It takes any webpage's HTML and returns just the article: title, body text and summary, discarding menus, ads and footers. Anyone building a reading app, offline archive or text-to-speech tool can use it rather than building their own. The article gives no pricing, since it is free, and no performance figures.

Mozilla has open-sourced its Reader View extraction algorithm as an npm package, meaning companies building content tools, reader apps, archives, text-to-speech, AI text pipelines, can drop in a proven component instead of funding custom scraper development. It is free, deterministic and requires no cloud service, so there is no vendor or per-request cost. The competitive risk is to anyone selling bespoke content-extraction tooling. The article reports no adoption numbers or enterprise support options.

The @mozilla/readability package exposes the same heuristics Firefox Reader View uses, tuned over years against real-world pages. It consumes a DOM document (JSDOM in Node; no DOM dependency beyond that) and returns a structured object containing title, excerpt, cleaned HTML content and text direction. Usage is roughly four lines: construct a document, instantiate Readability, call parse. It is deterministic, not ML-based. No benchmark numbers or accuracy figures are given in the article.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Mozilla Firefox Reader View @mozilla/readability npm JSDOM Node.js

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading