{"id":19140256,"url":"https://github.com/geraked/js-rmi","last_synced_at":"2026-05-12T23:32:29.884Z","repository":{"id":176725292,"uuid":"440260264","full_name":"geraked/js-rmi","owner":"geraked","description":"Implementation of RMI in Node.js","archived":false,"fork":false,"pushed_at":"2021-12-23T04:50:43.000Z","size":741,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T14:50:31.888Z","etag":null,"topics":["amirkabir-university","computer-engineering","computer-science","distributed-systems","es6","geraked","javascript","js-library","js-rmi","library","middleware","node-js","nodejs","rabist","remote-method-invocation","rmi","rpc"],"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/geraked.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-20T17:54:16.000Z","updated_at":"2021-12-23T04:50:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd3cb99d-3001-47cd-9622-e56fdb4b97a0","html_url":"https://github.com/geraked/js-rmi","commit_stats":null,"previous_names":["geraked/js-rmi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraked%2Fjs-rmi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraked%2Fjs-rmi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraked%2Fjs-rmi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraked%2Fjs-rmi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geraked","download_url":"https://codeload.github.com/geraked/js-rmi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240222505,"owners_count":19767458,"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":["amirkabir-university","computer-engineering","computer-science","distributed-systems","es6","geraked","javascript","js-library","js-rmi","library","middleware","node-js","nodejs","rabist","remote-method-invocation","rmi","rpc"],"created_at":"2024-11-09T07:16:56.927Z","updated_at":"2026-05-12T23:32:29.856Z","avatar_url":"https://github.com/geraked.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RMI\n\nImplementation of RMI in Node.js\n\n## Run the example\n\n-   Make sure [Node.js](https://nodejs.org/en/download/) has been installed on your machine.\n-   Download the repository as [ZIP](https://github.com/geraked/js-rmi/archive/refs/heads/master.zip) or use the following command:\n\n```\ngit clone https://github.com/geraked/js-rmi.git\n```\n\n-   Go to directory where the file `package.json` exists:\n\n```\ncd js-rmi\n```\n\n-   Execute the following command to run the example:\n\n```\nnpm run example\n```\n\n## Use the library\n\n-   Install:\n\n```\nnpm i https://github.com/geraked/js-rmi.git\n```\n\n-   Define an abstract class (interface) and share between the client and server:\n\n[IHuman.js](example/shared/IHuman.js)\n\n-   Implement the interface on the server:\n\n[Human.js](example/server/Human.js)\n\n-   Create an object on the `server` and bind it:\n\n```js\nimport { ServerStub } from \"rmi\";\nimport { Human } from \"./Human.js\";\n\nlet stub = new ServerStub(\"localhost\", 3000);\nlet human = new Human(\"Amir\", 17, 67, 1.73);\n\nstub.bind(\"/human\", human);\n```\n\n-   Lookup the remote object from the `client` and use it:\n\n```js\nimport { IHuman } from \"../shared/IHuman.js\";\nimport { ClientStub } from \"rmi\";\n\nlet stub = new ClientStub(\"localhost\", 3000);\nlet human = stub.lookup(\"/human\", IHuman);\n\nconsole.log(\"toJSON:\", await human.toJSON());\nconsole.log(\"BMI:\", await human.bmi());\n\n// Manipulate\nawait (human.name = \"Reza\");\nawait (human.height = 1.8);\nawait (human.age = (await human.age) + 3);\nawait human.looseWeight(5);\n```\n\n## Author\n\n**Rabist** - view on [LinkedIn](https://www.linkedin.com/in/rabist)\n\n## Details\n\n-   **Course:** Distributed Systems - MS\n-   **Teacher:** [Dr. Amir Kalbasi](https://aut.ac.ir/cv/2241/AMIR-KALBASI?slc_lang=en)\n-   **Univ:** Amirkabir University of Technology - Tehran Polytechnic\n-   **Semester:** Fall 1400\n\nThe exercise and report documents are available in [`docs`](https://github.com/geraked/js-rmi/tree/docs) branch.\n\nView the [Exercise PDF](https://github.com/geraked/js-rmi/blob/docs/exercise.pdf).\n\nView the [Report PDF](https://github.com/geraked/js-rmi/blob/docs/report.pdf).\n\n## License\n\nLicensed under [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeraked%2Fjs-rmi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeraked%2Fjs-rmi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeraked%2Fjs-rmi/lists"}