# Cheerio: 8.1 out of 10

A strong pick. 1st of 10 in [Web scraping and HTML parsing](https://elestia.ai/opensource/scraping/index.md).

Cheerio is a fast, jQuery-style library for parsing HTML and XML in Node.js and other runtimes. It is the standard pick for reading static or server-rendered HTML. It does not run page JavaScript, so sites that build their content in the browser need a browser tool such as Puppeteer.

**Best for:** Developers who fetch static or server-rendered HTML and want to extract data with simple CSS selectors and no browser.

## Scores

- **Overall: 8.1** (likely 7.0 to 8.8)
  - Claude Opus 5.5 (8.0): Cheerio is the default choice for parsing static HTML in JavaScript. It is fast, safe, typed and easy to use. It is not a full answer for scraping pages that run JavaScript (Puppeteer or Stagehand) or for code that needs a standard DOM (jsdom, LinkeDOM). Rare releases and growth below the median keep it from 9.
  - GPT-6.2 Sol (8.1): Cheerio is a strong first pick for extracting data from static or server-rendered HTML in Node.js. Puppeteer is the better fit when the page must run JavaScript, and jsdom suits code that expects standard DOM APIs. Cheerio’s established integrations support the recommendation, while a slow release cadence and below-median download growth make its position less certain over the next two years.
- **Needed by many: 5.5** (likely 4.2 to 6.6)
  - Claude Opus 5.5 (6.5): Many backend and tooling developers need to read HTML at some point: scraping, link previews, email or HTML processing, and static-site tooling. It is still a minority of all JS/TS projects, and Cheerio covers only static HTML, not pages that need a browser.
  - GPT-6.2 Sol (4.5): Parsing HTML is useful for scraping, workflow automation, and document processing across frameworks. Cheerio serves the subset of those jobs where the markup is already available or can be fetched over HTTP. The developer survey shows how common JavaScript and HTML are, but it gives no direct estimate of demand for scraping or parsing.
- **Helps a lot: 8.2** (likely 7.2 to 9.2)
  - Claude Opus 5.5 (8.0): It is fast, typed, well documented, and has a clean jQuery-style API, plus extract(), fromURL() and stream input. Independent tests find it faster than jsdom. Its limits are by design: it runs no JavaScript and has no full DOM API. htmlparser2 is faster but lower-level.
  - GPT-6.2 Sol (8.4): Cheerio combines standards-based HTML parsing, CSS selectors, and structured extraction in a small API. Its typed examples give developers and coding agents a clear pattern for common tasks, and its URL loader reports HTTP failures with status codes. The released relative-link bug matters for scraping, and performance varies by workload. In Rusteerio’s benchmark, Cheerio beat jsdom on bulk HTML extraction and trailed the Rust implementation.
- **Holds up over time: 7.4** (likely 6.3 to 8.5)
  - Claude Opus 5.5 (7.5): It is actively maintained, with 639 commits in the last year and recent pushes. It reached a stable 1.x line after years of release candidates, and its 1.1 and 1.2 releases made few breaking changes. Releases are infrequent, and a small core team (also behind htmlparser2) does most of the work, which keeps the score from going higher.
  - GPT-6.2 Sol (7.3): The repository recorded 639 commits in a year and has public sponsorship, but npm received only one release in that period. Recent releases have come from one lead maintainer, and a fix for the URL loader was still waiting to ship months after the bug was reported. Users reported broken imports and older Node.js builds during the move to 1.0, adding uncertainty about future upgrade costs.
- **Used widely: 7.6** (likely 6.5 to 8.7)
  - Claude Opus 5.5 (8.0): It has 143M downloads every 4 weeks and 557k dependent repos, far ahead of most scraping peers except jsdom and htmlparser2. Growth of 2.8x a year is below the 4.1 median, so its share is slipping. Many downloads also come from other tools that install it.
  - GPT-6.2 Sol (7.1): Ecosyste.ms found about 557,000 repositories and 20,000 npm packages that depend on Cheerio, ahead of Puppeteer’s repository count and behind jsdom’s and htmlparser2’s. Four-week downloads rose from 51.8 million to 143.1 million, or 2.76 times, below the catalog’s 4.1-times median and slightly ahead of Puppeteer’s growth. That points to a large installed base losing ground against the benchmark. Repeat builds and indirect installs leave the number of new direct choices uncertain.
- **Vouched for: 7.5** (likely 6.4 to 8.5)
  - Claude Opus 5.5 (7.0): Crawlee builds its CheerioCrawler on it, and scraping vendors such as ScrapingBee, ZenRows and Oxylabs name it as the default static parser. It has no developer-survey data, and most write-ups are vendor tutorials rather than production case studies.
  - GPT-6.2 Sol (7.9): Apify’s Crawlee uses Cheerio for its HTTP crawler, and n8n uses it in its HTML extraction node. The Rusteerio team’s benchmark gives a concrete performance comparison on thousands of pages, with the limits of a single workload run by a competitor. These integrations show current use in shipped products. Survey-based satisfaction and retention remain unmeasured in the sources reviewed.
- **Safe: 8.4** (likely 7.2 to 9.2)
  - Claude Opus 5.5 (9.0): It has no known advisories, an OpenSSF Scorecard of 9 with pinned dependencies and SAST, and an MIT licence. Its 11 dependencies mostly come from the same maintainers' parser stack, plus undici for fetching. Weak spots are the missing fuzzing and a low CII Best Practices score.
  - GPT-6.2 Sol (7.7): Cheerio is MIT-licensed, has zero direct advisories in the bundle, and scores 9 out of 10 on OpenSSF Scorecard. It has 11 direct dependencies, and users have reported Undici advisories in their installs. Patched Undici 7.x versions fit Cheerio’s declared range, so exposure depends on the version in the lockfile. The Scorecard gives fuzzing zero, and release signing, publish provenance, and the full publisher roster remain unverified.

## Good

- Familiar jQuery-style selectors make extraction code short, and AI agents write it correctly.
- Much faster and lighter than jsdom or a headless browser, with only 11 dependencies.
- Built-in fromURL() and extract() cover simple fetch-and-parse jobs with no extra packages.
- Strong security record: no advisories, OpenSSF Scorecard 9, and an MIT licence.

## Bad

- It does not run client-side JavaScript, so it cannot see content that frontend code renders.
- It does not implement the standard DOM API, so code written for browser DOM methods does not carry over.
- Releases are rare (one in the last year), and most of the work rests on a small core team.
- For large crawls it needs a framework around it, such as Crawlee, for queues, retries and concurrency.

## The numbers

- Downloads, 4 weeks: 143M
- In a year: ×2.8
- GitHub stars: 31k
- Commits, 12 months: 639
- Last npm release: Jan 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/cheeriojs/cheerio
- npm: https://www.npmjs.com/package/cheerio

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
