{"id":18770170,"url":"https://github.com/lotuc/xnfun","last_synced_at":"2026-05-02T10:40:52.790Z","repository":{"id":65541106,"uuid":"569048685","full_name":"lotuc/xnfun","owner":"lotuc","description":"RPC over MQTT (and maybe NOT JUST MQTT)","archived":false,"fork":false,"pushed_at":"2023-03-04T09:12:17.000Z","size":470,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T07:40:56.908Z","etag":null,"topics":["edge","mqtt","rpc","rpc-over-mqtt"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/lotuc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.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}},"created_at":"2022-11-22T00:58:09.000Z","updated_at":"2023-07-15T05:04:28.000Z","dependencies_parsed_at":"2024-11-07T19:18:34.471Z","dependency_job_id":"b9f92520-0979-4f1e-bae1-859d3f0ea447","html_url":"https://github.com/lotuc/xnfun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotuc%2Fxnfun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotuc%2Fxnfun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotuc%2Fxnfun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lotuc%2Fxnfun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lotuc","download_url":"https://codeload.github.com/lotuc/xnfun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239675812,"owners_count":19678672,"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":["edge","mqtt","rpc","rpc-over-mqtt"],"created_at":"2024-11-07T19:18:26.405Z","updated_at":"2025-12-11T11:30:32.927Z","avatar_url":"https://github.com/lotuc.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XNFUN (Cross-Node Functions)\n\n## Documentation\n\n* [Introduction to xnfun](https://lotuc.org/xnfun/intro.html)\n* [API Docs](https://lotuc.org/xnfun/lotuc.xnfun.api.html)\n\n## Sample\n\nAll the samples assume a running MQTT broker at `tcp://localhost:1883` with no credentials.\n\n- [example1.clj](./src/dev/clj/examples/example1.clj): Unary RPC call\n- [example2.clj](./src/dev/clj/examples/example2.clj): Bindirectional RPC call\n\n```clojure\n(require '[lotuc.xnfun.api :refer [start-node add-function call]])\n\n;; Start node and register function to node\n\n(def n0 (start-node {:node-options {:hb-interval-ms 3000}}))\n(add-function n0 \"add\" (fn [[a b]] (+ a b)))\n\n(def n1 (start-node {:node-options {:hb-interval-ms 3000}}))\n(add-function n1 \"sub\" (fn [[a b]] (- a b)))\n\n;; Call functions\n\n@(call n0 \"add\" [4 2])\n@(call n0 \"sub\" [4 2])\n\n@(call n1 \"add\" [4 2])\n@(call n1 \"sub\" [4 2])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flotuc%2Fxnfun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flotuc%2Fxnfun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flotuc%2Fxnfun/lists"}