If you want the "agentic future" version of this (sorry), tldraw just relased "tldraw offline"[1] which in some ways has a lot of overlap with HyperCard as well.

[1] https://offline.tldraw.com/

Is there a scripting language for this? That was what really differentiated HyperCard and made it a replacement for the never-released MacBasic:

https://www.folklore.org/MacBasic.html