What is an example of a good, modern OCaml codebase that I can learn from?

This page summarizes the projects mentioned and recommended in the original post on /r/ocaml

Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers
Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.
www.nutrient.io
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. dune

    A composable build system for OCaml.

    Dune, OCaml's build system, is quite mature and uses many techniques to implement a concurrent job scheduler and RPC server

  2. Nutrient

    Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers. Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.

    Nutrient logo
  3. xic

    A compiler for the Xi programming language

    Here's a compiler for a C-like language written in OCaml (note: I am not one of the authors though I did take the class). Despite it being a college project I think it shows very clean design and particularly good use of preprocessors. All of the details for the language and stuff is linked at the bottom. It's a relatively small codebase of course but I think this is good educationally.

  4. ocaml

    The core OCaml system: compilers, runtime system, base libraries

  5. tezos

    https://gitlab.com/tezos/tezos they have a good on onboarding doc too

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • My first experience with OCaml

    7 projects | dev.to | 19 Sep 2024
  • OCaml 5.0.0, zeroth alpha release

    4 projects | /r/ocaml | 15 Jun 2022
  • ABEND dump #15

    2 projects | dev.to | 24 Jan 2025
  • OCaml 5.3 Released

    1 project | news.ycombinator.com | 8 Jan 2025
  • Non-temporal store heuristics on the Apple M2

    1 project | news.ycombinator.com | 23 Dec 2024

Did you know that OCaml is
the 41st most popular programming language
based on number of references?