fb55/htmlparser2
The fast & forgiving HTML and XML parser observed · 2026-10-14
Health v2 · maintenance only
84/100
- Activity 99
- Release rhythm 56
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 56
- age_days: 5533
- days_rel: 214
- days_push: 7
- n_releases_24m: 4
Adoption not part of the score
4792 stars · 405 forks observed · 2026-10-14
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
htmlparser2 is a fast, forgiving HTML and XML parser for JavaScript and TypeScript, offering a low-allocation callback interface as well as DOM output via its ecosystem packages. It prioritizes speed over strict HTML spec compliance, making it the engine behind tools like cheerio.
Use cases
- parse html from web pages in node
- extract links and text from html documents
- parse xml feeds like rss and atom
- scrape websites with cheerio-style selectors
- stream-parse large html documents with minimal memory
- build a dom tree from malformed html
When to choose
- you need the fastest html/xml parsing in javascript
- input html may be malformed or non-spec-compliant
- you want a streaming, low-allocation callback-based parser
- you are building scraping or feed-processing tools
When to avoid
- you need strict HTML5 spec compliance and error correction (use parse5)
- you need a full browser-grade DOM with CSS selector querying out of the box
Facets
library · maturity stable
parser web-scraping parsers web-development developer-tools browser cross-platform html-parser xml-parser dom streaming forgiving-parser typescript nodejs
3 sources
- readme: https://github.com/fb55/htmlparser2 · fetched 2026-10-14 · 75f7b020d681
- homepage: https://feedic.com/htmlparser2 · fetched 2026-08-29 · b0f1ea9925b0
- registry_npm: https://registry.npmjs.org/htmlparser2 · fetched 2026-08-29 · 6e4636685b15
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| fb55/htmlparser2 | main | 84 |
For agents
markdown · JSON · MCP: product_card(name="fb55/htmlparser2")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem