Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

htmlparser2

Fast, forgiving HTML and XML parser for Node.js, the engine under cheerio.

Scraping, browsers and parsing npm MIT

Used in agent projects
9
0.2% of 4,818 JS/TS repos built with AI coding agents
Gid Score
60 /100
#780 of 3,794 tools, #29 in scraping, browsers and parsing · ranking
In the catalog because
Public numbers
downloads and GitHub stars, added Oct 13, 2026; too rare in our project count to rank by use
Downloads
57.9M
npm, last 7 days, htmlparser2
GitHub stars
4,793
408 forks · last push Oct 19, 2026

How htmlparser2 is used

htmlparser2 joined the catalog on its public numbers (57,883,028 downloads a week on npm and 4,793 GitHub stars), not on our project count: it is a dependency in 18 public GitHub projects of our scan, 9 of them set up for AI coding agents. Projects that use it most often also use jsdom (38.9%), Zod (61.1%), Playwright (JavaScript) (50.0%).

htmlparser2 popularity over time

Top tools by Gid Score

htmlparser2: downloads per weeknpm, htmlparser2 57,883,028
htmlparser2: GitHub starsfb55/htmlparser2 4,793

Gid Score 60: downloads 100, use in agent projects 26, GitHub stars 38, downloads trend 58 (each 0-100). How it is calculated.

Often used with htmlparser2

jsdom38.9% of htmlparser2 projects · 4.0× more than average
Zod61.1% of htmlparser2 projects · 2.4× more than average
Playwright (JavaScript)50.0% of htmlparser2 projects · 2.9× more than average
Sharp33.3% of htmlparser2 projects · 7.1× more than average
yaml33.3% of htmlparser2 projects · 10.7× more than average
Vitest50.0% of htmlparser2 projects · 2.4× more than average
Babel (JavaScript)27.8% of htmlparser2 projects · 7.5× more than average
AI SDK27.8% of htmlparser2 projects · 6.3× more than average

By coding agent

GitHub Copilot0.2% of projects set up for it
Claude Code0.2% of projects set up for it
Cursor0.2% of projects set up for it

Share of public repos configured for each agent that list htmlparser2 as a dependency.

How htmlparser2 is funded

Most funded tools

GitHub Sponsors

@fb557 current sponsors

GitHub shows how many people and companies sponsor an account, not how much they pay. Sponsors of a person back all of their work, which here includes Cheerio, parse5.

Ways to fund htmlparser2

GitHub Sponsors Own page

As the maintainers list them in FUNDING.yml on GitHub and in the npm package. Checked Oct 20, 2026.

Install

Packagenpm install htmlparser2
Main stacksTypeScript / JavaScript (13), Next.js (4), Python (1)
Example projectsajanraj/OpenChat, openclaw/docs, beep-effect/beep-effect, redchenk/tsukuyomi-space, gulagala001/oh-my-dsh

Alternatives to htmlparser2

All scraping, browsers and parsing

In our scan, none of the most used tools in Scraping, browsers and parsing does the same job as htmlparser2: they are add-ons, companions or tools for a different task.

More in Scraping, browsers and parsing: Beautiful Soup Puppeteer lxml Playwright Core Playwright (Python) Cheerio fast-xml-parser jsonc-parser

Is htmlparser2 right for your project? Ask AgentGid →