It works nicely for these things because it already supports typed parameters and can be treated as a a raw AST without JS engine.
Its also easy to manipulate with the same library.
I guess you mean https://github.com/oxc-project ?
Are there benefits compared to using, say, protobuf?