it is straightforward to build this for real, here is my nearly one-shotted tldraw clone from a couple of weeks ago,
https://x.com/c_pick/status/2028669568403578931 - the implementation side never saw the code, only the spec (in reality it did see the tldraw code in its training data, but you can't escape that anymore)