{"id":28835721,"url":"https://github.com/odonno/ngrx-watch-component-store","last_synced_at":"2026-04-24T23:31:40.175Z","repository":{"id":75809578,"uuid":"564320371","full_name":"Odonno/ngrx-watch-component-store","owner":"Odonno","description":"Simplify debugging of ngrx's ComponentStore","archived":false,"fork":false,"pushed_at":"2023-02-05T17:34:24.000Z","size":1232,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-19T10:11:31.859Z","etag":null,"topics":["angular","component-store","decorator","logging","ngrx"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ngrx-watch-component-store","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/Odonno.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-11-10T13:17:16.000Z","updated_at":"2022-12-10T21:18:22.000Z","dependencies_parsed_at":"2023-02-24T15:15:23.239Z","dependency_job_id":null,"html_url":"https://github.com/Odonno/ngrx-watch-component-store","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Odonno/ngrx-watch-component-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Odonno%2Fngrx-watch-component-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Odonno%2Fngrx-watch-component-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Odonno%2Fngrx-watch-component-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Odonno%2Fngrx-watch-component-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Odonno","download_url":"https://codeload.github.com/Odonno/ngrx-watch-component-store/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Odonno%2Fngrx-watch-component-store/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32245021,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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":["angular","component-store","decorator","logging","ngrx"],"created_at":"2025-06-19T10:10:38.712Z","updated_at":"2026-04-24T23:31:40.170Z","avatar_url":"https://github.com/Odonno.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NgrxWatchComponentStore\n\nSimplify debugging of ngrx's ComponentStore\n\n```\nnpm i ngrx-watch-component-store\n```\n\n### Introduction\n\nThe goal of this library is to display log on each ComponentStore state update. Here is what you can get in your Chrome DevTools:\n\n![./images/logs.png](./images/logs.png)\n\n### How to use?\n\nSimply add `WatchComponentState` decorator on each `ComponentStore` in your app. See for yourself:\n\n```ts\nimport { Injectable } from \"@angular/core\";\nimport { ComponentStore } from \"@ngrx/component-store\";\nimport { WatchComponentState } from \"ngrx-watch-component-store\";\n\n@Injectable()\n@WatchComponentState()\nexport class AppStore extends ComponentStore\u003cAppState\u003e {\n  constructor() {\n    super(initialAppState);\n  }\n\n  // selectors\n  readonly count$ = this.select((state) =\u003e state.count);\n\n  // updaters\n  readonly increment = this.updater((state) =\u003e ({ count: state.count + 1 }));\n  readonly decrement = this.updater((state) =\u003e ({ count: state.count - 1 }));\n  readonly reset = this.updater(() =\u003e initialAppState);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodonno%2Fngrx-watch-component-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodonno%2Fngrx-watch-component-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodonno%2Fngrx-watch-component-store/lists"}