Conversation
- Detect Lightpanda binary in neo setup, default to Chrome when both available
- Add browserType config field ('chrome' | 'lightpanda')
- Support Lightpanda's single-WS multiplexed CDP in neo connect/open/read/snapshot
- Persistent WebSocket pool for backends that tie context to connection lifetime
- Graceful fallback: /json/list → Target.createTarget for target discovery
- Always send params:{} in CDP messages (Lightpanda rejects missing params key)
- Wait for page load in ensureLightpandaPageContext before a11y/DOM queries
Tested: connect, open, read, snapshot, click all working with Lightpanda nightly (bd2406f8).
Lightpanda is 11x faster and uses 9x less memory than Chrome for headless automation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add Lightpanda as an alternative headless browser backend for Neo, alongside Chrome.
Lightpanda is an open-source headless browser written in Zig, purpose-built for AI agents and automation. It's 11x faster and uses 9x less memory than Chrome for headless tasks.
Changes
neo setupauto-detects Lightpanda binary; defaults to Chrome when both availablebrowserTypeconfig field ('chrome'|'lightpanda')neo startlaunches Lightpanda withserve --host --portwhen configuredneo connecthandles Lightpanda's single-WS CDP (no/json/list, usesTarget.createTarget)neo open,neo read,neo snapshot,neo clickall work with Lightpandaparams: {}in CDP messages (Lightpanda rejects missing params key)Config
Tested
All core commands verified with Lightpanda nightly (bd2406f8):
neo connectneo openneo readneo snapshotneo clickChrome remains the default and is unaffected by these changes.