hi @max1996,
yeah as @mdw-octoml said, this is a bit challenging. i’m prototyping the Project API (embryonic RFC) now, which is designed to make work like this easier. maybe keep an eye out for that in the next few days/week. It would be particularly helpful for people to try implementing it with different toolkits to find limitations and bugs.
Andrew