With this opinionated library you can build normalized auto-format commands for custom languages, that can be integrated with editors as well as dune fmt.
The code documentation of the latest release is built with odoc and published to GitHub pages here.
The example/ contains the implementation of a toy key=value config language, which includes a parser, a pretty-printer and auto-fmt utils built with the library.
You can see examples of cli usage in example/test/run.t, and an example of dune fmt integration in example/test/dune.
This library is extensively used and tested in the bopkit project.