Cool effort, but to say this is like Datastar is a stretch at best.
Datastar's model of doing it this way really simplifies the front end even more compared to HTMX's model of having the elements on the front end decide where to put the returned HTML.