lexbor
Lexbor is development of an open source HTML Renderer library. https://lexbor.com
Lexbor Explained
Lexbor is a fast, lightweight engine for parsing and working with web content like HTML, CSS, and URLs. Think of it as a stripped-down, portable alternative to the rendering engines that power browsers like Chrome or Firefox. Instead of trying to display web pages visually, it focuses on understanding and manipulating the structure of web documents—parsing HTML, extracting elements with CSS selectors, handling encodings, and validating URLs. If you need to programmatically work with web content in your application, this is the tool for that job.
The library is written in C, which means it's extremely fast and can run on almost any platform or device. Unlike heavier solutions that bundle everything together (and pull in tons of dependencies), Lexbor lets you pick and choose only the parts you need. Building a web scraper? Just use the HTML parser module. Validating URLs? Grab the URL module. This modularity keeps things lean and gives developers full control without forcing them to include bloat. The project is also committed to following official web standards—it conforms to HTML5, CSS Syntax, Encoding, URL, Punycode, and Unicode specifications—so the output behaves the way modern browsers expect.
The main users would be developers building web scrapers, content management systems, accessibility tools, or any backend system that needs to understand HTML structure without rendering it to a screen. For example, a company scraping product pages for price comparison, a search engine indexing web content, or a developer building automated testing tools would all benefit from this. It's also being adopted by other programming languages and frameworks—there are already bindings for Python, Ruby, PHP, Crystal, and others, which means you might already be using it indirectly (PHP 8.4+ uses Lexbor under the hood).
The project emphasizes speed, portability, and simplicity by design. It has no external dependencies and passes rigorous testing against hundreds of millions of real web pages, which gives confidence that it handles the messy, real-world HTML the web actually contains. You can build it from source using CMake or grab precompiled binaries for most major Linux distributions, macOS, and other platforms.