Wow. Looking at the schema for gif, it’s so readable, I can’t help to wonder why something like this hasn’t become the standard way to work with binary formats over the decades already!

Seems like eveything has to be JSON and text based these days, because binary is more difficult DX.

When reading articles discussing binary formats, I usually see them using box diagrams of packets, description tables or hexdumps.

This neatly describes nested structure, names and ”types” - just enough.

I wonder if there’s a hexdump like viewer in IDEs that can present binary files like this? I can also imagine a simple UI to make the files editable using this.