The diff algorithm of Patch.js Installation npm install patchjs-diff --save-dev API calcDiffData (src, dest) Algorithm(inspired by mt) http://wiki.c2.com/?DiffAlgorithm https://github.com/mtjs/mt https://neil.fraser.name/software/diff_match_patch/myers.pdf https://code.google.com/p/google-diff-match-patch/