{"id":28192176,"url":"https://github.com/4i8/iipc","last_synced_at":"2025-09-12T08:36:49.365Z","repository":{"id":183403934,"uuid":"631533265","full_name":"4i8/iipc","owner":"4i8","description":"iipc is a simple Inter Process Communication for nodejs built on ws to communicate between processes safely and easily using tcp and websocket, You can also return data to the client see (example)","archived":false,"fork":false,"pushed_at":"2023-04-23T10:19:37.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-11T08:32:51.487Z","etag":null,"topics":["interprocess","interprocess-communication","ipc","node-ipc","tcp","websocket","ws"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/4i8.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}},"created_at":"2023-04-23T10:19:31.000Z","updated_at":"2023-04-23T10:24:24.000Z","dependencies_parsed_at":"2023-07-30T03:16:05.163Z","dependency_job_id":null,"html_url":"https://github.com/4i8/iipc","commit_stats":null,"previous_names":["4i8/iipc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4i8%2Fiipc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4i8%2Fiipc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4i8%2Fiipc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4i8%2Fiipc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4i8","download_url":"https://codeload.github.com/4i8/iipc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518327,"owners_count":22084376,"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":["interprocess","interprocess-communication","ipc","node-ipc","tcp","websocket","ws"],"created_at":"2025-05-16T11:12:09.133Z","updated_at":"2025-05-16T11:12:09.195Z","avatar_url":"https://github.com/4i8.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\r\n  \u003cp\u003e\r\n \u003ca href=\"https://www.npmjs.com/package/iipc\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/iipc.svg?style=for-the-badge\" alt=\"NPM version\" /\u003e\u003c/a\u003e\r\n \u003ca href=\"https://www.npmjs.com/package/iipc\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/iipc.svg?maxAge=3600\u0026style=for-the-badge\" alt=\"NPM downloads\" /\u003e\u003c/a\u003e\r\n \u003cimg src=\"https://img.shields.io/badge/Linux-FCC624?style=for-the-badge\u0026logo=linux\u0026logoColor=black\" alt=\"Linux\" /\u003e\r\n \u003cimg src=\"https://img.shields.io/badge/Windows-0078D6?style=for-the-badge\u0026logo=windows\u0026logoColor=white\" alt=\"windows\" /\u003e\r\n \u003cimg src=\"https://img.shields.io/badge/mac%20os-000000?style=for-the-badge\u0026logo=macos\u0026logoColor=F0F0F0\" alt=\"macos\" /\u003e\r\n  \u003cimg src=\"https://img.shields.io/badge/WS-black?style=for-the-badge\u0026logo=WebStorm\u0026badgeColor=010101\" alt=\"websooket\" /\u003e\r\n    \u003cimg src=\"https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge\u0026logo=javascript\u0026logoColor=%23F7DF1E\" alt=\"websooket\" /\u003e\r\n  \u003ca href=\"https://www.npmjs.com/package/iipc\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/iipc.svg?maxAge=3600\u0026style=for-the-badge\" alt=\"license\" /\u003e\u003c/a\u003e\r\n  \u003c/p\u003e\r\n  \r\n\u003c/div\u003e\r\n\r\n# **iipc**\r\n\r\n**iipc is a simple Inter Process Communication for nodejs built on [ws](https://www.npmjs.com/package/ws) to communicate between processes safely and easily using tcp and websocket, You can also return data to the client see ([example](#example))**\r\n\r\n# **Important:**\r\n\r\n**this package is not biased and does not have any hidden features that can harm the user Fun use**\r\n\r\n# **Installation**\r\n\r\n# **Linux**\r\n\r\n**Must install netstat**\r\n\r\n```sh-session\r\nsudo apt-get install net-tools\r\n```\r\n\r\n```sh-session\r\nnpm install iipc\r\nyarn add iipc\r\n```\r\n\r\n# **Windows**\r\n**Tested on Windows 10**\r\n```sh-session\r\nnpm install iipc\r\nyarn add iipc\r\n```\r\n\r\n# **MacOS**\r\n\r\n**Not Tested on MacOS, but we hope it works if your device is a MacOS, please let us know if it works**\r\n\r\n# Example\r\n\r\n## index.js process 1\r\n\r\n```js\r\nconst { ipc } = require(\"iipc\");\r\nconst $ = new ipc(\"test\"); // This is the secret that will be used to authenticate the client\r\n$.on(\"listening\", () =\u003e {\r\n  console.log(\"IPC IS ON! Enjoy\");\r\n});\r\n//custom port use: new ipc(8080);\r\n$.on(\"receive\", ({ res, resolve }) =\u003e {\r\n  console.log(res); //Hello\r\n\r\n  resolve(\"Hi!\"); // This is the data that will be sent back to the client\r\n\r\n  //if you don't use resolve, the client will wait forever and promise will never resolve\r\n});\r\n```\r\n\r\n## client.js process 2\r\n\r\n```js\r\nconst { client } = require(\"iipc\");\r\nclient(\"test\", \"Hello\").then((back) =\u003e {\r\n  console.log(back); //Hi!\r\n});\r\n//custom port use: client(8080, \"Hello\");\r\n```\r\n\r\n## Links\r\n\r\n- [Twiter](https://twitter.com/onlyarth)\r\n- [Github](https://github.com/4i8)\r\n\r\n## License\r\n\r\n- [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4i8%2Fiipc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4i8%2Fiipc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4i8%2Fiipc/lists"}