1.1.0 • Published 5 years ago

arsnap v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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

OptionDescriptionDefault
--widthViewport width1040
--heightViewport height768
--ecoEconomy 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