I remember there was a similar project on github allows visualize any type of binary data by a given schema. There was an TCP/IP example IIRC.
It looks perfectly nice for its role, but I didn’t use it for my last project because I need serialization as well.
https://github.com/HexFiend/HexFiend/blob/master/templates/T...
I haven't had a lot of luck thus far, except ones which allow escaping out of declarative mode over into "and then run this code"