{"id":28436542,"url":"https://github.com/nymphium/grpc-ocaml","last_synced_at":"2025-06-27T19:31:38.356Z","repository":{"id":37970640,"uuid":"496870653","full_name":"Nymphium/grpc-ocaml","owner":"Nymphium","description":"gRPC-Core wrapper for OCaml","archived":true,"fork":false,"pushed_at":"2022-10-25T09:42:28.000Z","size":23064,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T22:09:26.893Z","etag":null,"topics":["grpc","ocaml"],"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/Nymphium.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}},"created_at":"2022-05-27T05:20:43.000Z","updated_at":"2024-06-28T06:41:07.000Z","dependencies_parsed_at":"2023-01-19T14:17:18.561Z","dependency_job_id":null,"html_url":"https://github.com/Nymphium/grpc-ocaml","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"Nymphium/ocaml-nix-template","purl":"pkg:github/Nymphium/grpc-ocaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nymphium%2Fgrpc-ocaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nymphium%2Fgrpc-ocaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nymphium%2Fgrpc-ocaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nymphium%2Fgrpc-ocaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nymphium","download_url":"https://codeload.github.com/Nymphium/grpc-ocaml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nymphium%2Fgrpc-ocaml/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262319004,"owners_count":23292992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["grpc","ocaml"],"created_at":"2025-06-05T22:09:26.546Z","updated_at":"2025-06-27T19:31:38.340Z","avatar_url":"https://github.com/Nymphium.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"grpc-ocaml\n===\n\n[gRPC-Core](https://github.com/grpc/grpc) bindings for OCaml\n\n- [x] Connection with insecure credentials\n- [ ] Connection with credentials\n- [x] Unary RPC\n- [ ] Server streaming RPC\n- [ ] Client streaming RPC\n- [ ] Bidirectional streaming RPC\n- [x] Interceptors in server\n- [ ] Interceptors in client\n\n# requirements\n- libgrpc (\u003e= 1.45)\n\n# Package details\n- `grpc.stub` ... just a C FFI using ctypes\n- `grpc.core` ... wrappers for `grpc.stub` with lwt\n- `grpc.basic` ... utilities (logger and header) for client and servers\n- `grpc.client` ... client library using `gpc.core` with ocaml-protoc-plugin\n- `grpc.server` ... server library using `grpc.core` with ocaml-protoc-plugin\n\n# Demo\n```shell\n$ direnv allow\n$ dune exec example/server/main.exe \u0026\nmain.exe: [DEBUG] run gRPC echo server on localhost:50051 ...\n$ dune exec example/client/main.exe\nmain.exe: [grpc.server] get request on /grpc_test.Echo/Greet\nmain.exe: [DEBUG] x-foo: \u003cempty\u003e\nmain.exe: [DEBUG] request-id: request-id-is-9344\nmain.exe: [grpc.server] send response in 0.000029 sec\n1\nmain.exe: [grpc.server] get request on /grpc_test.Echo/Greet\nmain.exe: [DEBUG] x-foo: \u003cempty\u003e\nmain.exe: [DEBUG] request-id: request-id-is-26685\nmain.exe: [grpc.server] send response in 0.000015 sec\n2\nmain.exe: [grpc.server] get request on /grpc_test.Echo/Greet\nmain.exe: [DEBUG] x-foo: \u003cempty\u003e\nmain.exe: [DEBUG] request-id: request-id-is-30182\nmain.exe: [grpc.server] send response in 0.000015 sec\n3\nmain.exe: [grpc.server] get request on /grpc_test.Echo/Greet\nmain.exe: [DEBUG] x-foo: \u003cempty\u003e\nmain.exe: [DEBUG] request-id: request-id-is-31641\nmain.exe: [grpc.server] send response in 0.000015 sec\n4\nmain.exe: [grpc.server] get request on /grpc_test.Echo/Greet\nmain.exe: [DEBUG] x-foo: \u003cempty\u003e\nmain.exe: [DEBUG] request-id: request-id-is-30439\nmain.exe: [grpc.server] send response in 0.000027 sec\n5\nmain.exe: [DEBUG] response: hello\n```\n\n# TODO\n- remove all the `grep TODO`s\n- implement [interop test](https://github.com/grpc/grpc/blob/master/doc/interop-test-descriptions.md)\n- credentials\n- support other RPCs not implemented\n- documentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnymphium%2Fgrpc-ocaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnymphium%2Fgrpc-ocaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnymphium%2Fgrpc-ocaml/lists"}