{"id":18056014,"url":"https://github.com/argyleink/rxstate","last_synced_at":"2026-02-11T22:01:47.753Z","repository":{"id":143907281,"uuid":"141086066","full_name":"argyleink/RxState","owner":"argyleink","description":"💊 Turn any object or array into a reactive store","archived":false,"fork":false,"pushed_at":"2018-07-18T03:00:28.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-14T17:40:00.406Z","etag":null,"topics":["es6","npm-package","rxjs","rxjs6","state-store","unidirectional-data-flow"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/argyleink.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-07-16T04:23:30.000Z","updated_at":"2022-10-28T01:38:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"f18c5d93-6047-412f-b50e-58bf35369a72","html_url":"https://github.com/argyleink/RxState","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/argyleink/RxState","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyleink%2FRxState","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyleink%2FRxState/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyleink%2FRxState/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyleink%2FRxState/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/argyleink","download_url":"https://codeload.github.com/argyleink/RxState/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyleink%2FRxState/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29347412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T20:11:40.865Z","status":"ssl_error","status_checked_at":"2026-02-11T20:10:41.637Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["es6","npm-package","rxjs","rxjs6","state-store","unidirectional-data-flow"],"created_at":"2024-10-31T01:13:20.404Z","updated_at":"2026-02-11T22:01:47.719Z","avatar_url":"https://github.com/argyleink.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxState\nTurn any object or array into a reactive store\n\nUse it like this:\n```js\nimport { rxStore, rxLogger } from 'rxstatestore'\n\n// init store with seed state\n// actions take manipulation params\n// reducers are passed state at time of invocation\n// the reducer is expected to return new state post manipulation\nconst Counter = rxStore(0, {\n  increment: (amount = 1) =\u003e count =\u003e count + amount,\n  decrement: (amount = 1) =\u003e count =\u003e count - amount,\n})\n\n// subscriber(s) always given latest, at subscription and as state changes (hot)\nCounter.$.subscribe(count =\u003e someNode.textContent = count)\n\n// UI logic calls actions\nCounter.increment()\nCounter.increment(5)\nCounter.decrement()\nCounter.decrement(5)\n\n// optional: opt into nice state change console logs\nrxLogger('Counter', Counter.$)\n```\n\nI made this for myself, but maybe you want it to. It's really just a wrapper function to allow easy to define state stores with RxJS. I've found the strategy scales really well and works great for leveraging RxJS in UI development. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargyleink%2Frxstate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fargyleink%2Frxstate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargyleink%2Frxstate/lists"}