{"id":16613182,"url":"https://github.com/c-cube/irky","last_synced_at":"2026-05-24T03:01:04.902Z","repository":{"id":179326522,"uuid":"662870507","full_name":"c-cube/irky","owner":"c-cube","description":"[wip] IRC client for OCaml","archived":false,"fork":false,"pushed_at":"2026-05-20T01:40:09.000Z","size":3524,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-20T05:19:08.957Z","etag":null,"topics":["client","eio","irc","ocaml","openssl"],"latest_commit_sha":null,"homepage":"https://c-cube.github.io/irky/","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":"CHANGES.md","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":"2023-07-06T04:20:18.000Z","updated_at":"2026-05-20T01:38:20.000Z","dependencies_parsed_at":"2024-02-27T05:27:15.956Z","dependency_job_id":"7499ead8-c56e-4881-b760-4ffcff1b8905","html_url":"https://github.com/c-cube/irky","commit_stats":null,"previous_names":["c-cube/irky"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/c-cube/irky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Firky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Firky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Firky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Firky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-cube","download_url":"https://codeload.github.com/c-cube/irky/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-cube%2Firky/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33419556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"online","status_checked_at":"2026-05-24T02:00:06.296Z","response_time":57,"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":["client","eio","irc","ocaml","openssl"],"created_at":"2024-10-12T01:46:23.595Z","updated_at":"2026-05-24T03:01:04.774Z","avatar_url":"https://github.com/c-cube.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Irky\n\nA fork of [irc-client](https://github.com/johnelse/ocaml-irc-client) focused on\ndirect style IOs (unix and Eio).\n\n[![build](https://github.com/c-cube/irky/actions/workflows/main.yml/badge.svg)](https://github.com/c-cube/irky/actions/workflows/main.yml)\n\n## License\n\nMIT\n\n## Usage\n\nSimple bot which connects to a channel, sends a message, and then logs all\nmessages in that channel to stdout:\n\n```ocaml\nmodule C = Irky.Client\n\nlet host = ref \"irc.libera.chat\"\nlet port = ref 6667\nlet nick = ref \"irkytest\"\nlet channel = ref \"##demo_irc\"\n\nlet on_msg _client msg =\n  Printf.printf \"Got message: %s\\n%!\" (Irky.Message.to_string msg)\n\nlet() =\n  let io = Irky_unix.io in\n  C.reconnect_loop ~reconnect_delay:15. ~io\n    ~connect:(fun () -\u003e\n      C.connect_by_name ~server:!host ~port:!port ~nick:!nick ~io ())\n    ~on_connect:(fun client -\u003e\n      Printf.printf \"Connected, sending join for %S\\n%!\" !channel;\n      C.send_join client ~channel:!channel;\n      C.send_privmsg client ~target:!channel ~message:\"hello from irky!\")\n    on_msg\n```\n\nCompile the above with:\n\n```\nocamlfind ocamlopt -package irky -package irky.unix -linkpkg code.ml\n```\n\nAlternatively, you can find an extended version of this example in `examples/example.ml`;\nrun it using `dune exec -- examples/example.exe`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-cube%2Firky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-cube%2Firky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-cube%2Firky/lists"}