+1 to Hypothesis and similar tools kind of already doing what you're thinking of.  I would use the energy to contribute to it: https://github.com/hypothesis/client, and it's possible that you might find ways to optimize it for wikis via a gadget.

They've probably solved the "parent paragraph updating" problem you mentioned here.  So at the very least you can find inspiration there.  But I imagine the issue of storage and all that is tricky.  There was a W3C working group that the Hypothesis people were part of, I remember we half-heartedly wanted to join but never did.

On Tue, Dec 12, 2023 at 7:41 PM Gergő Tisza <gtisza@gmail.com> wrote:
If you just want to annotate a web page without assistance from that page, and let you share then annotations, that's not a Wikimedia-specific problem and there are generic tools for it. The popular one is Hypothesis, I think.  There even was an attempt to build something Wikimedia-specific on top of it (see the task Kosta linked), but it can be used directly as well.
_______________________________________________
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org
To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/