View on GitHub


Documenting everything about OCaml



This page describes the current state of the OCaml ecosystem.

Help Needed

For a list of things currently missing in OCaml’s ecosystem, see Help Needed

Standard Libraries

For an overview of the different standard library options and recommendations, see Standard Libraries.

Data Structures and Algorithms

See Data Structures and Algorithms


See Audio

Build System/Package Management

See Build System and Package Management

Cloud Computing

  • aws-s3: Access to Amazon’s Simple Storage Solution (S3)
  • Google Drive OCamlFuse: A User file system for Google Drive. Also one of the few ways to sync Google Drive from Linux.
  • aws-lambda: OCaml runtime for AWS Lambda.

Code Tools

See Code Tools

Command Line Arguments

See Command Line Arguments


For compilation tools made in OCaml, see Compilers

Concurrency, Parallelism, Distributed Computing

See Concurrency, Parallelism and Distributed Computing


See Security and Cryptography


See Databases


  • OCaml comes with a built-in debugger for the bytecode compiler. You invoke it with the ocamldebug command. See the manual for more details.
  • The easiest way to debug OCaml code, other than inserting print statements, is choosing bytecode as your compilation target, and using teh OCaml debugger.
  • Additionally, one can use gdb to debug native code.
  • ocamlearlybird: Debug Adapter Protocol implementation for OCaml. Allows integrating the OCaml debugger with an IDE.
  • ocaml-dap: Generic Debug Adapter Protocol implementation in OCaml.

Formal Software Verification

See Formal Software Verification

File Formats

For manipulating different file formats from OCaml, see File Formats

File Manipulation

See File Manipulation.

Foreign Function Interface

For integrating with C, C++, Python etc., see Foreign Function Interface.

Functional Reactive Programming

See Functional Reactive Programming.

Game Development

See Games


For graphic libraries, see Graphics.

Hardware Design

For usage of OCaml in hardware design, see Hardware Design


See Iterators


Accessors: a Lens library (easy access/functional updates to records).


See Logging.

Machine Learning, Data Science, Scientific Computing

See Scientific Computing

Metaprogramming and PPX

See Metaprogramming for metaprogramming facilities such as PPX, camlp4 and MetaOCaml.


See Mobile for compilation of OCaml to mobile platforms.


See Monads.

Pretty printing

See Pretty Printing.

Process Management

See Process Management.


For support of protocols, see Protocols


See Profiling.

Regular Expressions

See Regular Rxpressions




For search-related libraries, see Searching


See Security and Cryptography

Static Analysis

For static analysis using OCaml, see Static Analysis

String Manipulation

See String Manipulation

Systems Programming

For low-level systems programming, see Systems Programming

Testing Frameworks

For testing frameworks in OCaml, see Testing

Time and Date

  • For short-term timing requirements, Sys.time can do the job.
  • mtime: wall-clock monotonic time, and the best choice for longer-running timing requirements.
  • ptime: POSIX time.
  • ISO8601
  • calendar
  • odate

Unicode Support

See Unicode

User Interface

For GUIs and TUIs (Terminal User Interfaces), see User Interface

Web and Networking

For libraries related to web development and networking, see Web and Networking