{"id":21418292,"url":"https://github.com/abrkn/jars","last_synced_at":"2025-07-14T05:30:50.147Z","repository":{"id":57279313,"uuid":"146403288","full_name":"abrkn/jars","owner":"abrkn","description":"JSON-RPC over Redis","archived":false,"fork":false,"pushed_at":"2018-09-24T08:50:16.000Z","size":1031,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T02:57:52.520Z","etag":null,"topics":["nodejs","pubsub","redis","rpc"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/abrkn.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":"2018-08-28T06:40:00.000Z","updated_at":"2020-10-19T05:54:31.000Z","dependencies_parsed_at":"2022-09-15T09:40:55.812Z","dependency_job_id":null,"html_url":"https://github.com/abrkn/jars","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrkn%2Fjars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrkn%2Fjars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrkn%2Fjars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrkn%2Fjars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abrkn","download_url":"https://codeload.github.com/abrkn/jars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225951670,"owners_count":17550416,"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":["nodejs","pubsub","redis","rpc"],"created_at":"2024-11-22T19:19:57.866Z","updated_at":"2024-11-22T19:19:58.564Z","avatar_url":"https://github.com/abrkn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jars\n\nJSON-RPC over Redis\n\n## Install\n\n`npm install jars`\n\n## Usage\n\n[See tests](test.js)\n\n## How it works\n\n- Services listen for RPC requests using Redis lists\n- Clients receive responses using Redis pub/sub\n\n### Calculator\n\n```\nSERVER: BLPOP jars.rpc.calculator\nCLIENT: SUBSCRIBE jars.reply.foo\nCLIENT: LPUSH jars.rpc.calculator {id:1,method:\"sum\",params:[1,2],meta:{replyChannel:\"foo\"}}\nSERVER: PUBLISH jars.reply.foo {id:1,status:\"ack\"}\nSERVER: BLPOP jars.rpc.calculator\nSERVER: PUBLISH jars.reply.foo {id:1,result:3}\n```\n\n## Author\n\nAndreas Brekken \u003candreas@brekken.com\u003e\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrkn%2Fjars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabrkn%2Fjars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrkn%2Fjars/lists"}