{"id":26035,"library":"ocaml","title":"OCaml","description":"OCaml compiler packaged for esy. This package provides the OCaml compiler and standard library for use with esy, a package manager for native development. Version 5.3.0 is the current stable release. It is not intended for direct npm consumption but as a dependency for esy-based projects. Key differentiator: it enables OCaml development within the npm/JavaScript ecosystem via esy.","status":"active","version":"5.3.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript"],"install":[{"cmd":"npm install ocaml","lang":"bash","label":"npm"},{"cmd":"yarn add ocaml","lang":"bash","label":"yarn"},{"cmd":"pnpm add ocaml","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is for esy; direct npm install is not the intended use.","wrong":"npm install ocaml","symbol":"default","correct":"// Not importable directly; use esy package manager"}],"quickstart":{"code":"{\n  \"name\": \"my-ocaml-project\",\n  \"version\": \"1.0.0\",\n  \"esy\": {\n    \"build\": \"dune build\"\n  },\n  \"dependencies\": {\n    \"@opam/dune\": \"*\",\n    \"ocaml\": \"~5.3.0\"\n  }\n}","lang":"javascript","description":"Minimal esy project configuration to use OCaml 5.3.0."},"warnings":[{"fix":"Use esy init and add ocaml to your esy dependencies.","message":"This package is designed for esy, not direct npm consumption. Use esy to manage OCaml dependencies.","severity":"gotcha","affected_versions":">=5.0"},{"fix":"Refer to ocaml.org/docs.","message":"No README data found; rely on OCaml's official documentation for usage.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"This package is not a JavaScript module; use esy to invoke the OCaml compiler.","cause":"Attempting to require or import the package directly in JavaScript.","error":"Error: Cannot find module 'ocaml'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}