I would contribute to any initiative someone starts on this. Very interested.
I’d be interested in even having a view-only dart library to start. Transforms could be greatly restricted since there are a lot of ways to transform a document, splitting and transforms across Nodes etc… Ex: Only allow Node attribute transforms and/or the modification of text in a single Node. The Node attribute transform would actually be the most straightforward since there is no positional changes. Positional based decorations also could come later.
This would be big, and I hope @marijn sees how much more valuable his work could become if there was some implementation that is more negotiable to integrate and also more performant on mobile devices (notable issues still abound on mobile keyboard interfaces when running current JS library) With flutter, I already am compiling android and linux desktop builds from the same code base. Really neat technology; hoping it picks up even more momentum.