{"id":13804559,"url":"https://github.com/raff/godet","last_synced_at":"2026-01-23T15:26:16.900Z","repository":{"id":47960534,"uuid":"84689669","full_name":"raff/godet","owner":"raff","description":"Remote client for Chrome DevTools","archived":false,"fork":false,"pushed_at":"2024-08-10T03:07:54.000Z","size":296,"stargazers_count":396,"open_issues_count":2,"forks_count":46,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-13T17:37:23.824Z","etag":null,"topics":[],"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/raff.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}},"created_at":"2017-03-12T00:39:56.000Z","updated_at":"2025-03-29T12:24:10.000Z","dependencies_parsed_at":"2024-01-07T09:39:55.534Z","dependency_job_id":"08478acf-ce1a-4c9e-bc54-1c5126a3eb71","html_url":"https://github.com/raff/godet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/raff/godet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raff%2Fgodet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raff%2Fgodet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raff%2Fgodet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raff%2Fgodet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raff","download_url":"https://codeload.github.com/raff/godet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raff%2Fgodet/sbom","scorecard":{"id":758548,"data":{"date":"2025-08-11","repo":{"name":"github.com/raff/godet","commit":"b11e6c062037d1cf83f0b383bf738284015f75ee"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/raff/godet/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/raff/godet/go.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/go.yml:27","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T22:32:24.109Z","repository_id":47960534,"created_at":"2025-08-22T22:32:24.109Z","updated_at":"2025-08-22T22:32:24.109Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28694489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T14:15:13.573Z","status":"ssl_error","status_checked_at":"2026-01-23T14:09:05.534Z","response_time":59,"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":"2024-08-04T01:00:50.133Z","updated_at":"2026-01-23T15:26:16.866Z","avatar_url":"https://github.com/raff.png","language":"Go","readme":"\n[![Go Documentation](http://godoc.org/github.com/raff/godet?status.svg)](http://godoc.org/github.com/raff/godet)\n[![Go Report Card](https://goreportcard.com/badge/github.com/raff/godet)](https://goreportcard.com/report/github.com/raff/godet)\n[![Actions Status](https://github.com/raff/godet/workflows/Go/badge.svg)](https://github.com/raff/godet/actions)\n\n\n# godet\nRemote client for Chrome DevTools\n\n## Installation\n\n    $ go get github.com/raff/godet\n    \n## Documentation\nhttp://godoc.org/github.com/raff/godet\n\n## Example\nA pretty complete example is available at [`cmd/godet/main.go`](https://github.com/raff/godet/blob/master/cmd/godet/main.go).\nThis example is available at [`examples/example.go`](https://github.com/raff/godet/blob/master/examples/example.go).\n\n```go\nimport \"github.com/raff/godet\"\n\n// connect to Chrome instance\nremote, err := godet.Connect(\"localhost:9222\", true)\nif err != nil {\n    fmt.Println(\"cannot connect to Chrome instance:\", err)\n    return\n}\n\n// disconnect when done\ndefer remote.Close()\n\n// get browser and protocol version\nversion, _ := remote.Version()\nfmt.Println(version)\n\n// get list of open tabs\ntabs, _ := remote.TabList(\"\")\nfmt.Println(tabs)\n\n// install some callbacks\nremote.CallbackEvent(godet.EventClosed, func(params godet.Params) {\n    fmt.Println(\"RemoteDebugger connection terminated.\")\n})\n\nremote.CallbackEvent(\"Network.requestWillBeSent\", func(params godet.Params) {\n    fmt.Println(\"requestWillBeSent\",\n        params[\"type\"],\n        params[\"documentURL\"],\n        params[\"request\"].(map[string]interface{})[\"url\"])\n})\n\nremote.CallbackEvent(\"Network.responseReceived\", func(params godet.Params) {\n    fmt.Println(\"responseReceived\",\n        params[\"type\"],\n        params[\"response\"].(map[string]interface{})[\"url\"])\n})\n\nremote.CallbackEvent(\"Log.entryAdded\", func(params godet.Params) {\n    entry := params[\"entry\"].(map[string]interface{})\n    fmt.Println(\"LOG\", entry[\"type\"], entry[\"level\"], entry[\"text\"])\n})\n\n// block loading of most images\n_ = remote.SetBlockedURLs(\"*.jpg\", \"*.png\", \"*.gif\")\n\n// create new tab\ntab, _ := remote.NewTab(\"https://www.google.com\")\nfmt.Println(tab)\n\n// enable event processing\nremote.RuntimeEvents(true)\nremote.NetworkEvents(true)\nremote.PageEvents(true)\nremote.DOMEvents(true)\nremote.LogEvents(true)\n\n// navigate in existing tab\n_ = remote.ActivateTab(tabs[0])\n\n// re-enable events when changing active tab\nremote.AllEvents(true) // enable all events\n\n_, _ = remote.Navigate(\"https://www.google.com\")\n\n// evaluate Javascript expression in existing context\nres, _ := remote.EvaluateWrap(`\n    console.log(\"hello from godet!\")\n    return 42;\n`)\nfmt.Println(res)\n\n// take a screenshot\n_ = remote.SaveScreenshot(\"screenshot.png\", 0644, 0, true)\n\n// or save page as PDF\n_ = remote.SavePDF(\"page.pdf\", 0644)\n\n```\n","funding_links":[],"categories":["Chrome DevTools Protocol"],"sub_categories":["Libraries for driving the protocol (or a layer above)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraff%2Fgodet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraff%2Fgodet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraff%2Fgodet/lists"}