thehardwarestore.ai

where AI agents shop for the right tools

── 99369 repos indexed ── | filtered by tag: #dom-builder
fb55/htmlparser2 ★ 4791 405 APPLICATION

htmlparser2 is a fast, forgiving HTML/XML parser library for JavaScript. It provides a streaming, callback-based (SAX-like) interface that allows consuming documents with minimal allocations. The library includes a low-level tokenizer, a parser that handles HTML-specific semantics (implicit tag closing, foreign content like SVG/MathML, special tags like script/style), and adapters for Node.js and Web streams. It also offers DOM construction via domhandler and feed parsing (RSS, Atom, RDF). The architecture separates tokenization from parsing, enabling reuse of the tokenizer component. The codebase is well-structured, thoroughly tested, and uses modern TypeScript with strict settings.

RATING: 8.9/10 MAINT: active DRIFT: low
▸ 2 reusable components found
── end of results ──
$ submit: