A choo, hyperlog, webtorrent experiment written in modular standard JS that syncs images peer-to-peer between web browsers and even MacOS/Linux.
Simply open https://pguth.github.io/blob-stream in two web browser windows and select an image in one of them to see it work (use Chrome/Firefox).
npm install
npm start
Then go to localhost:9966. Open two instances of the page. In one of them use the file picker to add an image. Wait a few seconds for both instances to synchronize.
npm install
cd legacy
npm install
cd ..
npm run legacy
The script will then create a ./blob-stream
folder. Images added to that folder will be synced with other instances of blob-stream. Browser mode can be run simultaneously. Images that are added via browser instances will be synced into this folder and a system notification will be displayed (MacOS recent).
Local state can be reset via: rm -rf legacy/ephemeral/known_files.db legacy/ephemeral/hyperlog_state/