If it's threads, then it's a bit difficult as NIP-10 is shambles, with spec changing in between. (As the first spec was positional marker & not well-defined wrt some things).
I am not a dev but I've been bugged Vitor about NIP-10 enough that I understand