One other thought: I wonder if there is also inspiration to come from Scratch / Blockly 3.
But then you’re very likely quite ahead of me in thinking this through! I look forward to seeing your results!