Skip to content

ScreenshotCrew is an open-source screenshot as a service using Puppeteer headless browser.

License

Notifications You must be signed in to change notification settings

jadiagaurang/ScreenshotCrew

Repository files navigation

ScreenshotCrew

Node.js CI Docker Image CI Docker pulls

Run in Postman

ScreenshotCrew is an open-source screenshot as a service using Puppeteer headless browser. Using Node.js, Puppeteer and other plugins, ScreenshotCrew provides utility tool to create screenshot from any web page.

Motivation

Demo

https://screenshotcrew.com/

API Reference

Image

curl --location --request GET "https://screenshotcrew.com/api/capture/image?width=1920&url=https://gaurangjadia.com"
curl --location --request POST "https://screenshotcrew.com/api/capture/image" --header "Content-Type: application/json" --data-raw "{
    \"width\": 1920,
    \"url\": \"https://gaurangjadia.com\"
}"

PDF

curl --location --request GET "https://screenshotcrew.com/api/capture/pdf?pageSize=A4&url=https://gaurangjadia.com"
curl --location --request POST "https://screenshotcrew.com/api/capture/pdf" --header "Content-Type: application/json" --data-raw "{
    \"pageSize\": \"A4\",
    \"url\": \"https://gaurangjadia.com\"
}"

Installation

npm install
npm update

Code Example

Prod

npm start

Local/Develop

npm run-script dev

Docker Container

docker pull jadiagaurang/screenshotcrew
docker run -d -p 80:80 jadiagaurang/screenshotcrew

Tests

npm test

License

Please see the license file for more information.