Shotfly

Comparison

Shotfly vs self-hosted Puppeteer

Self-hosted Puppeteer gives you full control and no per-screenshot fee, but you run and update the browsers, protect your network from the URLs you capture, and handle cookie banners, bot challenges and blank pages yourself. Shotfly does that behind one HTTP request and doesn't charge for failed captures. Self-host for internal pages or an existing browser fleet; use an API for user-supplied URLs.

What does a self-hosted Puppeteer screenshot service need?

PartWith Puppeteer, youWith Shotfly
BrowserInstall it: puppeteer downloads Chrome for Testing and a headless shell on install, and some package managers block that step, so add npx puppeteer browsers install to the buildNothing to install
ContainersRun the official image ghcr.io/puppeteer/puppeteer with an init process (--init) and --cap-add=SYS_ADMIN, which Chrome's sandbox needsNothing to run
Untrusted URLsBlock private and internal addresses, at connect time and on every redirect, or a user-supplied URL can reach your networkRefused with url_not_allowed, including redirects during the render
Cookie bannersHide or reject them: hiding cookie bannersblock_cookie_banners, on by default
Bot challengesDetect them before saving: detecting bot challengestarget_blocked, not charged
Blank pagesWait for content and check the pixels: fixing blank screenshotsblank_page, not charged
Lazy contentScroll before a full-page capture: full-page captures of lazy pagesfull_page=true scrolls first
Storage and cachingStore, cache and serve the images; sign links you embedcache_ttl, one-hour links, signed URLs
ScalingSize servers for concurrent browsers, restart crashed ones, queue the overflowConcurrency per plan (2 to 25) and async jobs

Two notes from Puppeteer's own documentation matter for a service. Running Chrome with --no-sandbox is "strongly discouraged" unless you absolutely trust the pages you open, which is never the case for user-supplied URLs. And the official Docker example installs extra font packages so that Chinese, Japanese, Arabic, Hebrew and Thai text renders.

What does the smallest version look like?

import puppeteer from 'puppeteer'

// One URL in, one PNG out. Everything in the table above is still left to build.
const url = process.argv[2]
const browser = await puppeteer.launch()
try {
  const page = await browser.newPage()
  await page.setViewport({ width: 1280, height: 800 })
  await page.goto(url, { waitUntil: 'load', timeout: 30_000 })
  await page.screenshot({ path: 'screenshot.png', fullPage: true })
} finally {
  await browser.close()
}

The Puppeteer version captures one page. It doesn't yet check where the URL points, survive a hung page, remove banners, or notice that it saved a challenge page.

What does self-hosting Puppeteer cost?

Puppeteer is free; running it as a service is not. Shotfly has found no authoritative public figure for that cost, because it depends on your volume, your cloud and your team, so this page doesn't invent one. Price these yourself:

On the Shotfly side, the price is the plan. Failed renders, bot challenges, blank pages and cache hits are not charged.

Shotfly planPriceScreenshots a monthPer 1,000
Free$0100Free
Starter$9 / month2,000$4.50
Growth$29 / month10,000$2.90
Pro$99 / month50,000$1.98

When is self-hosting Puppeteer the better choice?

When is an API the better choice?

How do Puppeteer options map to Shotfly parameters?

PuppeteerShotfly
page.setViewport({ width, height, deviceScaleFactor })viewport_width, viewport_height, device_scale_factor
page.screenshot({ fullPage: true })full_page=true
page.screenshot({ type, quality })format, quality
page.screenshot({ clip })clip_x, clip_y, clip_width, clip_height
elementHandle.screenshot()selector
page.pdf()format=pdf
page.goto(url, { waitUntil: "networkidle0" })wait_until=networkidle
page.waitForSelector(selector)wait_for_selector
page.emulateMediaFeatures([{ name: "prefers-color-scheme", value: "dark" }])dark_mode=true
page.setUserAgent(), page.setExtraHTTPHeaders(), page.setCookie()user_agent, headers, cookies
page.addStyleTag(), page.evaluate()css, js

Sources: pptr.dev installation, pptr.dev Docker, pptr.dev troubleshooting, read 2026-12-01. Puppeteer is an open-source project; Shotfly is not affiliated with it.

Last updated 2026-12-01. Markdown version: /compare/puppeteer.md

Skip the browser fleet

100 free screenshots a month. Failed captures cost nothing.

Get a free API key