{"id":15433120,"url":"https://github.com/simonw/puppeteer-screenshot","last_synced_at":"2025-04-19T17:52:38.989Z","repository":{"id":39869618,"uuid":"292071058","full_name":"simonw/puppeteer-screenshot","owner":"simonw","description":"Vercel app for taking screenshots of web pages using Puppeteer","archived":false,"fork":false,"pushed_at":"2022-05-24T03:44:22.000Z","size":6,"stargazers_count":46,"open_issues_count":1,"forks_count":22,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-18T07:54:09.637Z","etag":null,"topics":["puppeteer","screenshots","vercel"],"latest_commit_sha":null,"homepage":"https://puppeteer-screenshot-eight.vercel.app","language":"JavaScript","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/simonw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-01T18:02:36.000Z","updated_at":"2024-07-13T09:47:16.000Z","dependencies_parsed_at":"2022-08-26T03:00:52.602Z","dependency_job_id":null,"html_url":"https://github.com/simonw/puppeteer-screenshot","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/simonw%2Fpuppeteer-screenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fpuppeteer-screenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fpuppeteer-screenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonw%2Fpuppeteer-screenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonw","download_url":"https://codeload.github.com/simonw/puppeteer-screenshot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249753094,"owners_count":21320664,"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":["puppeteer","screenshots","vercel"],"created_at":"2024-10-01T18:31:53.106Z","updated_at":"2025-04-19T17:52:38.955Z","avatar_url":"https://github.com/simonw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# puppeteer-screenshot\n\nVercel app for taking screenshots of web pages using Puppeteer\n\nOriginal code by [@styfle](https://github.com/styfle) in [this pull request](https://github.com/vercel/now-examples/pull/207).\n\nI upgraded the code to work with the latest Vercel and added a `?key=` mechanism to protect it from unauthorized access.\n\n## Usage\n\nSet a Vercel secret called `SECRET_KEY` with a random string in it (I generated mine by running `uuidgen | md5`), then deploy.\n\nYou can access screenshots for pages using:\n\n    https:/.../zeit.co/blog?type=png\u0026key=...\n\nScreenshots can take several seconds to generate so it's a good idea to cache them somewhere.\n\n## Querystring arguments\n\n- `?viewportWidth=` sets the browser viewport width in pixels. This defaults to 800.\n- `?viewportHeight=` sets the browser viewport height in pixels. This defaults to 600.\n- `?type=` set the output type to `png` or `jpeg`. Default is `png`.\n- `?quality=75` set the JPEG output qualit. Ignored for PNG.\n- `?fullPage=true` fetch a screenshot of the full page, not just the browser viewport.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fpuppeteer-screenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonw%2Fpuppeteer-screenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonw%2Fpuppeteer-screenshot/lists"}