This is a WASM build of the fast_rsync crate implementing the rsync algorithm
deno add @jsr:@dldc/librsync
import { signature, diff, apply } from "@dldc/librsync";
const checksum = signature(destFile); // you can specify block size as second argument
// send checksum to source...
const patch = diff(checksum, sourceFile);
// send patch to dest...
const syncedFile = apply(destFile, patch);