docs: CDP serve production guide + AI agent integration patterns#1954
Open
Nicolas0315 wants to merge 1 commit intolightpanda-io:mainfrom
Open
docs: CDP serve production guide + AI agent integration patterns#1954Nicolas0315 wants to merge 1 commit intolightpanda-io:mainfrom
Nicolas0315 wants to merge 1 commit intolightpanda-io:mainfrom
Conversation
- CDP serve guide: timeout gotchas, health checks, Docker/systemd/launchd config, troubleshooting table with links to known issues (lightpanda-io#1922) - AI agent integration: 5 connection patterns (Puppeteer, parallel pool, Lightpanda→Chrome fallback, Playwright Python, chromedp Go), performance benchmarks from macOS aarch64 real-device testing, recommended configs for different workloads, known limitations table
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
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.
Summary
Adds two new documentation files in
docs/covering production deployment and AI agent integration — the two areas where we found the most friction as early adopters.docs/cdp-serve-guide.md— CDP Serve Production GuideCovers the "Getting Started → Production" gap that currently exists in the README:
--timeoutgotcha: The default--timeout 10silently disconnects CDP clients that pause for >10 seconds (common in AI agent workflows where the agent waits for LLM responses between page interactions). Documents the fix (--timeout 0) prominently.--cdp_max_connectionstuning: Memory estimates per connection count (e.g., 128 connections ≈ 900 MB).--http_max_concurrent,--http_max_host_open,--http_timeoutwith recommended values for crawl workloads.curlscript, DockerHEALTHCHECK, anddocker-compose.ymlwith health checks.docs/ai-agent-integration.md— AI Agent Integration Patterns5 connection patterns with complete, tested code examples:
connect_over_cdpRemoteAllocatorAlso includes:
Context
We're building next-browse, a knowledge-first browser that uses Lightpanda as the default CDP engine for autonomous agent crawling with Chrome as a fallback for complex SPAs. These docs are distilled from our real integration experience.
Checklist