Replaying history for a data structure?

Bit of a weird question, but I’m curious if there’s a way to use a document as a history replay.

e.g. If I’m writing an essay, and I want to share my editing process. Would it be possible to replay the individual steps that led up to the current state, or is there not enough information?

Yjs doesn’t store timestamps for edit operations nor does it keep track of causality between updates (updateX happened before updateY). So Yjs itself is not capable of doing that. But you could store the history individually in editing order. I know at least one project that does that. Then you can apply each update one after another.