{"id":18029088,"url":"https://github.com/kube/redux-electron-global-dispatch","last_synced_at":"2026-04-18T17:34:23.894Z","repository":{"id":57350647,"uuid":"81267736","full_name":"kube/redux-electron-global-dispatch","owner":"kube","description":"Redux Middleware to dispatch Actions between Electron Processes","archived":false,"fork":false,"pushed_at":"2018-03-29T15:22:15.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-06T19:31:18.023Z","etag":null,"topics":["dispatch","electron","middleware","redux"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-07T23:59:58.000Z","updated_at":"2019-05-22T21:57:42.000Z","dependencies_parsed_at":"2022-09-15T01:53:19.118Z","dependency_job_id":null,"html_url":"https://github.com/kube/redux-electron-global-dispatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kube/redux-electron-global-dispatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kube%2Fredux-electron-global-dispatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kube%2Fredux-electron-global-dispatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kube%2Fredux-electron-global-dispatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kube%2Fredux-electron-global-dispatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kube","download_url":"https://codeload.github.com/kube/redux-electron-global-dispatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kube%2Fredux-electron-global-dispatch/sbom","scorecard":{"id":572432,"data":{"date":"2025-08-11","repo":{"name":"github.com/kube/redux-electron-global-dispatch","commit":"090e2a1a38f15746628fbb2a93453bada34c3a4b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T16:41:50.836Z","repository_id":57350647,"created_at":"2025-08-20T16:41:50.837Z","updated_at":"2025-08-20T16:41:50.837Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31978133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dispatch","electron","middleware","redux"],"created_at":"2024-10-30T09:07:55.624Z","updated_at":"2026-04-18T17:34:23.864Z","avatar_url":"https://github.com/kube.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Redux Electron Middleware](https://rawgithub.com/kube/redux-electron-global-dispatch/master/icons.svg)\n\n# Redux Electron Global Dispatch\n\nRedux Middleware for dispatching Actions between Electron processes\n\n## Install\n\n```sh\nnpm install redux-electron-global-dispatch\n```\n\n## How it works\n\nThis middleware intercepts all actions, and in case the intercepted action\nis global, it will forward it as an IPC message to all other processes.\n\nIt also listens for global action events via IPC, so each Store implementing\nthe middleware will effectively dispatch received global actions.\n\nStores that do not use the middleware won't be touched.\n\n## Dispatch to BrowserWindow\n\nAn Action can be easily dispatched to a BrowserWindow using `dispatchToWindow`:\n\n```ts\nimport { dispatchToWindow } from 'redux-electron-global-dispatch'\n\ndispatchToWindow(browserWindow, someAction)\n```\n\n## Global Actions\n\nA global action is just an action which has a `global` attribute set to `true`:\n\n```ts\nconst globalAction = {\n  type: 'INCREMENT',\n  global: true\n}\n```\n\nA global action will be intercepted by the middleware and dispatched to all\nElectron processes which use the middleware.\n\n## Setup\n\nSimply import the middleware and apply it to your Store:\n\n```ts\nimport globalDispatchMiddleware from 'redux-electron-global-dispatch'\n\nconst enhancer = applyMiddleware(globalDispatchMiddleware)\nconst store = createStore(reducer, enhancer)\n```\n\nYou're all set! All global actions will now automatically be dispatched to all Redux Stores using the middleware.\n\n## Custom Global Action Predicate\n\nYou can also define a custom global action predicate:\n\nWhen you use the default export, the predicate is:\n\n```ts\naction =\u003e action.global === true\n```\n\nIf you want to automatically dispatch all Increment Actions, you can do:\n\n```ts\nimport { createGlobalDispatchMiddleware } from 'redux-electron-global-dispatch'\n\nconst enhancer = applyMiddleware(\n  createGlobalDispatchMiddleware(\n    action =\u003e action.type === 'INCREMENT'\n  )\n)\n```\n\nOr if you want to dispatch globally all Actions without filtering:\n\n```ts\nimport { createGlobalDispatchMiddleware } from 'redux-electron-global-dispatch'\n\nconst enhancer = applyMiddleware(\n  createGlobalDispatchMiddleware(() =\u003e true)\n)\n```\n\n## Why this middleware?\n\nDispatching an Action through **IPC has a cost**: the action is serialized, sent\nas a text message, and then unserialized, before being effectively dispatched to the Store.\n\nIn the case of an application where a lot of actions get dispatched, on multiple\nwindows, dispatching all actions globally adds a lot of unnecessary resource usage,\nand can lead to performance issues.\n\nThis middleware allows you to **easily filter** which actions will be dispatched globally,\npreserving application **performance**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkube%2Fredux-electron-global-dispatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkube%2Fredux-electron-global-dispatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkube%2Fredux-electron-global-dispatch/lists"}