Is there an API to read structure of Plasmic component/page, including instances and their props?

We preload data from APIs before SSR render for speed, which means we parse JSX and other assets ahead of time for things that can be prefetched. Is there an API where we can read the structure of a plasmic component / page, i.e. list of instances and their parameters? I am looking at parsing the json-bundles to fetch the necessary info, but I am worried this will break as your implementation evolves…

You can use this, but it will change as the schema evolves:

@yang you are amazing. Thank you. This is exactly what I was looking for.

As mentioned in the doc, I am letting you know that I plan to introduce a dependency on this :slightly_smiling_face: