{"id":13630741,"url":"https://github.com/dario92/headless","last_synced_at":"2025-04-17T17:31:40.535Z","repository":{"id":93049536,"uuid":"90795761","full_name":"dario92/headless","owner":"dario92","description":"[Work in progress] NodeJS API for Headless Chrome","archived":false,"fork":false,"pushed_at":"2017-06-01T15:50:17.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-06T22:12:34.757Z","etag":null,"topics":["api","chrome","chrome-debugging-protocol","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dario92.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-09T22:01:51.000Z","updated_at":"2017-06-29T13:58:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"28e7e8b6-bd9b-4382-bbe5-e608b0d250dc","html_url":"https://github.com/dario92/headless","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dario92%2Fheadless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dario92%2Fheadless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dario92%2Fheadless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dario92%2Fheadless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dario92","download_url":"https://codeload.github.com/dario92/headless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249360004,"owners_count":21257148,"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":["api","chrome","chrome-debugging-protocol","nodejs"],"created_at":"2024-08-01T22:01:58.023Z","updated_at":"2025-04-17T17:31:40.254Z","avatar_url":"https://github.com/dario92.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"headless - NodeJS API for Headless Chrome\n========\n\n## 😎 Easy to use\n```js\nimport startChrome from 'headless';\n\n(async function() {\n  const chrome = await startChrome();\n  const tab = await chrome.createTab();\n  await tab.setDevice('iPhone6Plus');\n  await tab.navigate('https://news.ycombinator.com/');\n\n  await tab.capture('./test.png', { clip: '.itemlist \u003e tbody' });\n  console.log('saved');\n\n  await tab.close();\n  await chrome.close();\n}());\n```\n\n## 🖥  Installation\n\n### macOS\nInstall Chrome 59+ or the latests version of Chrome Canary.\n\n* Chrome 59+ (not out yet)\n* Chrome Canary ([download](https://www.google.com/chrome/browser/canary.html))\n\nThen install headless as a dependency using\n\n```bash\n$ npm install headless --save\n```\n\n### Linux\nInstall Google Chrome ([https://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line\n](https://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line\n))\n\n```bash\n$ sudo apt-get install libxss1 libappindicator1 libindicator7\n$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb\n$ sudo dpkg -i google-chrome*.deb  # Might show \"errors\", fixed by next line\n$ sudo apt-get install -f\n```\nThen install headless as a dependency using\n\n```bash\n$ npm install headless --save\n```\n\n### Windows\ncoming soon :(\n\n### API docs\ncoming soon\n\n## Tests\nComing soon\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdario92%2Fheadless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdario92%2Fheadless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdario92%2Fheadless/lists"}