A look at sindresorhus/pageres: 9.7k stars on GitHub, written primarily in TypeScript. Capture website screenshots
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Capture screenshots of websites in various resolutions. A good way to make sure your websites are responsive. It's speedy and generates 100 screenshots from 10 different websites in just over a minute. It can also be used to render SVG images.
See pageres-cli for the command-line tool.
Install
npm install pageres
Note to Linux users: If you get a "No usable sandbox!" error, you need to enable system sandboxing.
Define a customized filename using Lo-Dash templates.
For example: <%= date %> - <%= url %>-<%= size %><%= crop %>.
Available variables:
url: The URL in slugified form, eg. http://yeoman.io/blog/ becomes yeoman.io!blog
size: Specified size, eg. 1024x1000
width: Width of the specified size, eg. 1024
height: Height of the specified size, eg. 1000
crop: Outputs -cropped when the crop option is true
date: The current date (YYYY-MM-DD), eg. 2015-05-18
time: The current time (HH-mm-ss), eg. 21-15-11
incrementalName
Type: boolean
Default: false
When a file exists, append an incremental number.
selector
Type: string
Capture a specific DOM element matching a CSS selector.
hide
Type: string[]
Hide an array of DOM elements matching CSS selectors.
clickElement
Type: string
Click the DOM element matching the given CSS selector.
username
Type: string
Username for authenticating with HTTP auth.
password
Type: string
Password for authenticating with HTTP auth.
scale
Type: number
Default: 1
Scale webpage n times.
format
Type: string
Default: png
Values: 'png' | 'jpg'
Image format.
userAgent
Type: string
Custom user agent.
headers
Type: object
Custom HTTP request headers.
transparent
Type: boolean
Default: false
Set background color to transparent instead of white if no background is set.
darkMode
Type: boolean
Default: false
Emulate preference of dark color scheme.
launchOptions
Type: object
Default: {}
Options passed to puppeteer.launch().
beforeScreenshot
Type: Function
The specified function is called right before the screenshot is captured, as well as before any bounding rectangle is calculated as part of options.element. It receives the Puppeteer Page instance as the first argument and the browser instance as the second argument. This gives you a lot of power to do custom stuff. The function can be async.
Note: Make sure to not call page.close() or browser.close().
No homepage URL was recorded for sindresorhus/pageres in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Does sindresorhus/pageres have any tags?
TopGit's last sync did not record any GitHub topics for sindresorhus/pageres. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on sindresorhus/pageres?
The most recent commit recorded on sindresorhus/pageres was 1.1 years ago, based on the GitHub push timestamp. The repository has 720 forks — one of the better signals of community interest.
How many stars does sindresorhus/pageres have?
sindresorhus/pageres has 9.7k GitHub stars — refresh the page for the live number, or check github.com/sindresorhus/pageres. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is sindresorhus/pageres open source?
Yes — sindresorhus/pageres ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/sindresorhus/pageres.
Where do I read more about sindresorhus/pageres?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/sindresorhus/pageres is the definitive source.
Read full README in the tab above.
Curious whether pageres is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about pageres.