{"id":16188192,"url":"https://github.com/pakastin/redom-state","last_synced_at":"2025-03-19T03:30:38.989Z","repository":{"id":79387301,"uuid":"76298239","full_name":"pakastin/redom-state","owner":"pakastin","description":"RE:DOM state handling example","archived":false,"fork":false,"pushed_at":"2017-05-30T11:07:08.000Z","size":51,"stargazers_count":19,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T14:49:57.986Z","etag":null,"topics":["javascript","redom"],"latest_commit_sha":null,"homepage":"https://pakastin.github.io/redom-state/","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/pakastin.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":"2016-12-12T21:45:24.000Z","updated_at":"2022-09-06T18:30:38.000Z","dependencies_parsed_at":"2023-06-03T23:15:15.176Z","dependency_job_id":null,"html_url":"https://github.com/pakastin/redom-state","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakastin%2Fredom-state","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakastin%2Fredom-state/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakastin%2Fredom-state/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pakastin%2Fredom-state/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pakastin","download_url":"https://codeload.github.com/pakastin/redom-state/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243965752,"owners_count":20375917,"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":["javascript","redom"],"created_at":"2024-10-10T07:25:23.333Z","updated_at":"2025-03-19T03:30:38.983Z","avatar_url":"https://github.com/pakastin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redom-state\n[RE:DOM](https://redom.js.org) state handling example\n\n## Demo\nhttps://pakastin.github.io/redom-state/\n\n## How it works?\nThe whole [redux](https://github.com/reactjs/redux)-like [state handling code is only 447 bytes](https://github.com/pakastin/redom-state/blob/master/js/utils/dispatch.js) uncompressed. Redux is [30.1 KB](https://cdnjs.cloudflare.com/ajax/libs/redux/3.6.0/redux.js) for comparison.\n\nIt uses native HTML events to dispatch actions upstream and RE:DOM component updates to update views downstream. That's it :)\n\nHere's the action definitions:\nhttps://github.com/pakastin/redom-state/blob/master/js/actions.js\n\nThis is what binds everything together:\nhttps://github.com/pakastin/redom-state/blob/master/js/utils/api.js\n\n## Benefits\n- Fast\n- Small\n- Asynchronous, but immediate\n- Flexible (stopPropagation etc)\n\n## Future\nI will release this as a separate library or some parts included in RE:DOM. For now it's just an experiment.\n\n## Run\n```\nnpm start\n```\n\nThen navigate to [http://localhost:8080/](http://localhost:8080/)\n\n## Dev mode\n```\nnpm run dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpakastin%2Fredom-state","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpakastin%2Fredom-state","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpakastin%2Fredom-state/lists"}