Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amio/pageshot

Pageshot as a service.
https://github.com/amio/pageshot

micro-service pageshot screenshot webpage

Last synced: 3 days ago
JSON representation

Pageshot as a service.

Awesome Lists containing this project

README

        

# pageshot [![][now-deploy-src]](#deploy)

Pageshot as a service.

## Usage

- __Web UI__: https://shot.now.sh
- __Endpoint__: https://shot.now.sh/shot

Examples:

- https://shot.now.sh/shot?url=https://google.com
- https://shot.now.sh/shot?url=https://github.com&full=true

Query Params:

- __`url`__: The webpage location. (required)
- __`width`__: Viewport width. (default: 1280)
- __`height`__: Viewport height. (default: 800)
- __`full`__: Full page screenshot. (default: false)
- __`dpr`__: Device pixel ratio. (default: 2)

## Deploy

- to [now.sh](https://zeit.co/now):
```
now amio/pageshot
```

- using [Dockerfile](Dockerfile):
```
docker pull amio/pageshot
```

- running locally (require Google Chrome installed):
```
npm start
```

## License

ISC © [Amio](https://github.com/amio)

[now-deploy-src]: https://badgen.net/badge/%E2%96%B2/$%20now%20amio%2Fpageshot/333