Skip to content

Latest commit

 

History

History
86 lines (59 loc) · 2.76 KB

README.md

File metadata and controls

86 lines (59 loc) · 2.76 KB

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.