{"id":15640504,"url":"https://github.com/neurosnap/starfx","last_synced_at":"2025-08-20T06:32:24.379Z","repository":{"id":150530249,"uuid":"575476405","full_name":"neurosnap/starfx","owner":"neurosnap","description":"A modern approach to side-effect and state management for web apps.","archived":false,"fork":false,"pushed_at":"2024-04-19T15:48:07.000Z","size":564,"stargazers_count":76,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-05-01T15:52:45.064Z","etag":null,"topics":["front-end","react","redux","side-effects","state-management","structured-concurrency","web-app"],"latest_commit_sha":null,"homepage":"https://starfx.bower.sh","language":"TypeScript","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/neurosnap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-12-07T15:45:59.000Z","updated_at":"2024-05-07T17:43:34.971Z","dependencies_parsed_at":"2023-10-14T14:00:22.142Z","dependency_job_id":"e7adc1c9-9eec-4d7e-800a-de6a47714bd6","html_url":"https://github.com/neurosnap/starfx","commit_stats":null,"previous_names":[],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurosnap%2Fstarfx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurosnap%2Fstarfx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurosnap%2Fstarfx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neurosnap%2Fstarfx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neurosnap","download_url":"https://codeload.github.com/neurosnap/starfx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230175535,"owners_count":18185028,"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":["front-end","react","redux","side-effects","state-management","structured-concurrency","web-app"],"created_at":"2024-10-03T11:36:14.606Z","updated_at":"2024-12-19T08:08:01.714Z","avatar_url":"https://github.com/neurosnap.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![starfx](./docs/static/logo.svg)\n\n# starfx\n\nA micro-mvc framework for react apps.\n\nIf we think in terms of MVC, if `react` is the **View**, then `starfx` is the\n**Model** and **Controller**.\n\n[Get started](https://starfx.bower.sh)\n\nFeatures:\n\n- A powerful middleware system to fetch API data\n- An immutable and reactive data store\n- A task tree side-effect system for handling complex business logic using\n  structured concurrency\n- React integration\n\n```tsx\nimport { createApi, createSchema, createStore, mdw, timer } from \"starfx\";\nimport { Provider, useCache } from \"starfx/react\";\n\nconst [schema, initialState] = createSchema();\nconst store = createStore({ initialState });\n\nconst api = createApi();\n// mdw = middleware\napi.use(mdw.api({ schema }));\napi.use(api.routes());\napi.use(mdw.fetch({ baseUrl: \"https://api.github.com\" }));\n\nconst fetchRepo = api.get(\n  \"/repos/neurosnap/starfx\",\n  { supervisor: timer() },\n  api.cache(),\n);\n\nstore.run(api.bootup);\n\nfunction App() {\n  return (\n    \u003cProvider schema={schema} store={store}\u003e\n      \u003cExample /\u003e\n    \u003c/Provider\u003e\n  );\n}\n\nfunction Example() {\n  const { isInitialLoading, isError, message, data } = useCache(fetchRepo());\n\n  if (isInitialLoading) return \"Loading ...\";\n\n  if (isError) return `An error has occurred: ${message}`;\n\n  return (\n    \u003cdiv\u003e\n      \u003ch1\u003e{data.name}\u003c/h1\u003e\n      \u003cp\u003e{data.description}\u003c/p\u003e\n      \u003cstrong\u003e👀 {data.subscribers_count}\u003c/strong\u003e{\" \"}\n      \u003cstrong\u003e✨ {data.stargazers_count}\u003c/strong\u003e{\" \"}\n      \u003cstrong\u003e🍴 {data.forks_count}\u003c/strong\u003e\n    \u003c/div\u003e\n  );\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneurosnap%2Fstarfx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneurosnap%2Fstarfx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneurosnap%2Fstarfx/lists"}