npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@remino/webshot

v1.1.0

Published

Capture a webpage as an image.

Readme

webshot

Capture a webpage as an image.

Rémino Rem https://remino.net/, 2026

Installation

npm

npm install -g @remino/webshot
webshot

Homebrew

brew install remino/remino/webshot
webshot

Download

Go to the GitHub download page for the latest release, and download the source code from there.

Git clone

git clone [email protected]:remino/remutils.git
cd remutils/webshot
npm install
./webshot

Usage

Run man webshot, webshot -h, or webshot -v to see how to use it.

Example:

webshot https://example.com
webshot https://example.com share.png
webshot -W 1200 -H 630 -w 0.5 https://example.com og.webp
webshot -z 1.25 -d 192 https://example.com [email protected]
webshot -c ./share.css -j ./prepare.js https://example.com card.jpg
webshot -f jpeg https://example.com share-image

With no arguments, webshot exits successfully and prints the usage screen. If the output file is omitted, webshot writes a file based on the URL. The default extension is .png, unless -f sets another format. If the URL has no protocol, http:// is assumed.

The output image format is inferred from the file extension. Supported formats are PNG, JPEG, AVIF, and WebP. The .jpg extension maps to JPEG.

-d 96 maps to a device scale factor of 1. For example, -d 192 captures at 2x pixel density while keeping the CSS viewport size unchanged.

Options

-h             Show the usage screen
-v             Show the version
-W <pixels>    Viewport width, default 1200
-H <pixels>    Viewport height, default 630
-w <seconds>   Seconds to wait after page load before capture, default 0
-z <factor>    Page zoom factor, default 1
-d <dpi>       Screenshot density in DPI, default 96
-f <format>    Override image format: png, jpeg, avif, webp
-c <css-file>  CSS file to embed before capture
-j <js-file>   JavaScript file to run before capture

Development

Run the package tests from the webshot directory:

npm test
npm run lint
npm run format:check

The CLI wrapper is webshot, which runs bin/webshot.js.

Dependencies

  • Node.js 20 or later
  • Puppeteer for browser automation
  • sharp for AVIF output