{"id":22308810,"url":"https://github.com/ratson/puppeteer_plus","last_synced_at":"2026-03-07T22:32:45.088Z","repository":{"id":54349822,"uuid":"359020583","full_name":"ratson/puppeteer_plus","owner":"ratson","description":"Deno port of puppeteer base on latest TypeScript source.","archived":false,"fork":false,"pushed_at":"2024-04-26T14:51:35.000Z","size":3649,"stargazers_count":22,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-21T12:42:30.413Z","etag":null,"topics":["automation","deno","headless-chrome","puppeteer","testing","typescript","web"],"latest_commit_sha":null,"homepage":"https://deno.land/x/puppeteer_plus","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/ratson.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},"funding":{"github":"ratson"}},"created_at":"2021-04-18T01:44:11.000Z","updated_at":"2024-12-31T12:14:41.000Z","dependencies_parsed_at":"2024-02-29T16:27:07.846Z","dependency_job_id":"018d33ba-e044-4db2-8f36-93a556c71eef","html_url":"https://github.com/ratson/puppeteer_plus","commit_stats":{"total_commits":94,"total_committers":1,"mean_commits":94.0,"dds":0.0,"last_synced_commit":"125e3a55bde67fa7b8e600a3793e971f856a8685"},"previous_names":["ratson/deno_puppeteer"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/ratson/puppeteer_plus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fpuppeteer_plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fpuppeteer_plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fpuppeteer_plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fpuppeteer_plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ratson","download_url":"https://codeload.github.com/ratson/puppeteer_plus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fpuppeteer_plus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30234660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"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","deno","headless-chrome","puppeteer","testing","typescript","web"],"created_at":"2024-12-03T20:15:26.665Z","updated_at":"2026-03-07T22:32:45.009Z","avatar_url":"https://github.com/ratson.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ratson"],"categories":[],"sub_categories":[],"readme":"# puppeteer_plus\n\n\u003cimg src=\"https://user-images.githubusercontent.com/10379601/29446482-04f7036a-841f-11e7-9872-91d1fc2ea683.png\" height=\"200\" align=\"right\"\u003e\n\nAn enhanced [Puppeteer](https://github.com/puppeteer/puppeteer) running on Deno.\n\n## Features\n\n- Add `await using` support for `Browser`, `Page`\n- Download Browser executable when necessary\n- Fix PDF writing error\n\n## Getting Started\n\n### Installation\n\nTo use Puppeteer in your project,\n\n```ts\nimport puppeteer from \"https://deno.land/x/puppeteer_plus/mod.ts\";\n```\n\n### puppeteer-core\n\n```ts\nimport puppeteer from \"https://deno.land/x/puppeteer_plus/core.ts\";\n```\n\n`puppeteer-core` is intended to be a lightweight version of Puppeteer for\nlaunching an existing browser installation or for connecting to a remote one. Be\nsure that the version of puppeteer-core you install is compatible with the\nbrowser you intend to connect to.\n\n### Usage\n\nPuppeteer will be familiar to people using other browser testing frameworks. You\ncreate an instance of Browser, open pages, and then manipulate them with\n[Puppeteer's API](https://github.com/puppeteer/puppeteer/blob/main/docs/api.md).\n\n**Example** - navigating to https://example.com and saving a screenshot as\n_example.png_:\n\nSave file as **example.js**\n\n```ts\nimport puppeteer from \"https://deno.land/x/puppeteer_plus/mod.ts\";\n\nconst browser = await puppeteer.launch();\nconst page = await browser.newPage();\nawait page.goto(\"https://example.com\");\nawait page.screenshot({ path: \"example.png\" });\n\nawait browser.close();\n```\n\nExecute script on the command line\n\n```bash\ndeno run -A --unstable example.js\n```\n\nPuppeteer sets an initial page size to 800×600px, which defines the screenshot\nsize. The page size can be customized with\n[`Page.setViewport()`](https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#pagesetviewportviewport).\n\n**Example** - create a PDF.\n\nSave file as **hn.js**\n\n```js\nimport puppeteer from \"https://deno.land/x/puppeteer_plus/mod.ts\";\n\nconst browser = await puppeteer.launch();\nconst page = await browser.newPage();\nawait page.goto(\"https://news.ycombinator.com\", {\n  waitUntil: \"networkidle2\",\n});\nawait page.pdf({ path: \"hn.pdf\", format: \"a4\" });\n\nawait browser.close();\n```\n\nExecute script on the command line\n\n```bash\ndeno run -A --unstable hn.js\n```\n\nSee\n[`Page.pdf()`](https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#pagepdfoptions)\nfor more information about creating pdfs.\n\n**Example** - evaluate script in the context of the page\n\nSave file as **get-dimensions.js**\n\n```js\nimport puppeteer from \"https://deno.land/x/puppeteer_plus/mod.ts\";\n\nconst browser = await puppeteer.launch();\nconst page = await browser.newPage();\nawait page.goto(\"https://example.com\");\n\n// Get the \"viewport\" of the page, as reported by the page.\nconst dimensions = await page.evaluate(() =\u003e {\n  return {\n    width: document.documentElement.clientWidth,\n    height: document.documentElement.clientHeight,\n    deviceScaleFactor: window.devicePixelRatio,\n  };\n});\n\nconsole.log(\"Dimensions:\", dimensions);\n\nawait browser.close();\n```\n\nExecute script on the command line\n\n```bash\ndeno run -A --unstable get-dimensions.js\n```\n\nSee\n[`Page.evaluate()`](https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#pageevaluatepagefunction-args)\nfor more information on `evaluate` and related methods like\n`evaluateOnNewDocument` and `exposeFunction`.\n\n## Known issues\n\n- Resources is hold until 30 seconds timeout before exit, see\n  [#20179](https://github.com/denoland/deno/issues/20179)\n\n## Credits\n\n`puppeteer_plus` is heavily inspired by\n[`deno-puppeteer`](https://github.com/lucacasonato/deno-puppeteer), the key\ndifference is `puppeteer_plus` imports TypeScript version while `deno-puppeteer`\nis using JavaScript with types.\n\nThis project will definitely not exists without the great work of\n[Puppeteer](https://github.com/puppeteer/puppeteer) prject.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fpuppeteer_plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fratson%2Fpuppeteer_plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fpuppeteer_plus/lists"}