https://github.com/hideack/node_shutter
puppeteerによるスクリーンショット取得するシンプルなAPIを提供
https://github.com/hideack/node_shutter
puppeteer
Last synced: 2 months ago
JSON representation
puppeteerによるスクリーンショット取得するシンプルなAPIを提供
- Host: GitHub
- URL: https://github.com/hideack/node_shutter
- Owner: hideack
- License: mit
- Created: 2019-07-13T00:15:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-12T04:40:34.000Z (almost 5 years ago)
- Last Synced: 2025-03-30T19:51:18.672Z (over 1 year ago)
- Topics: puppeteer
- Language: JavaScript
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shutter
## About
- [puppeteer](https://github.com/GoogleChrome/puppeteer)によるスクリーンショット取得するシンプルなAPIを提供します
- 現状作成されるスクリーンショットの解像度は1280x1280です。
- ファイルベースのスクリーンショット画像のキャッシュを行います
## Installation
### Local
```
$ npm start
```
### Production
(null)
## Usage
```
http://localhost:5000/?key=sample-key&url=https://github.com/hideack/shutter
```
## Environment variable
- PORT: 起動時の待機ポート (デフォルト: 5000)
- KEY : スクリーンショットリクエスト呼び出し制御用のキー (デフォルト: sample-key)
- EXPIRE: ファイルキャッシュ期限 (デフォルト:5分)
## heroku
[](https://heroku.com/deploy?template=https://github.com/hideack/shutter)