{"id":18948710,"url":"https://github.com/iamnapo/drpcjs","last_synced_at":"2026-03-27T15:30:16.728Z","repository":{"id":51429641,"uuid":"161642932","full_name":"iamnapo/drpcjs","owner":"iamnapo","description":"🍬 Apache storm DRPC client for Node.js.","archived":false,"fork":false,"pushed_at":"2021-05-11T23:03:29.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T01:30:05.832Z","etag":null,"topics":["drpc","drpcjs","node-drpc","storm","storm-node","storm-topology"],"latest_commit_sha":null,"homepage":"","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/iamnapo.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-12-13T13:25:50.000Z","updated_at":"2021-05-11T23:02:22.000Z","dependencies_parsed_at":"2022-09-26T21:51:18.499Z","dependency_job_id":null,"html_url":"https://github.com/iamnapo/drpcjs","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamnapo%2Fdrpcjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamnapo%2Fdrpcjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamnapo%2Fdrpcjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamnapo%2Fdrpcjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamnapo","download_url":"https://codeload.github.com/iamnapo/drpcjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239946915,"owners_count":19723018,"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":["drpc","drpcjs","node-drpc","storm","storm-node","storm-topology"],"created_at":"2024-11-08T13:14:25.312Z","updated_at":"2026-03-27T15:30:16.664Z","avatar_url":"https://github.com/iamnapo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drpcjs\n\n\u003e Apache storm DRPC client for Node.js\n\n[![build](https://img.shields.io/github/workflow/status/iamnapo/drpcjs/ci?style=for-the-badge\u0026logo=github\u0026label=)](https://github.com/iamnapo/drpcjs/actions) [![npm](https://img.shields.io/npm/v/drpcjs.svg?style=for-the-badge\u0026logo=npm\u0026label=)](https://www.npmjs.com/package/drpcjs)\n[![license](https://img.shields.io/github/license/iamnapo/drpcjs.svg?style=for-the-badge)](./LICENSE)\n\n## Install\n\n```console\n$ npm i drpcjs\n```\n\n## Usage\n\n```javascript\nconst Drpcjs = require(\"drpcjs\");\nconst drpc = new Drpcjs(options);\n```\n\n### **options**\n\n- `host`: drpc cluster hostname\n- `port`: drpc client port, default to 3772\n- `timeout`: TCP connection timeout time, default to null\n- `keepAlive`: keep connect alive, default to true\n- `maxConnectCounts`: the maximum connect counts, if the param `keepAlive` is\n  set true, client will reconnect to storm until the connect counts exceed the maxConnectCounts.\n\n### **events**\n\n- `error`\n- `close`\n- `connect`\n- `timeout`\n\n### **methods**\n\n```javascript\nexecute(topologyName, JSON.stringify(args));\n```\n\n## Example\n\n```javascript\nconst drpcjs = require('drpcjs');\nconst drpc = new drpcjs({ host: '127.0.0.1' });\n\ndrpc.execute('reach', JSON.stringify({ a: 'a', b: 7, c: true }).then(console.log).catch(console.error);\n```\n\n## Acknowledgements\n\nBased on [`node-drpc`](https://github.com/rkatti/node-drpc).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamnapo%2Fdrpcjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamnapo%2Fdrpcjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamnapo%2Fdrpcjs/lists"}