# sindresorhus/capture-website

Capture screenshots of websites

Repository: https://github.com/sindresorhus/capture-website
Canonical: https://ross.abutalabs.com/products/capture-website
Language: JavaScript
License: MIT
License Family: permissive
Topics: capture-screenshots, screenshots, website-screenshot-capturer, website-screenshot, puppeteer, nodejs, npm-package
Last push: 2025-10-31T13:00:53+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 49, release rhythm 54, longevity 100
- inputs: {"age_days": 2764, "days_push": 306, "days_rel": 306, "gap_med": 30, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2013, forks 141 (observed 2026-08-28T04:06:05.229313+00:00)

## What it is
A Node.js library for capturing screenshots of websites using Puppeteer (headless Chrome) under the hood. It supports saving screenshots to files, buffers, or base64 strings, with options for viewport size, device emulation, full-page capture, and PDF output.

## Use cases
- take a screenshot of a webpage from nodejs
- capture full-page screenshots of websites programmatically
- generate png or jpeg snapshots of a url
- render html to an image
- emulate a mobile device when screenshotting a site
- convert a webpage to pdf
- automate website screenshot generation in a build or test pipeline

## When to choose
- you need a simple, well-maintained Node.js API for website screenshots
- you want convenient options like device emulation, retina scale factor, and full-page capture
- you prefer a library over a CLI (see capture-website-cli for command-line use)

## When to avoid
- you need a CLI tool rather than a programmatic library
- you cannot run headless Chrome in your environment
- you need high-volume screenshot services with queuing and caching

## Facets
- artifact type: library
- maturity: active
- function: image-processing, developer-tools
- domain: web-development, developer-tools
- platform: cross-platform
- tags: screenshots, puppeteer, website-capture, headless-chrome, npm-package, automation, nodejs

## Member repositories
- sindresorhus/capture-website (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:05.229313+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:00:55.440303+00:00, confidence not recorded.
  - readme: https://github.com/sindresorhus/capture-website (fetched 2026-08-28T04:06:05.229313+00:00, sha 66c00497a70f)
  - registry_npm: https://registry.npmjs.org/capture-website (fetched 2026-08-29T10:41:09.099657+00:00, sha 2e3f10b5e74f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
