amresh.sinha

service 06 / 07

SShot

An API for capturing web screenshots, with parameters for every part of the capture.

event
Personal project
year
2022
status
shipped
stack
JavaScriptNode.jsExpressPuppeteerRedisDocker
upstream
sshot.fossian.com (opens in a new tab)
SShot logo: a small robot hanging from a pink parachute next to the words sshot, web screenshot API

What it is

One endpoint. Give it a URL and it returns a screenshot. Query parameters set the viewport, device scale, full page or above the fold, delay, and output format.

How it runs

Express in front of a pool of Puppeteer browsers. Redis caches recent captures so repeated requests do not spin up Chrome again. The whole thing ships as a Docker image and sat behind my Traefik router.