npm i -g folderbeam
or use without installation
npx folderbeam <options>
on alice's machine :
folderbeam -i <foldername> -k 'random words'
on bob's machine :
folderbeam -o <foldername> -k 'same random words'
on source machine random words will be generated if not passed
Know more about hypercore-protocol