{"id":13588484,"url":"https://github.com/antitoxic/mac-openchrometab","last_synced_at":"2026-01-19T09:01:37.595Z","repository":{"id":180204570,"uuid":"664775774","full_name":"antitoxic/mac-openchrometab","owner":"antitoxic","description":"Opens URL in chrome, reusing tab if present, done as an NPM package using JXA script written in TS","archived":false,"fork":false,"pushed_at":"2023-09-22T07:34:33.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T19:45:07.727Z","etag":null,"topics":["applescript","chrome","google-chrome","jxa","macos","npm","pinned","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antitoxic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"antitoxic"}},"created_at":"2023-07-10T18:10:21.000Z","updated_at":"2025-03-27T04:11:35.000Z","dependencies_parsed_at":"2023-09-22T13:04:54.411Z","dependency_job_id":null,"html_url":"https://github.com/antitoxic/mac-openchrometab","commit_stats":null,"previous_names":["antitoxic/mac-openchrometab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/antitoxic/mac-openchrometab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antitoxic%2Fmac-openchrometab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antitoxic%2Fmac-openchrometab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antitoxic%2Fmac-openchrometab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antitoxic%2Fmac-openchrometab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antitoxic","download_url":"https://codeload.github.com/antitoxic/mac-openchrometab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antitoxic%2Fmac-openchrometab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"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":["applescript","chrome","google-chrome","jxa","macos","npm","pinned","typescript"],"created_at":"2024-08-01T15:06:44.549Z","updated_at":"2026-01-19T09:01:37.573Z","avatar_url":"https://github.com/antitoxic.png","language":"TypeScript","funding_links":["https://github.com/sponsors/antitoxic"],"categories":["TypeScript"],"sub_categories":[],"readme":"# `@antitoxic/mac-openchrometab`\n\n- `npm` package which offers a single function called `openChromeTab`\n- `openChromeTab` opens a URL in `Google Chrome` (_or other Chromium\n  alternative_), reusing tab if present\n- if tab is not opened already, it will attempt to load the URL in a tab which\n  is blank (`about:blank`) or create a new tab\n- if `Google Chrome` is not running, it will start it\n- if `Google Chrome` window is unfocused or minimized, it will respectively\n  focus \u0026 un-minimize\n\nTo make work, this package uses a\n[`JXA`](https://developer.apple.com/library/archive/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/Articles/Introduction.html#//apple_r 'JavaScript for Automation')\nscript written in `TypeScript`. Even though `JXA` is outdated and unsupported\n`JavaScript`, the `TypeScript` offers more familiar development environment than\nthe usual `AppleScript` used for automating mac.\n\n## Usage\n\n```ts\nimport { openChromeTab } from '@antitoxic/mac-openchrometab';\n//...\nopenChromeTab('http://localhost:8080');\n// or \nopenChromeTab('http://localhost:8080', 'Chromium');\n```\n\n## Use cases\n\n- During active web development, you can automatically open or reuse already\n  opened tab\n- Writing scripts to focus on specific tab you know the url of.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantitoxic%2Fmac-openchrometab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantitoxic%2Fmac-openchrometab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantitoxic%2Fmac-openchrometab/lists"}