{"_id":"logic-runtime-react-z","_rev":"68-e188c86d756f285c93ed9eed126d4d1f","name":"logic-runtime-react-z","dist-tags":{"z":"2.0.0-z","latest":"3.1.6"},"versions":{"1.0.0":{"name":"logic-runtime-react-z","version":"1.0.0","keywords":["react","react-no-hook","external-store","intent-runtime","logic-runtime","computed-state","no-hooks","react-architecture","external-runtime"],"author":{"name":"Delpi.Kye"},"license":"MIT","_id":"logic-runtime-react-z@1.0.0","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"dist":{"shasum":"d3089a83ee19f42a3eb48837f77b9ff5e50b1f55","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-1.0.0.tgz","fileCount":19,"integrity":"sha512-JAFISPzsdCco/Brv/XJmjmVOuyPrfkO2jKHwRwa33cQiCBnPDm6syvJ/9dJsCWCVhrXgk+DZKd9TxLw0114oFw==","signatures":[{"sig":"MEUCIQDVA6w+81MofFCY36pKI+yABxfZ82TWnDtJehrSaBCWbAIgCzssmiXxKFBQ7aKTGe/bLE0ScfRjO3MjXTS3RMGHcis=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29171},"main":"build/index.cjs.js","types":"build/index.d.ts","module":"build/index.esm.js","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"},"./react":{"types":"./build/react/index.d.ts","import":"./build/react/index.esm.js","require":"./build/react/index.cjs.js"},"./devtools":{"types":"./build/devtools/index.d.ts","import":"./build/devtools/index.esm.js","require":"./build/devtools/index.cjs.js"}},"gitHead":"be824e796c2e7edbc8bcbc45224fd06e08d48b5e","scripts":{"cb":"npm run clean && npm run build","build":"rollup -c","clean":"rimraf build","prepublishOnly":"npm run cb"},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"repository":{"url":"git+https://github.com/delpikye-v/logic-runtime-react.git","type":"git"},"_npmVersion":"11.6.2","description":"Intent-first runtime for React. No hooks. Deterministic state. Orchestrated effects.","directories":{},"sideEffects":false,"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","tslib":"^2.6.2","rimraf":"^5.0.5","rollup":"^4.9.6","react-dom":"^18.2.0","typescript":"^5.3.3","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^25.0.0","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/logic-runtime-react-z_1.0.0_1768421288210_0.9382748235208369","host":"s3://npm-registry-packages-npm-production"}},"2.0.0-z":{"name":"logic-runtime-react-z","version":"2.0.0-z","keywords":["react","react-no-hook","external-store","intent-runtime","logic-runtime","computed-state","no-hooks","react-architecture","external-runtime"],"author":{"name":"Delpi.Kye"},"license":"MIT","_id":"logic-runtime-react-z@2.0.0-z","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"dist":{"shasum":"280604ca37cda87b54a92cb07b73f8dde402b09a","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-2.0.0-z.tgz","fileCount":25,"integrity":"sha512-c4B6FppEzEsUpxXPoZSpdiE7MlLsqu6mRUMTJec52eEjg3Y51VU5qwGn+FkMUhCYk7QiPeR1rDogCByjUIrYnQ==","signatures":[{"sig":"MEQCIFsmsdcNhJDVfdodCJ/wWhSEf7wQ9gVSZxIVba5B341eAiB39+1XyQrPlCiub2jun2tW2Ev/JlEvEzueJqF8JW6QNA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36517},"main":"build/index.cjs.js","types":"build/index.d.ts","module":"build/index.esm.js","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"},"./react":{"types":"./build/react/index.d.ts","import":"./build/react/index.esm.js","require":"./build/react/index.cjs.js"},"./devtools":{"types":"./build/devtools/index.d.ts","import":"./build/devtools/index.esm.js","require":"./build/devtools/index.cjs.js"}},"gitHead":"15aaf962b42d8e847dc769f43d861a5ff37ab862","scripts":{"cb":"npm run clean && npm run build","build":"rollup -c","clean":"rimraf build","prepublishOnly":"npm run cb"},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"repository":{"url":"git+https://github.com/delpikye-v/logic-runtime-react.git","type":"git"},"_npmVersion":"11.6.2","description":"Intent-first runtime for React. No hooks. Deterministic state. Orchestrated effects.","directories":{},"sideEffects":false,"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"react":"^18.2.0","tslib":"^2.6.2","rimraf":"^5.0.5","rollup":"^4.9.6","react-dom":"^18.2.0","typescript":"^5.3.3","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^25.0.0","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/logic-runtime-react-z_2.0.0-z_1768763989062_0.13633202498339703","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"logic-runtime-react-z","version":"2.0.1","keywords":["react","react-no-hook","external-store","intent-runtime","logic-runtime","computed-state","no-hooks","react-architecture","external-runtime"],"author":{"name":"Delpi.Kye"},"license":"MIT","_id":"logic-runtime-react-z@2.0.1","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"dist":{"shasum":"29cc2446bd587353c297d1d78335b3d3cd1e16bc","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-2.0.1.tgz","fileCount":25,"integrity":"sha512-1FOcs/GoEup12dZidg4/Gr3O3EIvVqLA+BGbYuHH0mT+EOIzDtegRZzvk4ebO8ShlDBFsWl5c6VUCl1bQ5ikxQ==","signatures":[{"sig":"MEUCICkWAdtsr3UVY2M1ac1gmHihhoBf3Ifa6PaRN4SbFOGGAiEAgDRK2UhN1BxVY+s+3bu2r2zNrIOa69MmaoqtF2Vf0vA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":37572},"main":"build/index.cjs.js","types":"build/index.d.ts","module":"build/index.esm.js","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"},"./react":{"types":"./build/react/index.d.ts","import":"./build/react/index.esm.js","require":"./build/react/index.cjs.js"},"./devtools":{"types":"./build/devtools/index.d.ts","import":"./build/devtools/index.esm.js","require":"./build/devtools/index.cjs.js"}},"gitHead":"5765d2552d4319c63c7f0b302ff34823ad8cf16e","scripts":{"cb":"npm run clean && npm run build","build":"rollup -c","clean":"rimraf build","prepublishOnly":"npm run cb"},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"repository":{"url":"git+https://github.com/delpikye-v/logic-runtime-react.git","type":"git"},"_npmVersion":"11.6.2","description":"Intent-first runtime for React. No hooks. Deterministic state. Orchestrated effects.","directories":{},"sideEffects":false,"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","tslib":"^2.6.2","rimraf":"^5.0.5","rollup":"^4.9.6","react-dom":"^18.2.0","typescript":"^5.3.3","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^25.0.0","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/logic-runtime-react-z_2.0.1_1768764323324_0.38365041929675514","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"logic-runtime-react-z","version":"2.0.2","keywords":["react","react-no-hook","external-store","intent-runtime","logic-runtime","computed-state","no-hooks","react-architecture","external-runtime"],"author":{"name":"Delpi.Kye"},"license":"MIT","_id":"logic-runtime-react-z@2.0.2","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"dist":{"shasum":"fa62d554c0c8dcfacb6bbad5c9483bae2f427481","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-2.0.2.tgz","fileCount":25,"integrity":"sha512-Y0Hf10LFOTuGxmeVt79De42By1JG6ECbxO0vTYnnoSsPGOnUuA9GZo+0lTm8shQMMpB2MYtalOcgaRglTbgPZA==","signatures":[{"sig":"MEYCIQDUUQfI5YnoAPjRvIjDBjlTVLKtZsp2n9S9tfr70fLwBgIhAKcq0jMjcOTgP0x2ZK+ylajEPEkoH5bh6WVEtMEg45UI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36515},"main":"build/index.cjs.js","types":"build/index.d.ts","module":"build/index.esm.js","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"},"./react":{"types":"./build/react/index.d.ts","import":"./build/react/index.esm.js","require":"./build/react/index.cjs.js"},"./devtools":{"types":"./build/devtools/index.d.ts","import":"./build/devtools/index.esm.js","require":"./build/devtools/index.cjs.js"}},"gitHead":"5765d2552d4319c63c7f0b302ff34823ad8cf16e","scripts":{"cb":"npm run clean && npm run build","build":"rollup -c","clean":"rimraf build","prepublishOnly":"npm run cb"},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"repository":{"url":"git+https://github.com/delpikye-v/logic-runtime-react.git","type":"git"},"_npmVersion":"11.6.2","description":"Intent-first runtime for React. No hooks. Deterministic state. Orchestrated effects.","directories":{},"sideEffects":false,"_nodeVersion":"25.1.0","_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","tslib":"^2.6.2","rimraf":"^5.0.5","rollup":"^4.9.6","react-dom":"^18.2.0","typescript":"^5.3.3","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^25.0.0","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/logic-runtime-react-z_2.0.2_1768764507629_0.3882749539784731","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"logic-runtime-react-z","version":"3.0.0","keywords":["intent-first","intent-runtime","business-logic","logic-runtime","headless","backend-friendly","ui-agnostic","react","react-architecture","no-hooks","external-store","computed-state","derived-state","async-effects","takeLatest","state-management"],"author":{"name":"Delpi.Kye"},"license":"MIT","_id":"logic-runtime-react-z@3.0.0","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"dist":{"shasum":"130468fce4834be92f03dab875e5362410ef0f70","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-3.0.0.tgz","fileCount":24,"integrity":"sha512-asAv+evqL/cPZ5iqFH58PyCjZ8gNuKFN4fPLHacWcsTHhSvivd5sR7kFzE+HocVqM1AWPkF6GbEDt1rwKpTl9Q==","signatures":[{"sig":"MEYCIQDG4YGkAPHqOou5244qems+lhf0eH+JbFp0n1buxhTx7wIhAL/SLUcJcVGtX//Pp6g8efWRaqzbBQ8Ju2dKuojtf2m3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32823},"main":"build/index.cjs.js","types":"build/index.d.ts","module":"build/index.esm.js","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"},"./react":{"types":"./build/react/index.d.ts","import":"./build/react/index.esm.js","require":"./build/react/index.cjs.js"},"./devtools":{"types":"./build/devtools/index.d.ts","import":"./build/devtools/index.esm.js","require":"./build/devtools/index.cjs.js"}},"gitHead":"03329c3dfbf3d7727d7530ac40ea882af7a52d04","scripts":{"cb":"npm run clean && npm run build","build":"rollup -c","clean":"rimraf build","prepublishOnly":"npm run cb"},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"repository":{"url":"git+https://github.com/delpikye-v/logic-runtime-react.git","type":"git"},"_npmVersion":"11.6.2","description":"Intent-first business logic runtime. Headless and backend-friendly. Deterministic state, computed graph, and orchestrated async effects. React is just a view layer.","directories":{},"sideEffects":false,"_nodeVersion":"25.1.0","dependencies":{"chrono-state-z":"^2.0.1","intentx-core-z":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","tslib":"^2.6.2","rimraf":"^5.0.5","rollup":"^4.9.6","react-dom":"^18.2.0","typescript":"^5.3.3","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^25.0.0","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/logic-runtime-react-z_3.0.0_1769110833432_0.6462619575109776","host":"s3://npm-registry-packages-npm-production"}},"3.1.0":{"name":"logic-runtime-react-z","version":"3.1.0","keywords":["intent-first","intent-runtime","business-logic","logic-runtime","headless","backend-friendly","ui-agnostic","react","react-architecture","no-hooks","external-store","computed-state","derived-state","async-effects","takeLatest","state-management"],"author":{"name":"Delpi.Kye"},"license":"MIT","_id":"logic-runtime-react-z@3.1.0","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"dist":{"shasum":"a491e27a8bd0861e9a01c3c67c0dd166f29c2d74","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-3.1.0.tgz","fileCount":23,"integrity":"sha512-vG5/c1j+7TsBc7c6g1BHwWctDRkqIpx5/yYIWEBejpfZlyGeeXAePPHXEVPckgQPkcAECZEkUqof3hj8zCt+WQ==","signatures":[{"sig":"MEUCIENk47zYwENO67dvhSodwcx3u1htx3h8kbKuwE0ZLM/kAiEAjaBElMRTSFBgGPYky+VwXHzstFgZ8a56YwlYNFv+x30=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34399},"main":"build/index.cjs.js","types":"build/index.d.ts","module":"build/index.esm.js","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"},"./react":{"types":"./build/react/index.d.ts","import":"./build/react/index.esm.js","require":"./build/react/index.cjs.js"},"./devtools":{"types":"./build/devtools/index.d.ts","import":"./build/devtools/index.esm.js","require":"./build/devtools/index.cjs.js"}},"gitHead":"1195eab63f7f4e43060deaeed28853bb94cd8b9e","scripts":{"cb":"npm run clean && npm run build","build":"rollup -c","clean":"rimraf build","prepublishOnly":"npm run cb"},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"repository":{"url":"git+https://github.com/delpikye-v/logic-runtime-react.git","type":"git"},"_npmVersion":"10.8.2","description":"Intent-first business logic runtime. Headless and backend-friendly. Deterministic state, computed graph, and orchestrated async effects. React is just a view layer.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","dependencies":{"chrono-state-z":"^2.1.0","intentx-core-z":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","tslib":"^2.6.2","rimraf":"^5.0.5","rollup":"^4.9.6","react-dom":"^18.2.0","typescript":"^5.3.3","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^25.0.0","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/logic-runtime-react-z_3.1.0_1769253055484_0.2344533059972298","host":"s3://npm-registry-packages-npm-production"}},"3.1.1":{"name":"logic-runtime-react-z","version":"3.1.1","keywords":["intent-first","intent-runtime","business-logic","logic-runtime","headless","backend-friendly","ui-agnostic","react","react-architecture","no-hooks","external-store","computed-state","derived-state","async-effects","takeLatest","state-management"],"author":{"name":"Delpi.Kye"},"license":"MIT","_id":"logic-runtime-react-z@3.1.1","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"dist":{"shasum":"491a57cfd27013efb9373b04a1e2910ca3fde1a5","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-3.1.1.tgz","fileCount":25,"integrity":"sha512-hpLtbCuR478mGVuPkVPO7iciLMGFDIi52AxuVTpeHwlrVUf4M5KNWUAQc7ZRlqgrymil5TgrygNcixNJt9dWBg==","signatures":[{"sig":"MEUCIAFhKgsTSfiL2EFG+cz+wS3td+1hsy5uATrCn6v5QlC3AiEA+47ahYl3U/x7Dk2Ez82dw0JDThjTdreAHaRCRD61i8g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39768},"main":"build/index.cjs.js","types":"build/index.d.ts","module":"build/index.esm.js","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"},"./react":{"types":"./build/react/index.d.ts","import":"./build/react/index.esm.js","require":"./build/react/index.cjs.js"},"./devtools":{"types":"./build/devtools/index.d.ts","import":"./build/devtools/index.esm.js","require":"./build/devtools/index.cjs.js"}},"gitHead":"10db384b4f0dc653590224eae499478c737d234f","scripts":{"cb":"npm run clean && npm run build","build":"rollup -c","clean":"rimraf build","prepublishOnly":"npm run cb"},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"repository":{"url":"git+https://github.com/delpikye-v/logic-runtime-react.git","type":"git"},"_npmVersion":"11.6.2","description":"Intent-first business logic runtime. Headless and backend-friendly. Deterministic state, computed graph, and orchestrated async effects. React is just a view layer.","directories":{},"sideEffects":false,"_nodeVersion":"25.1.0","dependencies":{"chrono-state-z":"^2.1.0","intentx-core-z":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","tslib":"^2.6.2","rimraf":"^5.0.5","rollup":"^4.9.6","react-dom":"^18.2.0","typescript":"^5.3.3","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^25.0.0","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/logic-runtime-react-z_3.1.1_1769585525354_0.6561394708422126","host":"s3://npm-registry-packages-npm-production"}},"3.1.2":{"name":"logic-runtime-react-z","version":"3.1.2","keywords":["intent-first","intent-runtime","business-logic","logic-runtime","headless","backend-friendly","ui-agnostic","react","react-architecture","no-hooks","external-store","computed-state","derived-state","async-effects","takeLatest","state-management"],"author":{"name":"Delpi.Kye"},"license":"MIT","_id":"logic-runtime-react-z@3.1.2","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"dist":{"shasum":"1087284dd32bb9ea5fbfbf14a04160dc22acc9d5","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-3.1.2.tgz","fileCount":25,"integrity":"sha512-H9WD4eZbZYPPmrAhQKzxEguHgTIAX7lh0hwKe0isyKBYIeBuEn29qNFGzxKhqR3INKVRSe5Apvx/RqnVu4TaVA==","signatures":[{"sig":"MEUCIF0TPELQ8EdQoYYPKPjXTZFilJHkxWQ+tBz+ao0n2YmrAiEAlLHtAoxtvAHuky3SFcFrD46thHzHcTl95mIzvvZwVQE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42965},"main":"build/index.cjs.js","types":"build/index.d.ts","module":"build/index.esm.js","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"},"./react":{"types":"./build/react/index.d.ts","import":"./build/react/index.esm.js","require":"./build/react/index.cjs.js"},"./devtools":{"types":"./build/devtools/index.d.ts","import":"./build/devtools/index.esm.js","require":"./build/devtools/index.cjs.js"}},"gitHead":"10db384b4f0dc653590224eae499478c737d234f","scripts":{"cb":"npm run clean && npm run build","build":"rollup -c","clean":"rimraf build","prepublishOnly":"npm run cb"},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"repository":{"url":"git+https://github.com/delpikye-v/logic-runtime-react.git","type":"git"},"_npmVersion":"11.6.2","description":"Intent-first business logic runtime. Deterministic, headless, and framework-agnostic.","directories":{},"sideEffects":false,"_nodeVersion":"25.1.0","dependencies":{"chrono-state-z":"^2.1.0","intentx-core-z":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","tslib":"^2.6.2","rimraf":"^5.0.5","rollup":"^4.9.6","react-dom":"^18.2.0","typescript":"^5.3.3","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^25.0.0","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/logic-runtime-react-z_3.1.2_1771001448263_0.19269214989932526","host":"s3://npm-registry-packages-npm-production"}},"3.1.3":{"name":"logic-runtime-react-z","version":"3.1.3","keywords":["intent-first","intent-runtime","business-logic","logic-runtime","headless","backend-friendly","ui-agnostic","react","react-architecture","no-hooks","external-store","computed-state","derived-state","async-effects","takeLatest","state-management"],"author":{"name":"Delpi.Kye"},"license":"MIT","_id":"logic-runtime-react-z@3.1.3","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"dist":{"shasum":"6536269efcd56cd48c6b144866e9fb90b72530fb","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-3.1.3.tgz","fileCount":20,"integrity":"sha512-6+4/Rsy5NG/UYeTtB+3JcMqgV34G+8zG91mf/Yue+NWm/C1cIBtwR/DPVvnTaZAKAQZkMGxppLblDP09sKfO4Q==","signatures":[{"sig":"MEYCIQDRw2w+8pzGTvX5ShWxVj3lhpfcSBeDGY2sysTlKfbM5AIhAOr4WW8j7v3TX2VaPMtdpjDCuUKa4jnEzS6KrVjMpMJy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35865},"main":"build/index.cjs.js","types":"build/index.d.ts","module":"build/index.esm.js","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"}},"gitHead":"366048a636c73f89e288db0a9db091f76b54237a","scripts":{"cb":"npm run clean && npm run build","build":"rollup -c","clean":"rimraf build","prepublishOnly":"npm run cb"},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"repository":{"url":"git+https://github.com/delpikye-v/logic-runtime-react.git","type":"git"},"_npmVersion":"11.6.2","description":"Intent-first business logic runtime. Deterministic, headless, and framework-agnostic.","directories":{},"sideEffects":false,"_nodeVersion":"25.1.0","dependencies":{"chrono-state-z":"^2.1.0","intentx-core-z":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","tslib":"^2.6.2","rimraf":"^5.0.5","rollup":"^4.9.6","react-dom":"^18.2.0","typescript":"^5.3.3","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^25.0.0","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/logic-runtime-react-z_3.1.3_1771343113960_0.25584921967479923","host":"s3://npm-registry-packages-npm-production"}},"3.1.4":{"name":"logic-runtime-react-z","version":"3.1.4","keywords":["intent-first","intent-runtime","business-logic","logic-runtime","headless","backend-friendly","ui-agnostic","react","react-architecture","no-hooks","external-store","computed-state","derived-state","async-effects","takeLatest","state-management"],"author":{"name":"Delpi.Kye"},"license":"MIT","_id":"logic-runtime-react-z@3.1.4","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"dist":{"shasum":"e78662b84f9e17a96e040c13c90b192af5852353","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-3.1.4.tgz","fileCount":20,"integrity":"sha512-RiPQu1ELOK3ij1rlo4vWSmNx2fu1Lwy22xNgZr8zdY3LSL45sS7GE9HOQBGvtlAWgeS8FEJ6PAS3LFGWwGUvVA==","signatures":[{"sig":"MEYCIQCRke6vap5+YNpG3VLf/O9jO3v6Tiqsp9u+tRSPLz74ugIhAKJRHx7wujzBVHllflU9vRrTu6jkpNfX+RE4A63/kzt1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36025},"main":"build/index.cjs.js","types":"build/index.d.ts","module":"build/index.esm.js","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"}},"gitHead":"8c21b88755f1a1b539725e4391bb61564d2fee9c","scripts":{"cb":"npm run clean && npm run build","build":"rollup -c","clean":"rimraf build","prepublishOnly":"npm run cb"},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"repository":{"url":"git+https://github.com/delpikye-v/logic-runtime-react.git","type":"git"},"_npmVersion":"11.6.2","description":"Intent-first business logic runtime. Deterministic, headless, and framework-agnostic.","directories":{},"sideEffects":false,"_nodeVersion":"25.1.0","dependencies":{"chrono-state-z":"^2.1.0","intentx-core-z":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","tslib":"^2.6.2","rimraf":"^5.0.5","rollup":"^4.9.6","react-dom":"^18.2.0","typescript":"^5.3.3","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^25.0.0","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/logic-runtime-react-z_3.1.4_1771344884394_0.19847862697551233","host":"s3://npm-registry-packages-npm-production"}},"3.1.5":{"name":"logic-runtime-react-z","version":"3.1.5","keywords":["intent-first","intent-runtime","business-logic","logic-runtime","headless","backend-friendly","ui-agnostic","react","react-architecture","no-hooks","external-store","computed-state","derived-state","async-effects","takeLatest","state-management"],"author":{"name":"Delpi.Kye"},"license":"MIT","_id":"logic-runtime-react-z@3.1.5","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"dist":{"shasum":"0a79d39e6004e69bdf0d95d5aca0516df2534ed6","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-3.1.5.tgz","fileCount":20,"integrity":"sha512-VfBZ7ngYLCfAdZTADfxPu3BbfbiHO8PcWSg6M+FEMPEy8jGx9cacHBHY5/Nnsftf4NSWkf0CG7brrPVjCsD63w==","signatures":[{"sig":"MEQCICnNfK+AGcpLKbwKGP16KKG62QhIcv4MG0WBX7MAhB03AiBxwk+E9T5OlVg6rkjqJmnvJR2vEMjPbiNEMy7vBDhYMg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36088},"main":"build/index.cjs.js","types":"build/index.d.ts","module":"build/index.esm.js","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"}},"gitHead":"c281d9cc228d99ab3e41634c913b2f122f63f740","scripts":{"cb":"npm run clean && npm run build","build":"rollup -c","clean":"rimraf build","prepublishOnly":"npm run cb"},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"repository":{"url":"git+https://github.com/delpikye-v/logic-runtime-react.git","type":"git"},"_npmVersion":"11.6.2","description":"Intent-first business logic runtime. Deterministic, headless, and framework-agnostic.","directories":{},"sideEffects":false,"_nodeVersion":"25.1.0","dependencies":{"chrono-state-z":"^2.1.0","intentx-core-z":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","tslib":"^2.6.2","rimraf":"^5.0.5","rollup":"^4.9.6","react-dom":"^18.2.0","typescript":"^5.3.3","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-commonjs":"^25.0.0","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^15.2.3","rollup-plugin-peer-deps-external":"^2.2.4"},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/logic-runtime-react-z_3.1.5_1771361665173_0.6057497886724901","host":"s3://npm-registry-packages-npm-production"}},"3.1.6":{"name":"logic-runtime-react-z","version":"3.1.6","description":"Intent-first business logic runtime. Deterministic, headless, and framework-agnostic.","license":"MIT","author":{"name":"Delpi.Kye"},"sideEffects":false,"main":"build/index.cjs.js","module":"build/index.esm.js","types":"build/index.d.ts","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.esm.js","require":"./build/index.cjs.js"}},"scripts":{"clean":"rimraf build","build":"rollup -c","cb":"npm run clean && npm run build","prepublishOnly":"npm run cb"},"repository":{"type":"git","url":"git+https://github.com/delpikye-v/logic-runtime-react.git"},"homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"keywords":["intent-first","intent-runtime","business-logic","logic-runtime","headless","backend-friendly","ui-agnostic","react","react-architecture","no-hooks","external-store","computed-state","derived-state","async-effects","takeLatest","state-management"],"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0"},"devDependencies":{"@rollup/plugin-commonjs":"^25.0.0","@rollup/plugin-node-resolve":"^15.2.3","@rollup/plugin-terser":"^0.4.4","@types/react":"^18.2.43","@types/react-dom":"^18.2.17","react":"^18.2.0","react-dom":"^18.2.0","rimraf":"^5.0.5","rollup":"^4.9.6","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-typescript2":"^0.36.0","tslib":"^2.6.2","typescript":"^5.3.3"},"dependencies":{"chrono-state-z":"^2.2.1","intentx-core-z":"^2.2.1"},"gitHead":"c281d9cc228d99ab3e41634c913b2f122f63f740","_id":"logic-runtime-react-z@3.1.6","_nodeVersion":"25.1.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-4yicGNAMrTkrzCkfHA/cedoGhi9HVl8FWEQC42WBKE3rBhwQAHftvJTK4MgOGhJhkBNCfvtP2td0GiDYGWC7zA==","shasum":"8b43da6de39fa8e5604eaa8974f6865dbb5ff2fb","tarball":"https://registry.npmjs.org/logic-runtime-react-z/-/logic-runtime-react-z-3.1.6.tgz","fileCount":20,"unpackedSize":36606,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC7jS1F3bB8yPJfRVek1BSbO2r7hErg6W3I/wn5eZ3aygIhANpLrL5HvMdAbojcQALY+4eOVu4RHOxGW4VFYpLsJX4O"}]},"_npmUser":{"name":"delpikye","email":"tungvu.it@gmail.com"},"directories":{},"maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/logic-runtime-react-z_3.1.6_1771718314861_0.6036047637511348"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-14T11:49:29.643Z","modified":"2026-02-21T23:58:35.098Z","0.1.0":"2026-01-14T11:49:29.773Z","0.1.1":"2026-01-14T19:59:37.131Z","0.1.2":"2026-01-14T20:00:08.236Z","0.2.0":"2026-01-14T20:00:25.593Z","0.2.1":"2026-01-14T20:00:45.896Z","0.2.2":"2026-01-14T20:01:02.463Z","0.2.3":"2026-01-14T20:01:24.762Z","0.2.4":"2026-01-14T20:01:41.881Z","0.2.5":"2026-01-14T20:01:58.945Z","0.2.6":"2026-01-14T20:02:18.651Z","0.2.7":"2026-01-14T20:02:34.973Z","0.2.8":"2026-01-14T20:02:51.584Z","0.2.9":"2026-01-14T20:03:06.893Z","0.2.10":"2026-01-14T20:03:42.504Z","0.2.11":"2026-01-14T20:03:54.664Z","0.2.12":"2026-01-14T20:04:19.532Z","0.2.13":"2026-01-14T20:04:38.507Z","0.2.14":"2026-01-14T20:04:53.827Z","0.2.15":"2026-01-14T20:05:10.174Z","0.2.16":"2026-01-14T20:05:46.406Z","0.2.17":"2026-01-14T20:06:05.210Z","0.2.18":"2026-01-14T20:06:23.894Z","0.2.19":"2026-01-14T20:06:40.647Z","0.3.0":"2026-01-14T20:07:33.304Z","0.3.1":"2026-01-14T20:07:52.219Z","1.0.0":"2026-01-14T20:08:08.367Z","1.0.1":"2026-01-15T03:38:26.013Z","2.0.0":"2026-01-15T18:48:34.360Z","1.1.0":"2026-01-15T18:54:50.951Z","2.0.0-z":"2026-01-18T19:19:49.224Z","2.0.1":"2026-01-18T19:25:23.464Z","2.0.2":"2026-01-18T19:28:27.800Z","3.0.0":"2026-01-22T19:40:33.626Z","3.1.0":"2026-01-24T11:10:55.626Z","3.1.1":"2026-01-28T07:32:05.499Z","3.1.2":"2026-02-13T16:50:48.407Z","3.1.3":"2026-02-17T15:45:14.168Z","3.1.4":"2026-02-17T16:14:44.568Z","3.1.5":"2026-02-17T20:54:25.349Z","3.1.6":"2026-02-21T23:58:35.001Z"},"bugs":{"url":"https://github.com/delpikye-v/logic-runtime-react/issues"},"author":{"name":"Delpi.Kye"},"license":"MIT","homepage":"https://github.com/delpikye-v/logic-runtime-react#readme","keywords":["intent-first","intent-runtime","business-logic","logic-runtime","headless","backend-friendly","ui-agnostic","react","react-architecture","no-hooks","external-store","computed-state","derived-state","async-effects","takeLatest","state-management"],"repository":{"type":"git","url":"git+https://github.com/delpikye-v/logic-runtime-react.git"},"description":"Intent-first business logic runtime. Deterministic, headless, and framework-agnostic.","maintainers":[{"name":"delpikye","email":"tungvu.it@gmail.com"}],"readme":"# 🧩 logic-runtime-react-z\n\n[![NPM](https://img.shields.io/npm/v/logic-runtime-react-z.svg)](https://www.npmjs.com/package/logic-runtime-react-z) ![Downloads](https://img.shields.io/npm/dt/logic-runtime-react-z.svg)\n\n<a href=\"https://codesandbox.io/p/sandbox/jnd992\" target=\"_blank\">LIVE EXAMPLE</a>\n\n**Intent-First Business Logic Runtime.**. React is a view layer. Business logic lives elsewhere.  \n\nA headless, deterministic, intent-driven runtime for frontend and backend systems.  \n\n> **Intent is the only entry point. Logic is deterministic.**\n> **React is optional** — `createLogic` is the product; everything else is an adapter.\n\n---\n\n## ✨ Why logic-runtime-react-z?\n\n- No business logic in React components\n- Intent is the *only* entry point\n- Predictable async flows\n- Reactive computed graph with caching\n- Headless & backend-friendly\n- Deterministic testing & devtools replay\n\n---\n\n## 🧠 Mental Model\n\n```\nUI / HTTP / Queue / Cron\n        ↓\n     emit(intent)\n        ↓\n   effects / middleware\n        ↓\n   intent handlers\n        ↓\n     mutate state\n        ↓\n computed (derived state) / subscribers\n```\n\nThink **events → behavior → state → derived state**.\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install logic-runtime-react-z\n```\n\n---\n\n## 🚀 Quick Start (Headless)\n\n```ts\nimport { createLogic } from \"logic-runtime-react-z\"\n\nconst counterLogic = createLogic({\n  state: { count: 0, loading: false },\n\n  intents: bus => {\n    bus.on(\"inc\", ({ setState }) => {\n      setState(s => {\n        s.count++\n      })\n    })\n\n    bus.on<number>(\"add\", ({ payload, setState }) => {\n      setState(s => {\n        s.count += payload\n      })\n    })\n\n    bus.on(\"dec\", ({ setState }) => {\n      setState(s => {\n        s.count--\n      })\n    })\n\n    bus.on(\"asyncInc\", async ({ setState }) => {\n      setState(s => { s.loading = true })\n\n      await new Promise(r => setTimeout(r, 1000))\n\n      setState(s => {\n        s.count++\n        s.loading = false\n      })\n    })\n  },\n  actions: {\n    add({ emit }) {\n      return (n: number) => emit(\"add\", n)\n    }\n  },\n})\n\nasync function main() {\n  const runtime = counterLogic.create()\n\n  await runtime.emit(\"inc\")\n  await runtime.emit(\"add\", 5)\n\n  console.log(runtime.state.count)\n}\n\nmain()\n```\n\n✔ No UI\n✔ Fully testable\n✔ Deterministic\n\n> 💡 This is the core usage.\n> createLogic() + runtime.emit() already gives you state, computed and effects.\n> React integration is just a convenience layer on top of this runtime.\n\n---\n\n## 🧠 Computed State\n\n```ts\ncomputed: {\n  double: ({ state }) => state.count * 2,\n  triple: ({ state }) => state.count * 3,\n}\n```\n\n- `state` inside `computed` is **reactive**.\n- Reading `state.count` automatically tracks dependencies.\n\n---\n\n## ⚛️ React Integration\n\nReact is a thin adapter.\n\nYou have **2 integration styles**:\n\n- `withLogic` → Recommended\n- `useLogic` → Direct hook usage\n\n#### 🧩 Option 1 — withLogic (Recommended)\n\nKeeps view pure and declarative.\n\n```tsx\n// full see: LIVE EXAMPLE\nimport { withLogic, LogicViewProps } from \"logic-runtime-react-z\"\nimport { counterLogic } from \"./counter.logic\"\n\ninterface MyProps {}\n\ntype CounterInjected =\n  LogicViewProps<typeof counterLogic> & MyProps\n\nconst CounterView = ({ state, actions, emit }: LogicViewProps) => {\n  // actions and emit => same emit (update state)\n  return (\n    <div>\n      <h2>Count: {state.count}</h2>\n      <p>Double: {state.double}</p>\n      <p>Triple: {state.triple}</p>\n\n      <button onClick={() => emit(\"inc\")}>+</button>\n      <button onClick={() => emit(\"dec\")}>-</button>\n      <button onClick={() => actions.add(10)}>+10 (action)</button>\n      <button onClick={() => emit(\"asyncInc\")}>\n        {state.loading ? \"Loading...\" : \"Async +\"}\n      </button>\n    </div>\n  )\n}\n\n// export default withLogic(counterLogic)(CounterView)\nexport const CounterPage = withLogic(counterLogic, CounterView)\n```\n\n<b> Why this is recommended?</b>\n\n- View is fully testable\n- No hooks inside view\n- Logic can be reused outside React\n- Clear separation of concerns\n\n---\n\n#### 🪝 Option 2 — useLogic\n\nUse directly inside a component.\n\n```tsx\nimport { useLogic } from \"logic-runtime-react-z\"\nimport { counterLogic } from \"./counter.logic\"\n\nexport function Counter() {\n  const { state, actions, emit } = useLogic(counterLogic)\n\n  return (\n    <div>\n      <h2>Count: {state.count}</h2>\n      <p>Double: {state.double}</p>\n      <p>Triple: {state.triple}</p>\n\n      <button onClick={() => emit(\"inc\")}>+</button>\n      <button onClick={() => emit(\"dec\")}>-</button>\n      <button onClick={() => emit(\"asyncInc\")}>\n        {state.loading ? \"Loading...\" : \"Async +\"}\n      </button>\n    </div>\n  )\n}\n```\n\n✔ Props are inferred when using useLogic, no manual generics required.\n\n---\n\n## 🌊 Async Support\n\nAsync logic is just another intent.\n\n```ts\nbus.on(\"fetchUser\", async ({ setState }) => {\n  setState(s => { s.loading = true })\n\n  const data = await api.getUser()\n\n  setState(s => {\n    s.user = data\n    s.loading = false\n  })\n})\n```\n\nNo special async API needed.\n\n---\n\n\n## 🧪 Backend Usage (Same Runtime)\n\n```ts\nimport { createLogic } from \"logic-runtime-react-z\"\n\nconst authLogic = createLogic({\n  state: {\n    user: null,\n    loading: false,\n  },\n\n  intents: bus => {\n    bus.on(\"login\", async ({ setState }) => {\n      setState(s => {\n        s.loading = true\n      })\n\n      await new Promise(r => setTimeout(r, 500))\n\n      setState(s => {\n        s.user = { name: \"Alice\" }\n        s.loading = false\n      })\n    })\n\n    bus.on(\"logout\", ({ setState }) => {\n      setState(s => {\n        s.user = null\n      })\n    })\n  },\n})\n\nasync function run() {\n  const runtime = authLogic.create()\n\n  await runtime.emit(\"login\")\n  await runtime.emit(\"logout\")\n\n  console.log(runtime.state)\n}\n\nrun()\n```\n\n✔ Same runtime, same behavior.  \n✔ No React dependency   \n✔ Replayable execution   \n\n---\n\n\n## 🧪 Unit Test Example\n\n```ts\nconst logic = createLogic({\n  state: { value: 0 },\n\n  computed: {\n    squared: ({ state }) => state.value * state.value,\n  },\n\n  intents: bus => {\n    bus.on(\"set\", ({ payload, setState }) => {\n      setState(s => {\n        s.value = payload\n      })\n    })\n  },\n})\n\nconst runtime = logic.create()\n\nawait runtime.emit(\"set\", 4)\nexpect(runtime.state.squared).toBe(16)\n```\n\n---\n\n## 🔍 Comparison\n\nThis is not about “better” — it's about architectural intent.\n\n| Criteria                        | logic-runtime-react-z        | Redux Toolkit        | Zustand        | Recoil        | MobX           |\n|---------------------------------|------------------------------|----------------------|----------------|---------------|----------------|\n| **Primary abstraction**         | Intent runtime               | Reducer store        | Store          | Atom graph    | Observable     |\n| **Mental model**                | Intent → Behavior → State    | Action → Reducer     | Mutate store   | Atom graph    | Reactive graph |\n| **Single mutation entry**       | ✅                           | ✅                   | ❌             | ❌             | ❌             |\n| **Business logic isolation**    | ✅                           | ✅                   | ⚠️             | ⚠️             | ⚠️             |\n| **Built-in async orchestration**| ✅                           | ⚠️                   | ❌             | ❌             | ❌             |\n| **Deterministic execution**     | ✅                           | ✅                   | ⚠️             | ⚠️             | ⚠️             |\n| **Derived state built-in**      | ✅                           | ❌                   | ⚠️             | ✅             | ✅             |\n| **Headless runtime**            | ✅                           | ⚠️                   | ⚠️             | ❌             | ⚠️             |\n| **Backend / worker ready**      | ✅                           | ⚠️                   | ⚠️             | ❌             | ❌             |\n| **Side-effect centralization**  | ✅                           | ⚠️                   | ❌             | ❌             | ⚠️             |\n| **Devtools maturity**           | ⚠️                           | ✅                   | ⚠️             | ⚠️             | ⚠️             |\n\n\n<br />\n\n✅ Built-in / first-class  \n⚠️ Possible / usage-dependent  \n❌ Not built-in\n\n---\n\n### 🧠 Architectural Difference\n\nMost state libraries focus on:\n\n> **How state is stored and updated**\n\n`logic-runtime-react-z` focuses on:\n\n> **How behavior is orchestrated through intents**\n\nRedux/Zustand:\n> \"Where is my state and how do I change it?\"\n\nThis runtime:\n> \"What behavior is triggered by this event, and how should it execute?\"\n\n---\n\n### 🧭 Positioning Summary\n\n- Redux → Structured state container\n- Zustand → Lightweight mutable store\n- Recoil → Declarative dependency graph\n- MobX → Reactive observable system\n- **logic-runtime-react-z → Intent-first behavior runtime**\n\n---\n\n### 🎯 When This Makes Sense\n\nChoose this if you need:\n\n- Complex async flows\n- Deterministic replayable behavior\n- Logic shared between frontend & backend\n- Strong separation between UI and domain behavior\n- An explicit event-driven boundary\n\nChoose simpler state tools if:\n\n- You mostly manage UI state\n- You don’t need orchestration\n- Your async flows are trivial\n- Your team prefers mutable patterns\n\n---\n\n## 🧠 One-liner Takeaway\n\n- Redux & Zustand manage **state**\n- logic-runtime-react-z orchestrates **logic**\n\n---\n\n## 🧬 Deterministic Execution Model\n\n- Intents are processed sequentially\n- State mutations are isolated\n- Async effects can follow declared execution strategies.\n- Execution order is predictable\n\nGiven the same intent sequence, the resulting state is reproducible.\n\n---\n\n## 🔗 Multiple Logic Communication\n\n💡 Multiple logic instances should communicate through a shared event bus (e.g. eventbus-z) — not direct calls — to preserve intent boundaries and deterministic execution.\n\n---\n\n## 📐 Architecture Diagram (High-level)\n\n```bash\n┌─────────────┐\n│   React UI  │\n└──────┬──────┘\n       │ adapter\n┌──────▼──────┐\n│   Runtime   │\n│  (create)   │\n├─────────────┤\n│  Intent Bus │\n│  Effects    │\n│  Handlers   │\n│  State      │\n│  Computed   │\n└─────────────┘\n```\n\n<b>Runtime is the product. React is an adapter.</b>\n\n---\n\n## ⚠️ When Not to Use\n\n- Simple local component state\n- Small apps without async complexity\n- Teams unfamiliar with event-driven models\n\n---\n\n\n## License\n\nMIT\n","readmeFilename":"README.md"}