Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

pressly/screenshot

Repository files navigation

Screenshot as a service

A simple scalable server built on top of Headless Chrome. The API is built with Protocol Buffers and Twirp.

This is an experimental project in early phase.

Goals:

  1. Server should be scalable Docker image with HTTP server listening on port :80
  2. The Docker image is ideally built on top of some official and stable Headless Chrome image (FROM base/image:version)
  3. Clients should be automatically generated via Protobuf file + Twirp RPC framework
  4. Built-in & configurable request throttling
  5. Generate functional client in Go, JS (Typescript) and maybe other languages

Base image candidates:

Usage

  1. So far, this project works with Chrome Canary /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --headless --remote-debugging-port=9222 --no-gpu
  2. However, it doesn't work with docker run --name=chrome -p 9222:9222 --cap-add=SYS_ADMIN justinribeiro/chrome-headless --headless --remote-debugging-port=9222 --disable-gpu, which is strange.. trying to figure that out

Development

  1. Install tools to work with Protocol Buffers and Twirp.

License

Screenshot is licensed under the MIT license.

About

Screenshot: Take screenshots with ease from any language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published