Skip to content

Add CDP backend support with automatic Lightpanda startup and install…#47

Open
krichprollsch wants to merge 1 commit intogarrytan:mainfrom
krichprollsch:lightpanda-alt
Open

Add CDP backend support with automatic Lightpanda startup and install…#47
krichprollsch wants to merge 1 commit intogarrytan:mainfrom
krichprollsch:lightpanda-alt

Conversation

@krichprollsch
Copy link

…ation

Allow connecting to any external CDP-compatible browser by setting BROWSE_CDP_ENDPOINT. When BROWSE_BACKEND=lightpanda is set, automatically spawn and manage a Lightpanda process, polling its /json/version endpoint until ready before connecting via connectOverCDP().

If the Lightpanda binary is not found in PATH or ~/.local/bin/, run the official installer (pkg.lightpanda.io/install.sh) which handles OS/arch detection and checksum verification.

Env vars:

  • BROWSE_CDP_ENDPOINT: connect to an already-running CDP browser
  • BROWSE_BACKEND=lightpanda: auto-start (and auto-install) Lightpanda
  • BROWSE_LIGHTPANDA_PATH: custom binary path
  • BROWSE_LIGHTPANDA_PORT: CDP port (default: 9222)

…ation

Allow connecting to any external CDP-compatible browser by setting
BROWSE_CDP_ENDPOINT. When BROWSE_BACKEND=lightpanda is set, automatically
spawn and manage a Lightpanda process, polling its /json/version endpoint
until ready before connecting via connectOverCDP().

If the Lightpanda binary is not found in PATH or ~/.local/bin/, run the
official installer (pkg.lightpanda.io/install.sh) which handles OS/arch
detection and checksum verification.

Env vars:
- BROWSE_CDP_ENDPOINT: connect to an already-running CDP browser
- BROWSE_BACKEND=lightpanda: auto-start (and auto-install) Lightpanda
- BROWSE_LIGHTPANDA_PATH: custom binary path
- BROWSE_LIGHTPANDA_PORT: CDP port (default: 9222)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant