{"repo":"robvanderleek/capture-website-api","free":true,"listed":false,"github":"https://github.com/robvanderleek/capture-website-api","clone":"git clone https://github.com/robvanderleek/capture-website-api.git","description":"Capture screenshots of websites as a (host it yourself) API 📸","language":"JavaScript","stars":118,"topics":["screenshot","website-screenshot-capturer","rest-api","heroku","docker"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Capture website API Capture screenshots of websites as a (host it yourself) API. This project is a wrapper around this library: https://github.com/sindresorhus/capture-website Installation Docker Run pre-built container from Docker Hub 1. Pull the image: 2. Start the container: 3. Make screenshot test request: Build the docker image and run it 1. Clone the repo: 2. Go to the standalone directory: 3. Build the image: 4. Start the container: 5. Do screenshot test request: NPM Run in a terminal: 1. Clone the repo: 2. Go to the standalone directory: 3. Install dependencies: 4. Start the server: 5. Do screenshot test request: Vercel Deploy and run on Vercel: 1. Clone the repo: 2. Deploy to Vercel: 3. Get site URL: 7. Make screenshot test request: Usage Call the /capture endpoint and pass the site URL using the query parameters url : Simple as that. Configuration Application options Application configuration options can be set as environment veriables or in a .env file in the root folder. There's an example .env file in the codebase: .env.example Supported options are: Name Descrition Default --- --- --- TIMEOUT Timeout in seconds for loading a web page 20 CONCURRENCY Number of captures that run in parallel, more memory allows more captures to run in parallel 2 MAX QUEUE LENGTH Requests that can't be handled directly are queued until the queue is full 6 SHOW RESULTS Enable web endpoint to show latest capture false SECRET Secret string to prevent undesired usage on public endpoints ","default_branch":null,"files":null,"tree":[],"storefront":"/r/robvanderleek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/robvanderleek/capture-website-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}