/snapshoot

Snapshot and upload a webpage

Primary LanguageJavaScript

Snapshoot

A simple browser extension to snapshot wepages and upload them to a server.

Snapshotting is done using freeze-dry. This takes the DOM, fetches and inlines all images and stylesheets, and creates a self-contained static HTML file.

Uploading is done with a simple HTTP POST containing form data (multipart/form-data), compatible with a Micropub media endpoint.

Status

Works, but experimental, unpublished. Feel free to fork and improve.

Possible things to add:

  • Let the user give their server URL.
  • Give the user a way to authenticate.
  • Support similar file upload protocols, e.g. LDP or IPFS API v0.

Build

npm install
npm run build

To try it out, add ./extension as an 'unpackaged' (in Chromium) or 'temporary' (Firefox) extension to your browser.