Can anyone recommend a good JS/TS module for retaining changes to a JSON document as a collection of patches?

Looking at something like this as a solution for retaining local backups to Codex JSON documents ...

@bitcloud @chrisshank23 @wbic16