{"id":23968629,"url":"https://github.com/vutran/redux-ipc","last_synced_at":"2025-04-13T15:40:36.962Z","repository":{"id":57143652,"uuid":"66057691","full_name":"vutran/redux-ipc","owner":"vutran","description":"Log your Redux state and actions to a node backend via WebSockets.","archived":false,"fork":false,"pushed_at":"2016-10-01T19:18:30.000Z","size":1142,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-14T06:30:39.314Z","etag":null,"topics":["ipc","node","react","redux","websocket"],"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/vutran.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":"2016-08-19T06:15:44.000Z","updated_at":"2017-07-13T13:02:40.000Z","dependencies_parsed_at":"2022-09-05T22:52:07.937Z","dependency_job_id":null,"html_url":"https://github.com/vutran/redux-ipc","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fredux-ipc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fredux-ipc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fredux-ipc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutran%2Fredux-ipc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vutran","download_url":"https://codeload.github.com/vutran/redux-ipc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248739771,"owners_count":21154228,"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":["ipc","node","react","redux","websocket"],"created_at":"2025-01-07T00:15:25.058Z","updated_at":"2025-04-13T15:40:36.937Z","avatar_url":"https://github.com/vutran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redux-ipc\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n\n\u003e Log your Redux state and actions to a node backend via WebSockets.\n\n## Install\n\n```bash\n$ npm install --save redux-ipc\n```\n\n![Demo](demo.gif)\n\n## Usage\n\nApply the middleware when creating your Redux store.\n\n```js\nconst reduxIpcMiddleware = require('redux-ipc');\n\nconst state = {\n  todos: [],\n};\n\n// apply the middleware\nconst store = createStore(state, {}, applyMiddleware(reduxIpcMiddleware));\n\n// dispatch actions\n// store.dispatch(...);\n// store.dispatch(...);\n// store.dispatch(...);\n```\n\nCreate the server to listen for messages.\n\n```js\nconst Server = require('redux-ipc').Server;\n\nconst PORT = process.env.REDUX_IPC_PORT || 8080;\nconst PROTOCOL = process.env.REDUX_IPC_PROTOCOL || 'redux-ipc';\n\n// create a new redux ipc server\nconst wss = new Server({ port: PORT, socketName: PROTOCOL });\n\n// listen to messages\nwss.on('message', message =\u003e {\n  console.log(message);\n});\n```\n\n## Examples\n\nRun `npm install` and `npm start` for each directory in `/examples`.\n\n*Note: Examples are based on the official Redux examples with slight modifications to showcase the IPC functionality.*\n\n## License\n\nMIT © Vu Tran\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Fredux-ipc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvutran%2Fredux-ipc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutran%2Fredux-ipc/lists"}