{"id":51506407,"url":"https://github.com/dreygur/cdp-protocol","last_synced_at":"2026-07-08T01:01:51.868Z","repository":{"id":369055886,"uuid":"1108750918","full_name":"dreygur/cdp-protocol","owner":"dreygur","description":"Chrome DevTools Protocol (CDP) client in Rust - WebSocket-based browser automation for AI agents, web scraping, and testing","archived":false,"fork":false,"pushed_at":"2026-07-03T10:57:15.000Z","size":14762,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-03T12:25:26.688Z","etag":null,"topics":["ai-agent","async-rust","browser-automation","cdp","chrome-devtools-protocol","headless-browser","rust","tokio","web-scraping","websocket"],"latest_commit_sha":null,"homepage":"https://dev.to/dreygur/browser-automation-protocols-cdp-vs-webdriver-deep-dive-5bmn","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dreygur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-02T21:44:09.000Z","updated_at":"2026-07-03T10:36:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dreygur/cdp-protocol","commit_stats":null,"previous_names":["dreygur/cdp-protocol"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dreygur/cdp-protocol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreygur%2Fcdp-protocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreygur%2Fcdp-protocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreygur%2Fcdp-protocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreygur%2Fcdp-protocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreygur","download_url":"https://codeload.github.com/dreygur/cdp-protocol/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreygur%2Fcdp-protocol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35247742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","async-rust","browser-automation","cdp","chrome-devtools-protocol","headless-browser","rust","tokio","web-scraping","websocket"],"created_at":"2026-07-08T01:01:51.007Z","updated_at":"2026-07-08T01:01:51.858Z","avatar_url":"https://github.com/dreygur.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdp-protocol\n\nChrome DevTools Protocol (CDP) client. WebSocket-based browser automation for AI\nagents, web scraping, and testing. Rust core, with first-class Node/Deno/Bun\nbindings.\n\n## Workspace\n\n```\ncrates/\n├── cdp-protocol/        # core Rust crate  → crates.io\n└── cdp-protocol-node/   # napi-rs bindings → npm (Node/Deno/Bun)\n```\n\n- **[crates/cdp-protocol](crates/cdp-protocol)** the engine: `CdpClient`,\n  `BrowserAgent`, `Cluster`. See its README for the full Rust API.\n- **[crates/cdp-protocol-node](crates/cdp-protocol-node)** native addon exposing\n  the same three classes to JavaScript, Promises + TypeScript types.\n\n## Quick start\n\nStart Chrome with remote debugging:\n\n```bash\ngoogle-chrome --headless=new --remote-debugging-port=9222 --no-first-run\n```\n\nRust:\n\n```bash\ncargo run -p cdp-protocol --example basic\n```\n\nNode / Deno / Bun:\n\n```js\nimport { BrowserAgent } from 'cdp-protocol'\n\nconst agent = await BrowserAgent.connect('127.0.0.1', 9222)\nawait agent.navigate('https://example.com')\nconsole.log((await agent.getTitle()).value)\nawait agent.close()\n```\n\n## Resources\n\n- [Blog: CDP vs WebDriver deep dive](https://dev.to/dreygur/browser-automation-protocols-cdp-vs-webdriver-deep-dive-5bmn)\n- [CDP Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/)\n- [W3C WebDriver Spec](https://www.w3.org/TR/webdriver2/)\n- [Puppeteer Docs](https://pptr.dev/)\n- [Playwright Docs](https://playwright.dev/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreygur%2Fcdp-protocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreygur%2Fcdp-protocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreygur%2Fcdp-protocol/lists"}