{"id":47540643,"url":"https://github.com/joakimcarlsson/bonk","last_synced_at":"2026-04-01T18:01:10.818Z","repository":{"id":345898194,"uuid":"1186874810","full_name":"JoakimCarlsson/bonk","owner":"JoakimCarlsson","description":"Go-native browser automation via Chrome DevTools Protocol. No Node.js, no relay process, no external dependencies. ","archived":false,"fork":false,"pushed_at":"2026-03-21T15:18:27.000Z","size":507,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-21T22:44:09.826Z","etag":null,"topics":["browser-automation","cdp","chrome-devtools-protocol","golang","headless-chrome","stealth","web-scraping","websocket"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/JoakimCarlsson.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":"2026-03-20T04:42:28.000Z","updated_at":"2026-03-21T08:06:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/JoakimCarlsson/bonk","commit_stats":null,"previous_names":["joakimcarlsson/bonk"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JoakimCarlsson/bonk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoakimCarlsson%2Fbonk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoakimCarlsson%2Fbonk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoakimCarlsson%2Fbonk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoakimCarlsson%2Fbonk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoakimCarlsson","download_url":"https://codeload.github.com/JoakimCarlsson/bonk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoakimCarlsson%2Fbonk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: 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":["browser-automation","cdp","chrome-devtools-protocol","golang","headless-chrome","stealth","web-scraping","websocket"],"created_at":"2026-03-28T14:00:25.166Z","updated_at":"2026-04-01T18:01:10.803Z","avatar_url":"https://github.com/JoakimCarlsson.png","language":"Go","funding_links":[],"categories":["Testing","Template Engines"],"sub_categories":["Selenium and browser control tools"],"readme":"# bonk\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/joakimcarlsson/bonk.svg)](https://pkg.go.dev/github.com/joakimcarlsson/bonk)\n[![Go Report Card](https://goreportcard.com/badge/github.com/joakimcarlsson/bonk)](https://goreportcard.com/report/github.com/joakimcarlsson/bonk)\n[![codecov](https://codecov.io/gh/joakimcarlsson/bonk/graph/badge.svg)](https://codecov.io/gh/joakimcarlsson/bonk)\n\nA fast, stealth-first browser automation library for Go. Direct Chrome DevTools Protocol over WebSocket — no WebDriver, no relay, no detection.\n\n[Documentation](https://joakimcarlsson.github.io/bonk)\n\n## Features\n\n- **Direct CDP** — WebSocket to Chrome, zero intermediaries, undetectable by default\n- **Stealth by default** — skips `Runtime.enable`, patches navigator/plugins/WebGL, strips headless signals\n- **Code-generated protocol bindings** — full coverage of all 55 CDP domains from upstream `.pdl` files\n- **Context-aware** — `page.WithContext(ctx)` / `page.Timeout(d)` for deadlines and cancellation\n- **Auto-wait elements** — polls for visibility before interaction, retries stale references\n- **Network interception** — intercept, modify, mock, or block requests and responses via the Fetch domain\n- **Device emulation** — built-in presets for iPhone 15, Pixel 8, iPad Pro, Galaxy S23, and more\n- **Session persistence** — save and restore cookies and localStorage across runs\n- **Isolated contexts** — separate cookie jars, proxies, viewports, and locales per context\n- **Single dependency** — only [`coder/websocket`](https://github.com/coder/websocket)\n\n## Installation\n\n```bash\ngo get github.com/joakimcarlsson/bonk\n```\n\n## Quick Start\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/joakimcarlsson/bonk\"\n)\n\nfunc main() {\n\tb, err := bonk.Launch()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer b.Close()\n\n\tctx, err := b.NewContext()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tpage, err := ctx.NewPage()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tif err := page.Navigate(\"https://example.com\"); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\ttitle, _ := page.Title()\n\tfmt.Println(title)\n}\n```\n\n## License\n\nSee [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakimcarlsson%2Fbonk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoakimcarlsson%2Fbonk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoakimcarlsson%2Fbonk/lists"}