{"id":13651069,"url":"https://github.com/rubycdp/ferrum","last_synced_at":"2026-04-15T18:01:26.147Z","repository":{"id":39674663,"uuid":"198371388","full_name":"rubycdp/ferrum","owner":"rubycdp","description":"Headless Chrome Ruby API","archived":false,"fork":false,"pushed_at":"2026-03-24T05:53:33.000Z","size":1355,"stargazers_count":1996,"open_issues_count":34,"forks_count":158,"subscribers_count":24,"default_branch":"main","last_synced_at":"2026-04-11T12:21:51.656Z","etag":null,"topics":["automation","chrome","chromium","developer-tools","headless","headless-chrome","web"],"latest_commit_sha":null,"homepage":"https://ferrum.rubycdp.com","language":"Ruby","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/rubycdp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"rubycdp"}},"created_at":"2019-07-23T06:58:27.000Z","updated_at":"2026-04-11T09:59:52.000Z","dependencies_parsed_at":"2023-12-21T15:21:40.628Z","dependency_job_id":"2510108b-b775-4d35-8279-32572f4bd06e","html_url":"https://github.com/rubycdp/ferrum","commit_stats":{"total_commits":500,"total_committers":56,"mean_commits":8.928571428571429,"dds":0.348,"last_synced_commit":"5ca5e9ed5e9ac8be580589e234aadc1de6929bc0"},"previous_names":["route/ferrum"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/rubycdp/ferrum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubycdp%2Fferrum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubycdp%2Fferrum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubycdp%2Fferrum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubycdp%2Fferrum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubycdp","download_url":"https://codeload.github.com/rubycdp/ferrum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubycdp%2Fferrum/sbom","scorecard":{"id":788945,"data":{"date":"2025-08-11","repo":{"name":"github.com/rubycdp/ferrum","commit":"180f29297f2be7b770b32d8a2f73343e9530e67c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Code-Review","score":1,"reason":"Found 5/30 approved changesets -- score normalized to 1","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":"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":"Maintained","score":1,"reason":"0 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/linter.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linter.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/rubycdp/ferrum/linter.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/linter.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/rubycdp/ferrum/linter.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/rubycdp/ferrum/tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/rubycdp/ferrum/tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/rubycdp/ferrum/tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/rubycdp/ferrum/tests.yml/main?enable=pin","Warn: containerImage not pinned by hash: .devcontainer/Dockerfile:3","Warn: containerImage not pinned by hash: .devcontainer/base.Dockerfile:3","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage 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":"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":"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":"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 10 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-23T06:54:34.997Z","repository_id":39674663,"created_at":"2025-08-23T06:54:34.998Z","updated_at":"2025-08-23T06:54:34.998Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31695459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T20:18:30.949Z","status":"ssl_error","status_checked_at":"2026-04-11T20:18:29.982Z","response_time":54,"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":["automation","chrome","chromium","developer-tools","headless","headless-chrome","web"],"created_at":"2024-08-02T02:00:44.709Z","updated_at":"2026-04-15T18:01:26.137Z","avatar_url":"https://github.com/rubycdp.png","language":"Ruby","readme":"# Ferrum - high-level API to control Chrome in Ruby\n\n## [Documentation](https://docs.rubycdp.com/docs/ferrum/introduction)\n\n\u003cimg align=\"right\"\n     width=\"320\" height=\"241\"\n     alt=\"Ferrum logo\"\n     src=\"https://raw.githubusercontent.com/rubycdp/ferrum/main/logo.svg?sanitize=true\"\u003e\n\nIt is Ruby clean and high-level API to Chrome. Runs headless by default, but you\ncan configure it to run in a headful mode. All you need is Ruby and [Chrome](https://www.google.com/chrome/) or [Chromium](https://www.chromium.org/).\nFerrum connects to the browser by [CDP protocol](https://chromedevtools.github.io/devtools-protocol/) and  there's _no_\nSelenium/WebDriver/ChromeDriver dependency. The emphasis was made on a raw CDP\nprotocol because Chrome allows you to do so many things that are barely\nsupported by WebDriver because it should have consistent design with other\nbrowsers.\n\n* [Cuprite](https://github.com/rubycdp/cuprite) is a pure Ruby driver for[Capybara](https://github.com/teamcapybara/capybara) based on Ferrum.\n* [Vessel](https://github.com/rubycdp/vessel) high-level web crawling framework based on Ferrum and Mechanize.\n\n## Install\n\nThere's no official Chrome or Chromium package for Linux don't install it this\nway because it's either outdated or unofficial, both are bad. Download it from\nofficial source for [Chrome](https://www.google.com/chrome/) or [Chromium](https://www.chromium.org/getting-involved/download-chromium).\nChrome binary should be in the `PATH` or `BROWSER_PATH` and you can pass it as an\noption to browser instance see `:browser_path` in\n[Customization](https://docs.rubycdp.com/docs/ferrum/customization).\n\nAdd this to your `Gemfile` and run `bundle install`.\n\n``` ruby\ngem \"ferrum\"\n```\n\n## Quick Start\n\nNavigate to a website and save a screenshot:\n\n```ruby\nbrowser = Ferrum::Browser.new\nbrowser.go_to(\"https://google.com\")\nbrowser.screenshot(path: \"google.png\")\nbrowser.quit\n```\n\nWhen you work with browser instance Ferrum creates and maintains a default page for you, in fact all the methods above\nare sent to the `page` instance that is created in the `default_context` of the `browser` instance. You can interact\nwith a page created manually and this is preferred:\n\n```ruby\nbrowser = Ferrum::Browser.new\npage = browser.create_page\npage.go_to(\"https://google.com\")\ninput = page.at_xpath(\"//input[@name='q']\")\ninput.focus.type(\"Ruby headless driver for Chrome\", :Enter)\npage.at_css(\"a \u003e h3\").text # =\u003e \"rubycdp/ferrum: Ruby Chrome/Chromium driver - GitHub\"\nbrowser.quit\n```\n\nEvaluate some JavaScript and get full width/height:\n\n```ruby\nbrowser = Ferrum::Browser.new\npage = browser.create_page\npage.go_to(\"https://www.google.com/search?q=Ruby+headless+driver+for+Capybara\")\nwidth, height = page.evaluate \u003c\u003c~JS\n  [document.documentElement.offsetWidth,\n   document.documentElement.offsetHeight]\nJS\n# =\u003e [1024, 1931]\nbrowser.quit\n```\n\nDo any mouse movements you like:\n\n```ruby\n# Trace a 100x100 square\nbrowser = Ferrum::Browser.new\npage = browser.create_page\npage.go_to(\"https://google.com\")\npage.mouse\n  .move(x: 0, y: 0)\n  .down\n  .move(x: 0, y: 100)\n  .move(x: 100, y: 100)\n  .move(x: 100, y: 0)\n  .move(x: 0, y: 0)\n  .up\n\nbrowser.quit\n```\n\n## Development\n\nAfter checking out the repo, run `bundle install` to install dependencies.\n\nThen, run `bundle exec rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will\nallow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the\nversion number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,\npush git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n\n## Contributing\n\nBug reports and pull requests are welcome on [GitHub](https://github.com/rubycdp/ferrum).\n\n## License\n\nThe gem is available as open source under the terms of the\n[MIT License](https://opensource.org/licenses/MIT).\n","funding_links":["https://github.com/sponsors/rubycdp"],"categories":["Software","Ruby","Testing"],"sub_categories":["Make your life easier"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubycdp%2Fferrum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubycdp%2Fferrum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubycdp%2Fferrum/lists"}