Generate social-ready desktop and mobile screenshots of a launch page
Capture a specific page section while hiding cookie banners
Batch-produce composite screenshots for a weekly site review newsletter
Take delayed screenshots to wait out animations before capture
Needs an extra npx playwright install chromium on first run if Chromium is not already present.
site-post-screenshots is a small command-line tool that turns any live website into a set of polished screenshots ready to drop into a social media post. The author calls it out as targeted specifically at people who write about websites and want consistent, share-ready images without manually opening a browser, resizing the window, and cropping by hand. The headline usage is a single npx command: point it at a URL and an output folder, and the tool produces several PNG files. The default set includes a raw desktop capture, a raw mobile capture, two 1600 by 900 images sized for X (one desktop, one mobile), a 1600 by 1200 desktop image, and a composite that puts the desktop and mobile views side by side. The tool can be installed globally with npm install -g, after which it is available as either site-post-screenshots or the shorter alias site-post-shots. Under the hood it uses Playwright to drive Chromium, so a separate npx playwright install chromium step may be needed the first time if the browser is not yet on the machine. Several command-line options let the author tune the capture. Custom desktop and mobile viewport sizes can be passed with --desktop and --mobile in WxH form. A --delay flag waits before taking the shot, useful for sites with animations or lazy-loaded content. A --selector flag captures only a specific page region, and --hide-selectors takes a comma-separated list of CSS selectors to remove before capture, which the README suggests for hiding cookie banners and chat widgets. The README closes with publishing notes for anyone who wants to fork the project to npm: run npm run check, dry-run a pack to verify what would be uploaded, then npm login and npm publish under the public access flag. A reminder is included that the name on npm may already be taken, in which case the package.json name field needs changing before publishing.
Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.