{"id":15485970,"url":"https://github.com/codediodeio/ngrx-vs-ngxs","last_synced_at":"2025-04-15T06:15:00.838Z","repository":{"id":90246329,"uuid":"128662744","full_name":"codediodeio/ngrx-vs-ngxs","owner":"codediodeio","description":"A side-by-side comparison of Angular state management libraries","archived":false,"fork":false,"pushed_at":"2018-09-06T14:44:39.000Z","size":130,"stargazers_count":122,"open_issues_count":1,"forks_count":41,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-15T06:14:53.730Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codediodeio.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}},"created_at":"2018-04-08T16:55:42.000Z","updated_at":"2025-03-12T03:52:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"512c0f15-ecc6-476c-85a1-9cd403e90f6e","html_url":"https://github.com/codediodeio/ngrx-vs-ngxs","commit_stats":{"total_commits":6,"total_committers":3,"mean_commits":2.0,"dds":"0.33333333333333337","last_synced_commit":"150eb7d1121ef5557396cfe52c277a15e377f23e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codediodeio%2Fngrx-vs-ngxs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codediodeio%2Fngrx-vs-ngxs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codediodeio%2Fngrx-vs-ngxs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codediodeio%2Fngrx-vs-ngxs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codediodeio","download_url":"https://codeload.github.com/codediodeio/ngrx-vs-ngxs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016641,"owners_count":21198833,"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":[],"created_at":"2024-10-02T06:05:18.969Z","updated_at":"2025-04-15T06:15:00.801Z","avatar_url":"https://github.com/codediodeio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# One Framework - Two State Management Libraries \n\nHere we have two Angular apps that are - from the end user's presepective - identical in every way. \n\nBut from the developer's prespective there is a world of difference. I'm not taking sides here - just want to give you a balanced side-by-side comparison of NGXS and NgRx. \n\nWatch the [video and read the article](https://angularfirebase.com/lessons/ngxs-quick-start-angular-state-management). \n\n## Usage\n\n```\ncd ngxs \u0026\u0026 npm i\ncd ngrx \u0026\u0026 npm i\n```\n\nHow do I compare the code footprint between projects? Here's a simple formula:\n\n`( {NgRx}.reducer.ts +  {NgRx}.effects.ts ) ≈ {NGXS}.state.ts`\n\nBoth projects have action classes defined in *.actions.ts files\n\nAlso, take a look at `salad-page.component.ts` to compare state *selectors* between libraries.\n\n## Benchmarks\n\nWebpack bundle analyzer\n\n```\ncd ngxs \u0026\u0026 npm run analyzer\ncd ngrx \u0026\u0026 npm run analyzer\n```\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodediodeio%2Fngrx-vs-ngxs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodediodeio%2Fngrx-vs-ngxs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodediodeio%2Fngrx-vs-ngxs/lists"}