lexbor/lexbor
FreeLexbor is development of an open source HTML Renderer library. https://lexbor.com
About lexbor/lexbor
Lexbor is an open-source browser engine library written in pure C99, designed for modularity and performance. It provides a set of production-ready modules for HTML parsing, CSS processing, URL handling, Encoding, Unicode normalization, and more, all adhering to WHATWG and W3C standards. The library has been rigorously tested on over 200 million real-world web pages to ensure stability and correctness. Lexbor is used by major projects such as PHP (for its DOM/HTML extension since PHP 8.4), SerpApi for large-scale HTML parsing, the Selectolax Python library, the Nokolexbor Ruby gem, and the Nordstjernen web browser. Its zero-dependency, modular architecture allows developers to include only the components they need, making it ideal for web scraping, browser development, and high-performance web data extraction.
Key Features
Pros & Cons
- Extremely fast HTML parsing compared to other libraries
- Strict compliance with modern web standards ensures correct behavior
- Modular design allows lightweight integration with minimal overhead
- Zero external dependencies avoids dependency conflicts and simplifies builds
- Comprehensive testing on millions of pages ensures reliability
- Free and open-source with permissive licensing
- Growing ecosystem of bindings across multiple languages
- Layout and Font modules are still in development, so full browser rendering is not yet available
- No JavaScript engine or DOM rendering included; intended as a low-level library
- Primarily a C library, requiring C compilation knowledge and tooling to integrate
- Documentation is primarily on the website (lexbor.com) and may not cover all advanced use cases
- Some modules (e.g., Layout) are marked as work in progress and may be incomplete