These are actually two projects, the former using the latter.
https://github.com/LDemetrios/Typst4k
Typst4k is a library which allows manipulating typst values and accessing the compiler from within Kotlin code. (There are yet few issues with queries that obtain something except numbers, strings, arrays, nones, dicts and contents)
https://github.com/LDemetrios/TypstEscape
TypstEscape is an app that allows invoking shell commands from within typst doc. Some security measures have been taken, but be accurate! However I found it very useful for documenting libraies and stuff for other languages. May be some time I'll have time to make documentations for these two projects using itself 🙂 For now, here is an example: https://github.com/LDemetrios/Programnomicon/blob/main/reinterpret_cast and java/reinterpret-cast-and-java.pdf
They are in draft state, so something may be not working properly, but they work!