Skip to content
SPECIFICTION
Get listed

OCamlFormat

github.com

Free plan Linux
Visit github.com
Spec score 7.4 #26 of 34 in Code Formatting Tools

Spec sheet

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

Plans and prices

OCamlFormat Free OCaml code formatter · installable with opam · MIT License Read 8 Oct 2026 · github.com

Every OCamlFormat plan and price →

Where Specifiction places it

Alternatives to OCamlFormatAll alternatives →