{"id":28238347,"url":"https://github.com/angular-redux2/sync","last_synced_at":"2026-04-20T19:02:47.300Z","repository":{"id":154007930,"uuid":"628359476","full_name":"angular-redux2/sync","owner":"angular-redux2","description":"Sync a redux store across browser tabs","archived":false,"fork":false,"pushed_at":"2023-05-12T18:43:49.000Z","size":198,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-26T06:31:04.185Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angular-redux2.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":"2023-04-15T17:45:52.000Z","updated_at":"2023-04-22T23:29:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb32c885-0cdb-4396-9175-31d4859312bb","html_url":"https://github.com/angular-redux2/sync","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"9252115dae0f501ca8316fb5eec44b5736df361c"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/angular-redux2/sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-redux2%2Fsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-redux2%2Fsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-redux2%2Fsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-redux2%2Fsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angular-redux2","download_url":"https://codeload.github.com/angular-redux2/sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angular-redux2%2Fsync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32061251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-05-19T01:12:48.284Z","updated_at":"2026-04-20T19:02:47.265Z","avatar_url":"https://github.com/angular-redux2.png","language":"TypeScript","readme":"# angular-redux2/sync\nAngular-redux2-sync is a lightweight middleware for synchronizing the Redux state between different tabs/windows in the same browser.\nIt uses the Broadcast Channel API to communicate with other tabs and dispatches the same actions that were dispatched in other tabs to keep the state in sync.\n\n[![Discord](https://img.shields.io/discord/1050521693795405874?logo=Angular-redux2)](https://discord.com/invite/7BnsAqst6W)\n[![npm version](https://img.shields.io/npm/v/@angular-redux2/sync.svg)](https://www.npmjs.com/package/@angular-redux2/sync)\n[![downloads per month](https://img.shields.io/npm/dm/@angular-redux2/sync.svg)](https://www.npmjs.com/package/@angular-redux2/sync)\n\n## Installation\nYou can install angular-redux2/sync using npm:\n```bash\nnpm install @angular-redux2/sync\n```\n\n## Usage\nTo use angular-redux2/sync, you need to create an instance of the SyncService class and add it to your Reducer middleware chain.\n- Take me to the [API docs](https://angular-redux2.github.io/sync).\n```typescript\nngRedux.configureStore(\u003cany\u003erootReducer, INITIAL_STATE, [\n    reduxSyncMiddleware({ initState: true })\n], enhancer);\n```\n\nThe `SyncService` constructor takes an optional `ConfigSyncInterface` object that can be used to customize the behavior of the `synchronization`.\nHere are the available options:\n\n* `channelName` (optional): The name of the communication channel to use for action synchronization. If not specified, a default value of \"redux-sync\" will be used.\n* `initState` (optional): A boolean flag indicating whether to copy the initial state from another tab (if available). If set to true, an initial state request will be sent to other tabs through the communication channel.\n* `blacklist` (optional): An array of actions that will not be triggered in other tabs. If an action matches any of the types in this array, it will not be synchronized with other tabs.\n* `whitelist` (optional): An array of actions that will be triggered in other tabs. If this array is specified, only actions that match the types in this array will be synchronized with other tabs.\n* `predicate` (optional): A function that can be used to filter the actions to be synchronized based on custom criteria. This function takes an action object as its parameter and should return a boolean value indicating whether the action should be synchronized.\n* `prepareState` (optional): A function that can be used to prepare the initial state for synchronization with other tabs. This function takes an action object as its parameter and should return the modified initial state object.\n\n\u003e Note that when using multiple options (`predicate`, `blacklist`, and `whitelist`), only one of them will be effective.\n\u003e The priority is `predicate` \u003e `blacklist` \u003e `whitelist`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-redux2%2Fsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangular-redux2%2Fsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangular-redux2%2Fsync/lists"}