Wednesday, October 28, 2026 4,526 lists 79,027 records on file
List your app or device

  1. Home
  2. Code formatters
  3. OCamlFormat

OCamlFormat

Plans and prices

OCamlFormat

Free

OCaml code formatter · installable with opam · MIT License

Every plan, in full

On the record

Audience
The project is part of the OCaml Platform, described as the recommended set of tools for OCaml.github.com · read 8 Oct 2026
Comments
It can format comments, docstrings, and code blocks in comments.github.com · read 8 Oct 2026
Current package version
The OCaml package listing identifies version 0.29.0 as latest and shows it published on 18 Mar 2026.ocaml.org · read 8 Oct 2026
Customization
Users can select a profile and configure options in a project’s `.ocamlformat` file.github.com · read 8 Oct 2026
Dependencies
The package listing specifies OCaml `>= 4.08` and Dune `>= 2.8` as dependencies.ocaml.org · read 8 Oct 2026
Formatting profiles
It includes predefined profiles named `default`, `ocamlformat`, and `janestreet`.github.com · read 8 Oct 2026
Installation
Installation is through opam, and the README says OCaml and opam are required.github.com · read 8 Oct 2026
Integration
The README shows use with the Dune build system via `dune fmt`.github.com · read 8 Oct 2026
License
OCamlFormat is distributed under the MIT License.github.com · read 8 Oct 2026
Platform
The installation instructions require OCaml and opam on the user's system and show command-line usage.github.com · read 8 Oct 2026
Purpose
OCamlFormat is a code formatter for OCaml.github.com · read 8 Oct 2026
RPC
It provides an RPC server that other tools can use to format OCaml code.github.com · read 8 Oct 2026
Support and community
The README links to contribution and hacking guides and an OCaml Discuss forum section for project discussions.github.com · read 8 Oct 2026

Alternatives to OCamlFormat

Every alternative, ranked