Lightpanda 0.4.1 drops CORS, 140x faster selectors
Lightpanda has released version 0.4.1 of its Zig-based headless browser for AI agents, adding experimental CORS enforcement and roughly 140x faster nth-* CSS selector matching. The update also introduces PCRE2 regex filtering for native ad blocking, new strip modes for cleaner web extraction, and HTTP WebDriver session management.
Lightpanda is quietly building the strongest alternative to Chrome Headless for autonomous web agents by trading graphical rendering bloat for raw execution speed and lower memory usage.
- –Dramatically lower DOM parsing latency: The ~140x speedup on nth-* selectors and optimized class lookups removes serious friction when crawling dynamic, deeply nested single-page applications.
- –Pre-filtering token bloat: Upgraded native ad blocking with PCRE2 regex and new strip mode options allow pipelines to strip visual noise before sending HTML to LLM context windows.
- –Bridging the web compatibility gap: Adding opt-in CORS support and WebDriver session management provides the compliance required by modern web apps without sacrificing Lightpanda's lightweight runtime.
- –Native agent ergonomics: Support for full mouse pointer event dispatching and persistent HTTP connections ensures AI agent interactions behave reliably across multi-step browser tasks.
DISCOVERED
1h ago
2026-09-16
PUBLISHED
1h ago
2026-09-16
RELEVANCE
AUTHOR
lightpanda_io