README
ArSnap
Decentralized Webpage Screenshots
Capture webpage screenshots using Puppeteer, upload them to the Arweave blockchain. Simple, quickly, permanent. Automagically, with one CLI command. Snap!
Periodically take screenshots of your projects, e.g. every day, after deployments or content updates. Useful for automated visual regression and comparison testing. Or just to archive the web page screenshots, so that you can remember in a few years.
Install
npm install --global arsnap
or
yarn global add arsnap
Usage
arsnap <url> --keyfile <file> [options]
or
npx arsnap <url> --keyfile <file> [options]
Options
Option | Description | Default |
---|---|---|
--width |
Viewport width | 1040 |
--height |
Viewport height | 768 |
--eco |
Economy mode* | false |
*Economy mode
The screenshot will be uploaded to the blockchain only if the image differs from the screenshot of the last transaction. This saves space and costs.
Attention
- Be careful, there is no confirm before upload
- Be careful, Arweave is a public blockchain
Requirements
- Arweave wallet with balance
- Arweave key file for authentication
- Node >=8.10.0
Example
arsnap https://www.arweave.org --keyfile arweave-keyfile-ABC.json
Todo
- Target wallet
- WebP, PNG support
Icon
Made by Pixel perfect from www.flaticon.com