{"id":16612992,"url":"https://github.com/whitequark/ocaml-inotify","last_synced_at":"2026-02-21T20:01:12.942Z","repository":{"id":15826360,"uuid":"18566189","full_name":"whitequark/ocaml-inotify","owner":"whitequark","description":"OCaml bindings for inotify.","archived":false,"fork":false,"pushed_at":"2024-07-26T14:51:46.000Z","size":791,"stargazers_count":42,"open_issues_count":0,"forks_count":15,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-02T02:11:41.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whitequark.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-04-08T16:36:08.000Z","updated_at":"2025-10-25T03:49:47.000Z","dependencies_parsed_at":"2025-07-16T13:02:27.103Z","dependency_job_id":"57399313-5a68-4b42-aede-84e8de06ce06","html_url":"https://github.com/whitequark/ocaml-inotify","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/whitequark/ocaml-inotify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitequark%2Focaml-inotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitequark%2Focaml-inotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitequark%2Focaml-inotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitequark%2Focaml-inotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whitequark","download_url":"https://codeload.github.com/whitequark/ocaml-inotify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whitequark%2Focaml-inotify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29691937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T18:18:25.093Z","status":"ssl_error","status_checked_at":"2026-02-21T18:18:22.435Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T01:45:40.633Z","updated_at":"2026-02-21T20:01:12.926Z","avatar_url":"https://github.com/whitequark.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"OCaml Inotify bindings [![build](https://github.com/whitequark/ocaml-inotify/actions/workflows/main.yml/badge.svg)](https://github.com/whitequark/ocaml-inotify/actions/workflows/main.yml)\n======================\n\nThis package contains bindings for Linux's filesystem monitoring\ninterface, [inotify][man].\n\n  [man]: http://man7.org/linux/man-pages/man7/inotify.7.html\n\nInstallation\n------------\n\nThe bindings are available via [OPAM](https://opam.ocaml.org):\n\n    $ opam install inotify\n\nAlternatively, you can do it manually:\n\n    # If you want to use lwt_inotify\n    $ opam install lwt\n    # If you want to use eio_inotify\n    $ opam install eio\n    $ opam install .\n\nUsage\n-----\n\nUnix-style interface (findlib package `inotify`):\n\n``` ocaml\nlet inotify = Inotify.create () in\nlet watch   = Inotify.add_watch inotify \"dir\" [Inotify.S_Create] in\nprint_endline (Inotify.string_of_event (List.hd (Inotify.read inotify)))\n(* watch=1 cookie=0 events=CREATE \"file\" *)\n```\n\nLwt-style interface (findlib package `inotify.lwt`):\n\n``` ocaml\nLwt_main.run (\n  let%lwt inotify = Lwt_inotify.create () in\n  let%lwt watch   = Lwt_inotify.add_watch inotify \"dir\" [Inotify.S_Create] in\n  let%lwt event   = Lwt_inotify.read inotify in\n  Lwt_io.printl (Inotify.string_of_event event))\n  (* watch=1 cookie=0 events=CREATE \"file\" *)\n```\n\nEio-style interface (findlib package `inotify-eio`):\n\n``` ocaml\nEio_main.run @@ fun _env -\u003e\n  let inotify = Eio_inotify.create () in\n  let _watch   = Eio_inotify.add_watch inotify \"dir\" [Inotify.S_Create] in\n  let event   = Eio_inotify.read inotify in\n  print_endline (Inotify.string_of_event event)\n  (* watch=1 cookie=0 events=CREATE \"file\" *)\n```\n\nNote that Lwt-style \u0026 Eio-style interfaces returns events one-by-one, but the Unix-style one returns\nthem in small batches.\n\nDocumentation\n-------------\n\nThe API documentation is available at [GitHub pages](http://whitequark.github.io/ocaml-inotify/).\n\nLicense\n-------\n\n[LGPL 2.1 with linking exception](LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhitequark%2Focaml-inotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhitequark%2Focaml-inotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhitequark%2Focaml-inotify/lists"}