{"id":18886326,"url":"https://github.com/fengzilong/reo","last_synced_at":"2025-06-26T10:02:49.099Z","repository":{"id":57353598,"uuid":"68980584","full_name":"fengzilong/reo","owner":"fengzilong","description":"🍯 regularjs and stateman based spa framework, inspired by redux, vuex and choo","archived":false,"fork":false,"pushed_at":"2018-08-08T09:10:09.000Z","size":284,"stargazers_count":14,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-26T10:18:09.466Z","etag":null,"topics":["dva","redux","regularjs","spa","state","stateman","time-travel","vuex"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fengzilong.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}},"created_at":"2016-09-23T02:22:21.000Z","updated_at":"2018-08-08T09:10:10.000Z","dependencies_parsed_at":"2022-09-16T08:20:57.609Z","dependency_job_id":null,"html_url":"https://github.com/fengzilong/reo","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/fengzilong/reo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengzilong%2Freo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengzilong%2Freo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengzilong%2Freo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengzilong%2Freo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fengzilong","download_url":"https://codeload.github.com/fengzilong/reo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fengzilong%2Freo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260633548,"owners_count":23039373,"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":["dva","redux","regularjs","spa","state","stateman","time-travel","vuex"],"created_at":"2024-11-08T07:26:33.600Z","updated_at":"2025-06-26T10:02:49.065Z","avatar_url":"https://github.com/fengzilong.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reo\n\n[![build][build-image]][build-url]\n\ninspired by [redux](https://github.com/reactjs/redux), [vuex](https://github.com/vuejs/vuex) and [choo](https://github.com/choojs/choo)\n\n## Overview\n\n```js\nimport reo from 'reo'\n\nconst app = reo()\napp.use( plugin )\napp.model( ... )\napp.actions( ... )\napp.getters( ... )\napp.router( ... )\napp.start( '#app' )\n```\n\n## Real world example\n\n```js\nimport reo from 'reo'\n\nconst app = reo()\n\napp.model( {\n\tname: 'counter',\n\tstate: { count: 0 },\n\treducers: {\n\t\tadd( state ) {\n\t\t\tstate.count++\n\t\t},\n\t\tminus( state ) {\n\t\t\tstate.count--\n\t\t}\n\t}\n} )\n\napp.getters( {\n\tcount: state =\u003e state.counter.count\n} )\n\napp.actions( {\n\tadd( { commit } ) {\n\t\tcommit( 'counter/add' )\n\t},\n\tminus( { commit } ) {\n\t\tcommit( 'counter/minus' )\n\t}\n} )\n\nconst Counter = {\n\tgetters: {\n\t\tc: 'count'\n\t},\n\ttemplate: `\n\t\t\u003cbutton on-click=\"{ this.dispatch( 'minus' ) }\"\u003e-\u003c/button\u003e\n\t\t{ c }\n\t\t\u003cbutton on-click=\"{ this.dispatch( 'add' ) }\"\u003e+\u003c/button\u003e\n\t`,\n}\n\napp.router( {\n\troutes: [\n\t\t{ path: '/', component: Counter }\n\t]\n} )\n\napp.start( '#app' )\n```\n\n## License\n\nMIT \u0026copy; [fengzilong](https://github.com/fengzilong)\n\n[build-image]: https://img.shields.io/circleci/project/fengzilong/reo/master.svg?style=flat-square\n[build-url]: https://circleci.com/gh/fengzilong/reo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengzilong%2Freo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffengzilong%2Freo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffengzilong%2Freo/lists"}