{"id":50748988,"url":"https://github.com/c-cube/micronats.ml","last_synced_at":"2026-06-10T23:32:07.246Z","repository":{"id":361959339,"uuid":"1251816205","full_name":"c-cube/micronats.ml","owner":"c-cube","description":"Small NATS client for OCaml + Eio","archived":false,"fork":false,"pushed_at":"2026-06-02T01:08:20.000Z","size":3042,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T02:22:58.554Z","etag":null,"topics":["eio","nats","ocaml","pubsub"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-cube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-28T00:05:07.000Z","updated_at":"2026-06-02T01:07:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/c-cube/micronats.ml","commit_stats":null,"previous_names":["c-cube/micronats.ml"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/c-cube/micronats.ml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Fmicronats.ml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Fmicronats.ml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Fmicronats.ml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Fmicronats.ml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-cube","download_url":"https://codeload.github.com/c-cube/micronats.ml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Fmicronats.ml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34175887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["eio","nats","ocaml","pubsub"],"created_at":"2026-06-10T23:32:04.075Z","updated_at":"2026-06-10T23:32:07.241Z","avatar_url":"https://github.com/c-cube.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# micronats: minimal NATS client for OCaml/Eio\n\n[![build](https://github.com/c-cube/micronats.ml/actions/workflows/main.yml/badge.svg)](https://github.com/c-cube/micronats.ml/actions/workflows/main.yml)\n\nA lightweight [NATS](https://nats.io) client library for OCaml \u003e= 5.1 built on [Eio](https://github.com/ocaml-multicore/eio).\n\n## Example\n\n```ocaml\nopen Eio.Std\n\nlet () =\n  Eio_main.run @@ fun env -\u003e\n  let net = Eio.Stdenv.net env in\n  Eio.Switch.run @@ fun sw -\u003e\n  let@ nats = Micronats.with_connect ~sw ~net () in\n  let _sub = Micronats.sub nats ~sw ~subject:[\"greetings\"]\n    (fun msg -\u003e traceln \"received: %s\" msg.payload)\n  in\n  Micronats.pub nats ~subject:[\"greetings\"] \"hello, world!\"\n```\n\n## Install\n\n(once released)\n```sh\nopam install micronats\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-cube%2Fmicronats.ml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-cube%2Fmicronats.ml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-cube%2Fmicronats.ml/lists"}