have you had a look at
https://github.com/oklog/oklog
https://www.youtube.com/watch?v=gWWK2eyZ-sc
I think it's fairly simple and might be enough. Can't comment on storage requirements thou.
I think it's fairly simple and might be enough. Can't comment on storage requirements thou.