Format is part of OCaml stdlib. You can write formatters for it manually.
Derivers are a library yes, it's pretty widespread if you need derive functionality, and it can derive basic functions. Proper link:
https://github.com/ocaml-ppx/ppx_deriving?tab=readme-ov-file...