{"id":37177541,"url":"https://github.com/fancybits/chromedp","last_synced_at":"2026-01-14T20:42:31.813Z","repository":{"id":90303546,"uuid":"607361878","full_name":"fancybits/chromedp","owner":"fancybits","description":"A faster, simpler way to drive browsers supporting the Chrome DevTools Protocol.","archived":false,"fork":true,"pushed_at":"2025-06-24T04:28:32.000Z","size":2911,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-23T03:46:45.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"chromedp/chromedp","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fancybits.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}},"created_at":"2023-02-27T20:42:42.000Z","updated_at":"2025-04-16T00:42:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fancybits/chromedp","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/fancybits/chromedp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancybits%2Fchromedp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancybits%2Fchromedp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancybits%2Fchromedp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancybits%2Fchromedp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fancybits","download_url":"https://codeload.github.com/fancybits/chromedp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fancybits%2Fchromedp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-14T20:42:30.937Z","updated_at":"2026-01-14T20:42:31.799Z","avatar_url":"https://github.com/fancybits.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About chromedp\n\nPackage `chromedp` is a faster, simpler way to drive browsers supporting the\n[Chrome DevTools Protocol][devtools-protocol] in Go without external dependencies.\n\n[![Unit Tests][chromedp-ci-status]][chromedp-ci]\n[![Go Reference][goref-chromedp-status]][goref-chromedp]\n[![Releases][release-status]][releases]\n\n## Installing\n\nInstall in the usual Go way:\n\n```sh\n$ go get -u github.com/chromedp/chromedp\n```\n\n## Examples\n\nRefer to the [Go reference][goref-chromedp] for the documentation and examples.\nAdditionally, the [examples][chromedp-examples] repository contains more\nexamples on complex actions, and other common high-level tasks such as taking\nfull page screenshots.\n\n## Frequently Asked Questions\n\n\u003e I can't see any Chrome browser window\n\nBy default, Chrome is run in headless mode. See `DefaultExecAllocatorOptions`, and\n[an example][goref-chromedp-exec-allocator] to override the default options.\n\n\u003e I'm seeing \"context canceled\" errors\n\nWhen the connection to the browser is lost, `chromedp` cancels the context, and\nit may result in this error. This occurs, for example, if the browser is closed\nmanually, or if the browser process has been killed or otherwise terminated.\n\n\u003e Chrome exits as soon as my Go program finishes\n\nOn Linux, `chromedp` is configured to avoid leaking resources by force-killing\nany started Chrome child processes. If you need to launch a long-running Chrome\ninstance, manually start Chrome and connect using `RemoteAllocator`.\n\n\u003e Executing an action without `Run` results in \"invalid context\"\n\nBy default, a `chromedp` context does not have an executor, however one can be\nspecified manually if necessary; see [issue #326][github-326]\nfor an example.\n\n\u003e I can't use an `Action` with `Run` because it returns many values\n\nWrap it with an `ActionFunc`:\n\n```go\nctx, cancel := chromedp.NewContext(context.Background())\ndefer cancel()\nchromedp.Run(ctx, chromedp.ActionFunc(func(ctx context.Context) error {\n\t_, err := domain.SomeAction().Do(ctx)\n\treturn err\n}))\n```\n\n\u003e I want to use chromedp on a headless environment\n\nThe simplest way is to run the Go program that uses chromedp inside the\n[chromedp/headless-shell][docker-headless-shell] image. That image contains\n`headless-shell`, a smaller headless build of Chrome, which `chromedp` is able\nto find out of the box.\n\n## Resources\n\n* [`headless-shell`][docker-headless-shell] - A build of `headless-shell` that is used for testing `chromedp`\n* [chromedp: A New Way to Drive the Web][gophercon-2017-presentation] - GopherCon SG 2017 talk\n* [Chrome DevTools Protocol][devtools-protocol] - Chrome DevTools Protocol reference\n* [chromedp examples][chromedp-examples] - More complicated examples for `chromedp`\n* [`github.com/chromedp/cdproto`][goref-cdproto] - Go reference for the generated Chrome DevTools Protocol API\n* [`github.com/chromedp/pdlgen`][chromedp-pdlgen] - tool used to generate `cdproto`\n* [`github.com/chromedp/chromedp-proxy`][chromedp-proxy] - a simple CDP proxy for logging CDP clients and browsers\n\n[chromedp-ci]: https://github.com/chromedp/chromedp/actions/workflows/test.yml (Test CI)\n[chromedp-ci-status]: https://github.com/chromedp/chromedp/actions/workflows/test.yml/badge.svg (Test CI)\n[chromedp-examples]: https://github.com/chromedp/examples\n[chromedp-pdlgen]: https://github.com/chromedp/pdlgen\n[chromedp-proxy]: https://github.com/chromedp/chromedp-proxy\n[devtools-protocol]: https://chromedevtools.github.io/devtools-protocol/\n[docker-headless-shell]: https://hub.docker.com/r/chromedp/headless-shell/\n[github-326]: https://github.com/chromedp/chromedp/issues/326\n[gophercon-2017-presentation]: https://www.youtube.com/watch?v=_7pWCg94sKw\n[goref-cdproto]: https://pkg.go.dev/github.com/chromedp/cdproto\n[goref-chromedp-exec-allocator]: https://pkg.go.dev/github.com/chromedp/chromedp#example-ExecAllocator\n[goref-chromedp]: https://pkg.go.dev/github.com/chromedp/chromedp\n[goref-chromedp-status]: https://pkg.go.dev/badge/github.com/chromedp/chromedp.svg\n[release-status]: https://img.shields.io/github/v/release/chromedp/chromedp?display_name=tag\u0026sort=semver (Latest Release)\n[releases]: https://github.com/chromedp/chromedp/releases (Releases)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancybits%2Fchromedp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffancybits%2Fchromedp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancybits%2Fchromedp/lists"}