This is really impressive. There's no video on how the "Logic" editor works. Have you thought about linking something like QuickJS and allowing actual code?
If one could write generic code, and if the properties of the inked objects were exposed to the runtime (i.e. corner points, stroke/fill colors, rotation, etc.) your app would be really close in functionality to the linked project.