# ocaml/dune

A composable build system for OCaml.

Repository: https://github.com/ocaml/dune
Canonical: https://ross.abutalabs.com/products/dune
Homepage: https://dune.build/
Language: OCaml
License: MIT
License Family: permissive
Topics: build, ocaml, opam, dune, jbuilder
Last push: 2026-08-26T12:07:04+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 3594, "days_push": 7, "days_rel": 30, "gap_med": 21.0, "n_releases_24m": 23}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1911, forks 495 (observed 2026-08-28T04:05:53.109690+00:00)

## What it is
Dune is a composable build system for the OCaml language that reads project metadata from S-expression `dune` files and handles compilation, testing, installation, and editor tooling setup. It supports parallel incremental builds, multi-package monorepos, and interoperates with the OCaml ecosystem including OPAM, Merlin, Reason, and js_of_ocaml.

## Use cases
- build ocaml executables and libraries
- manage a monorepo of multiple ocaml packages
- run tests for an ocaml project
- speed up incremental ocaml builds
- set up ocaml development tooling like merlin
- build ocaml packages on windows
- install ocaml packages built with dune via opam

## When to choose
- you are building any OCaml project, from small libraries to large applications
- you need to develop multiple OCaml packages together or maintain a monorepo
- you want fast parallel incremental builds with no external system dependencies
- you want a build system that understands the OCaml toolchain out of the box
- you need first-class Windows support for OCaml builds

## When to avoid
- your project is not written in OCaml or closely related OCaml-ecosystem languages
- you require highly custom build steps that do not fit Dune's rule-based model
- your team has standardized on another build tool like make orOCaml's legacy ocamlbuild workflow

## Facets
- artifact type: cli-tool
- maturity: stable
- function: build-tool, cli
- domain: developer-tools, programming-languages
- platform: cross-platform, windows, cli
- tags: ocaml, build-system, monorepo, parallel-builds, opam-integration, s-expression-config, jane-street, merlin-integration, linux, macos

## Member repositories
- ocaml/dune (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:53.109690+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:11:02.266542+00:00, confidence not recorded.
  - readme: https://github.com/ocaml/dune (fetched 2026-08-28T04:05:53.109690+00:00, sha 2287244defac)
  - homepage: https://dune.build/ (fetched 2026-08-29T10:49:58.045422+00:00, sha e6c86f0b98f8)
  - site_page: https://dune.build/install (fetched 2026-08-29T10:49:58.054158+00:00, sha e829952e2196)
- Data as of 2026-08-30T08:39:29.467469+00:00.
