{"id":18438742,"url":"https://github.com/webdriverio-community/node-safaridriver","last_synced_at":"2025-09-01T12:39:22.527Z","repository":{"id":65170241,"uuid":"584825755","full_name":"webdriverio-community/node-safaridriver","owner":"webdriverio-community","description":"An NPM wrapper for Safaridriver binary on MacOS","archived":false,"fork":false,"pushed_at":"2025-08-25T20:34:29.000Z","size":2493,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-25T22:56:11.073Z","etag":null,"topics":["automation","driver","safari","test","webdriver","webdriver-bidi"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/webdriverio-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"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},"funding":{"tidelift":"npm/safaridriver","open_collective":"webdriverio","github":["christian-bromann","webdriverio"]}},"created_at":"2023-01-03T16:01:43.000Z","updated_at":"2025-08-19T07:31:26.000Z","dependencies_parsed_at":"2024-08-13T00:16:14.044Z","dependency_job_id":"f24a058a-7704-440e-9334-2b4770e457ad","html_url":"https://github.com/webdriverio-community/node-safaridriver","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/webdriverio-community/node-safaridriver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdriverio-community%2Fnode-safaridriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdriverio-community%2Fnode-safaridriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdriverio-community%2Fnode-safaridriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdriverio-community%2Fnode-safaridriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdriverio-community","download_url":"https://codeload.github.com/webdriverio-community/node-safaridriver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdriverio-community%2Fnode-safaridriver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273124653,"owners_count":25050095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"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":["automation","driver","safari","test","webdriver","webdriver-bidi"],"created_at":"2024-11-06T06:21:29.955Z","updated_at":"2025-09-01T12:39:22.481Z","avatar_url":"https://github.com/webdriverio-community.png","language":"TypeScript","funding_links":["https://tidelift.com/funding/github/npm/safaridriver","https://opencollective.com/webdriverio","https://github.com/sponsors/christian-bromann","https://github.com/sponsors/webdriverio"],"categories":[],"sub_categories":[],"readme":"# Safaridriver for Node.js [![CI](https://github.com/webdriverio-community/node-safaridriver/actions/workflows/ci.yml/badge.svg)](https://github.com/webdriverio-community/node-safaridriver/actions/workflows/ci.yml) [![Audit](https://github.com/webdriverio-community/node-safaridriver/actions/workflows/audit.yml/badge.svg)](https://github.com/webdriverio-community/node-safaridriver/actions/workflows/audit.yml)\n\n\u003e A Node.js untility to manage Safaridriver sessions.\n\nThe Safaridriver utility is used to launch an HTTP server that implements the [WebDriver](https://w3c.github.io/webdriver/) REST API. When launched, Safaridriver allows for automated testing of web content using the version of Safari that is installed with macOS.\n\n## Install\n\nTo install the package, run:\n\n```sh\nnpm install --save-dev safaridriver\n```\n\n## Usage\n\nTo start a Safaridriver server, import the package and run:\n\n```js\nimport safaridriver from 'safaridriver'\n\nawait safaridriver.start()\n\n// run some automation...\n\n// then kill instance via:\nsafaridriver.stop()\n```\n\n## Options\n\n### `port`\n\nSpecifies the port on which the HTTP server should listen for incoming connections. If the port is already in use or otherwise unavailable, Safaridriver will exit immediately with a non-zero return code.\n\n__Type:__ `number`\u003cbr /\u003e\n__Default:__ `4444`\n\n### `path`\n\nPath to Safaridriver binary.\n\n__Type:__ `string`\u003cbr /\u003e\n__Default:__ `/usr/bin/safaridriver`\n\n### `useTechnologyPreview`\n\nIf set to `true`, it will start the Safaridriver for Safari Technology Preview. Make sure you have it installed by installing Safari Technology Preview on Apple's [offical website](https://developer.apple.com/safari/technology-preview/).\n\n__Type:__ `boolean`\u003cbr /\u003e\n__Default:__ `false`\n\n### `enable`\n\nApplies configuration changes so that subsequent WebDriver sessions will run without further authentication. This includes checking \"Enable Remote Automation\" in Safari's `Develop` menu. The user must authenticate via password for the changes to be applied.\n\nWhen this option is specified, safaridriver exits immediately without starting up the REST API service. If the changes were successful or already applied, safaridriver exits 0; otherwise, safaridriver exits \u003e0 and prints an error message to stderr.\n\n__Type:__ `boolean`\u003cbr /\u003e\n__Default:__ `false`\n\n### `diagnose`\n\nEnables diagnostic logging for all sessions hosted by this safaridriver instance.\n\n__Type:__ `boolean`\u003cbr /\u003e\n__Default:__ `false`\n\n----\n\nFor more information on WebdriverIO see the [homepage](http://webdriver.io).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdriverio-community%2Fnode-safaridriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdriverio-community%2Fnode-safaridriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdriverio-community%2Fnode-safaridriver/lists"}