{"id":25620770,"url":"https://github.com/codewell/catalyst","last_synced_at":"2026-05-25T06:30:18.304Z","repository":{"id":35111398,"uuid":"208026884","full_name":"codewell/catalyst","owner":"codewell","description":"React state management made easy","archived":false,"fork":false,"pushed_at":"2023-01-04T10:16:04.000Z","size":312,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T09:56:07.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/codewell.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}},"created_at":"2019-09-12T10:39:25.000Z","updated_at":"2020-11-12T08:36:20.000Z","dependencies_parsed_at":"2023-01-15T14:03:22.088Z","dependency_job_id":null,"html_url":"https://github.com/codewell/catalyst","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fcatalyst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fcatalyst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fcatalyst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Fcatalyst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewell","download_url":"https://codeload.github.com/codewell/catalyst/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240139767,"owners_count":19754179,"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":"2025-02-22T07:28:01.126Z","updated_at":"2026-05-25T06:30:16.252Z","avatar_url":"https://github.com/codewell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @codewell/catalyst\nReact state management made easy\n\n## Installation\n```JavaScript\nnpm install @codewell/catalyst\n```\n\n## Basic usage\nSupposed to be used with React\n```JavaScript\n// index.js\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport App from './App';\nimport catalyst from '@codewell/catalyst';\n\nconst { CatalystProvider, CatalystContext } = catalyst(React);\n\nexport const catalystContext = CatalystContext; // (*) Make this context available to the rest of the app\n\nReactDOM.render(\n  \u003cCatalystProvider initialState={{ foo: 'foo' }}\u003e\n    \u003cApp /\u003e\n  \u003c/CatalystProvider\u003e,\n  document.getElementById('root'),\n);\n\n// ...\n\n```\n\n```JavaScript\n// App.js\nimport React, { useContext } from 'react';\nimport { catalystContext } from './index'; // (*) Exported in index.js\n\nconst App = () =\u003e {\n  const { state, dispatch } = useContext(catalystContext);\n\n  const action = (event) =\u003e {\n    dispatch({ type: 'SET_AGE', payload: 29 });\n  };\n\n  const inp = (event) =\u003e {\n    dispatch({ type: 'SET_INPUT', payload: event.target.value })\n  }\n\n  return (\n    \u003cdiv\u003e\n      {state.name} - {state.age} - {state.input}\n      \u003cbutton onClick={action}\u003eClick me\u003c/button\u003e\n      \u003cinput type=\"text\" onChange={inp} /\u003e\n    \u003c/div\u003e\n  )\n};\n\nexport default App;\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewell%2Fcatalyst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewell%2Fcatalyst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewell%2Fcatalyst/lists"}