{"id":16347711,"url":"https://github.com/privatenumber/playwright-start","last_synced_at":"2025-03-21T00:30:26.919Z","repository":{"id":52598403,"uuid":"338504307","full_name":"privatenumber/playwright-start","owner":"privatenumber","description":"Start a long-running Playwright browser server via CLI","archived":false,"fork":false,"pushed_at":"2021-10-27T17:22:25.000Z","size":66,"stargazers_count":27,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-03-01T01:01:37.945Z","etag":null,"topics":["browser","cli","playwright","server","start"],"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/privatenumber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-13T05:27:27.000Z","updated_at":"2025-01-10T17:09:45.000Z","dependencies_parsed_at":"2022-09-14T22:22:11.184Z","dependency_job_id":null,"html_url":"https://github.com/privatenumber/playwright-start","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fplaywright-start","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fplaywright-start/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fplaywright-start/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privatenumber%2Fplaywright-start/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/privatenumber","download_url":"https://codeload.github.com/privatenumber/playwright-start/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244094204,"owners_count":20397020,"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","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","cli","playwright","server","start"],"created_at":"2024-10-11T00:45:06.110Z","updated_at":"2025-03-21T00:30:26.532Z","avatar_url":"https://github.com/privatenumber.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# playwright-start [![Latest version](https://badgen.net/npm/v/playwright-start)](https://npm.im/playwright-start) [![Monthly downloads](https://badgen.net/npm/dm/playwright-start)](https://npm.im/playwright-start)\n\nStart a long-running [Playwright](https://playwright.dev) browser server via CLI.\n\n\u003csub\u003eSupport this project by ⭐️ starring and sharing it. [Follow me](https://github.com/privatenumber) to see what other cool projects I'm working on! ❤️\u003c/sub\u003e\n\n## 🙋‍♂️ Why?\nWhen developing browser automation scripts, there's a lot of overhead in browser start up every time you test a change.\n\nStart a long-running browser server in a separate window and connect to it from your script to iterate faster! The CLI also comes with a [REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop) to help you quickly test code.\n\n## 🚀 Install\n```sh\nnpm i -D playwright-start\n```\n\n## 🚦 Quick Setup\n1. Start a browser server from a separate terminal session:\n\t```sh\n\tnpx playwright-start\n\t```\n\n2. Connect from your code:\n\t```ts\n\timport {\n\t    ChromiumBrowser,\n\t    devices,\n\t} from 'playwright'\n\timport connect from 'playwright-start'\n\n\t(async () =\u003e {\n\t    const browser = await connect\u003cChromiumBrowser\u003e()\n\n\t    const context = await browser.newContext({\n\t        // Emulate Pixel 2 XL\n\t        ...devices['Pixel 2 XL']\n\t    })\n\n\t    const page = await context.newPage()\n\n\t    // ...\n\t})()\n\t```\n\n## 👨‍🏫 Examples\n\n### Starting a non-headless Chromium server\n\n```sh\nnpx playwright-start --headless=false\n```\n\n### Starting a Firefox or Webkit server\n\nFirefox:\n```sh\nnpx playwright-start firefox\n```\n\nWebkit:\n```sh\nnpx playwright-start webkit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivatenumber%2Fplaywright-start","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprivatenumber%2Fplaywright-start","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivatenumber%2Fplaywright-start/lists"}