Very cool!
This is exactly the kind of thing I've had in mind as one of the offshoots for PRQL for processing data beyond just generating SQL.
I'd love to chat some time.