Cheerio
A strong pick. 1st of 10 web scraping and HTML parsing.
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
Overall8.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
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.
- scrapingbee.com/blog/best-javascript-web-scraping-libraries: Start with fetch plus Cheerio for static pages
- zenrows.com/blog/jsdom-vs-cheerio: Faster than jsdom; cannot run JS
- npm downloadsLast4Weeks: Very large but slower-than-median growth
GPT-6.2 Sol: 8.1, likely 7.0 to 9.0
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.
- cheerio.js.org/docs/intro: Defines Cheerio’s HTML extraction workflow and rendering limits.
- pptr.dev: Puppeteer controls a full browser.
- github.com/jsdom/jsdom: jsdom implements standard DOM and HTML APIs in Node.js.
- crawlee.dev/js/api/cheerio-crawler/class/CheerioCrawler: Crawlee uses Cheerio for raw HTTP and offers browser crawlers for rendered pages.
- github.releasesLastYear, npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: One release in the past year and growth below the catalog median.
Needed by many5.5
How many developers need a tool for this job?
Claude Opus 5.5: 6.5, likely 5.0 to 7.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.
- scrapingbee.com/blog/best-javascript-web-scraping-libraries: Recommended for static or server-rendered pages only
- dependents: 557k dependent repos shows broad use across project types
GPT-6.2 Sol: 4.5, likely 3.4 to 5.7
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.
- survey.stackoverflow.co/2026/technology: Measures JavaScript and HTML use across developers.
- cheerio.js.org/docs/intro: Describes HTML and XML parsing and the limits of script-free processing.
- docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.html: Shows HTML extraction as a workflow automation task.
Helps a lot8.2
How well does it do the job for those who need it?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- zenrows.com/blog/jsdom-vs-cheerio: Benchmark: about 301 ms for Cheerio vs about 517 ms for jsdom
- scrapingbee.com/blog/best-javascript-web-scraping-libraries: Lists fromURL, extract and stream input; no JS execution
- npm hasTypes: Ships its own TypeScript types
GPT-6.2 Sol: 8.4, likely 7.3 to 9.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.
- cheerio.js.org/docs/advanced/configuring-cheerio: Documents the default parse5 parser and the slimmer htmlparser2 option.
- cheerio.js.org/docs/basics/extract: Shows declarative extraction with selectors, arrays, and nested fields.
- cheerio.js.org/docs/basics/loading: Documents encoding detection and HTTP error behavior.
- github.com/cheeriojs/cheerio/issues/5368: A user report and contributor diagnosis confirm the relative-link bug in 1.2.0.
- github.com/context-dot-dev/rusteerio: A competing project benchmarks Cheerio 1.2.0 against jsdom and its own implementation.
- npm.hasTypes: TypeScript declarations ship with the package.
Holds up over time7.4
Will it still be a good choice in two years?
Claude Opus 5.5: 7.5, likely 6.5 to 8.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.
- github commitsLastYear: 639 commits, last push 2026-11-20
- github.com/cheeriojs/cheerio/releases: v1.1.0 to v1.2.0 were small fixes and features
- github releasesLastYear: Only one release in the last year
GPT-6.2 Sol: 7.3, likely 6.1 to 8.5
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.
- github.commitsLastYear, github.pushedAt, github.releasesLastYear: Active repository with one stable release in the past year.
- github.com/cheeriojs/cheerio/releases: The same maintainer published the recent GitHub releases.
- github.com/sponsors/cheeriojs: Lists a lead maintainer and recurring sponsors.
- github.com/cheeriojs/cheerio/issues/5368: A regression test landed in August while the fix remained unreleased.
- github.com/cheeriojs/cheerio/issues/4024: Users reported runtime and import breakage during the 1.0 upgrade.
Used widely7.6
How many use it, and is that growing?
Claude Opus 5.5: 8.0, likely 7.0 to 9.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.
- npm downloadsLast4Weeks: 143M now vs 51.8M a year ago, a ratio of 2.76, below the 4.1 median
- dependents: 557k repos and 20k packages depend on it
- github stars: 30.5k stars
GPT-6.2 Sol: 7.1, likely 5.9 to 8.3
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.
- dependents.repos, dependents.packages: 557,077 indexed repositories and 20,164 dependent npm packages.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: 2.76-times growth against a 4.1-times benchmark.
- peers, github.stars, bluesky.posts: Strong dependent counts, 30,552 stars, and two Bluesky posts.
- crawlee.dev/js/api/cheerio-crawler/class/CheerioCrawler: Shows how Cheerio also reaches users through a crawler framework.
Vouched for7.5
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- scrapingbee.com/blog/best-javascript-web-scraping-libraries: Recommended as the starting point; Crawlee wraps it
- zenrows.com/blog/jsdom-vs-cheerio: Independent comparison favours it for speed
- dependents packages: 20k npm packages build on it
GPT-6.2 Sol: 7.9, likely 6.8 to 9.0
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.
- crawlee.dev/js/api/cheerio-crawler/class/CheerioCrawler: Apify exposes Cheerio as a supported crawler backend.
- github.com/n8n-io/n8n/blob/master/packages/nodes-base/nodes/Html/Html.node.ts: n8n’s current HTML node uses Cheerio.
- github.com/context-dot-dev/rusteerio: The competing implementation publishes a 3,000-page extraction benchmark.
- survey.stackoverflow.co/2026/technology/data: The survey offers ecosystem context without a Cheerio satisfaction measure.
Safe8.4
How safe is it to depend on?
Claude Opus 5.5: 9.0, likely 8.0 to 9.5
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.
- advisories total: 0 advisories
- scorecard score: 9/10; Fuzzing 0, CII 2
- npm dependencies: 11 dependencies
GPT-6.2 Sol: 7.7, likely 6.4 to 8.8
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.
- advisories.total, npm.dependencies, npm.license: Zero direct advisories, 11 direct dependencies, and an MIT licence.
- scorecard.score, scorecard.checks: Strong CI, token permissions, and dependency updates. Fuzzing scores zero and packaging and signing are unscored.
- github.com/cheeriojs/cheerio/blob/v1.2.0/package.json: Lists one project maintainer and allows compatible Undici 7.x updates.
- github.com/cheeriojs/cheerio/issues/5175: Users reported dependency alerts and asked for a new release.
- github.com/nodejs/undici/releases: Undici publishes security fixes on the compatible 7.x line.
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
- npm downloads, 4 weeks
- 143M ×2.8 in a year
- GitHub stars
- 31k
- Commits, 12 months
- 639
- npm version
- 1.2.0 Jan 2026
- Versions, 12 months
- 1
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 9.0 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (cheeriojs/cheerio), npm (cheerio), OSV and the OpenSSF Scorecard.
Web scraping and HTML parsing
- 8.1Cheerio
- 7.9Puppeteer
- 7.8Crawlee
- 7.3htmlparser2
- 7.1jsdom
- 6.8Stagehand
- 6.8Readability
- 5.5Happy DOM
- 5.4LinkeDOM
- 5.2Selenium WebDriver