{"id":45713447,"url":"https://github.com/turtleflyer/use-interstate","last_synced_at":"2026-02-25T03:15:27.410Z","repository":{"id":57388184,"uuid":"352918412","full_name":"turtleflyer/use-interstate","owner":"turtleflyer","description":"Simple and powerful state management solution for React","archived":false,"fork":false,"pushed_at":"2021-11-18T09:45:35.000Z","size":5146,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T14:13:19.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turtleflyer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SecurityNotes.md","support":null}},"created_at":"2021-03-30T08:00:12.000Z","updated_at":"2021-11-18T09:45:39.000Z","dependencies_parsed_at":"2022-08-29T14:32:13.293Z","dependency_job_id":null,"html_url":"https://github.com/turtleflyer/use-interstate","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/turtleflyer/use-interstate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtleflyer%2Fuse-interstate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtleflyer%2Fuse-interstate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtleflyer%2Fuse-interstate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtleflyer%2Fuse-interstate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turtleflyer","download_url":"https://codeload.github.com/turtleflyer/use-interstate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtleflyer%2Fuse-interstate/sbom","scorecard":{"id":902843,"data":{"date":"2025-08-18","repo":{"name":"github.com/turtleflyer/use-interstate","commit":"b86ccfb942458b5175f88e056c00f0186789ba6c"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: The Unlicense: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"17 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T16:18:16.233Z","repository_id":57388184,"created_at":"2025-08-24T16:18:16.233Z","updated_at":"2025-08-24T16:18:16.233Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29809286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T22:43:48.403Z","status":"online","status_checked_at":"2026-02-25T02:00:07.329Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-02-25T03:15:26.794Z","updated_at":"2026-02-25T03:15:27.400Z","avatar_url":"https://github.com/turtleflyer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use-interstate\n\n*use-interstate* is a state management library for *React*.\n\n![use-interstate](use-interstate.png)\n\n\u003e *:warning: The library is now at the beta stage. Any implementations in projects are welcome.\n\u003e Please feel free to share your experience with us\n\u003e ([turtlefly@gmail.com](mailto:turtlefly@gmail.com)).*\n\n## Highlights\n\n* The library does not have dependencies (polyfilled code depends on *@babel/runtime* to avoid\n  duplications).\n\n* It [ensures the\n  performance](https://github.com/turtleflyer/compare-react-state-management-solutions) to be at\n  least on the same level as the popular state management libraries for *React*, e. g. *Redux*, \n  *Recoil*.\n\n* It has a small size.\n\n* It is heavily tested (more than 40 tests performed on the source code as well as on bundled code).\n\n* It is written with the use of the standard React hooks only, thus ensuring better compatibility.\n\n* It is written in *TypeScript* and typed the way the error messages are [speaking the human\n  language](docs/UseWithTypeScript.md#error-messages) (💣💥🙈 *You will love it!*).\n\n* The logic of the *use-interstate* library is aligned and synchronized with the natural life cycles\n  of *React* components which make the use and feel similar to the standard *React* hook `useState`\n  .\n\n* It does not require having a *Context Provider* at the root of the component tree of an\n  application, thus ensuring [better security for\n  applications](docs/SecurityNotes.md#why-not-context-provider).\n\n* It is unopinionated and agnostic to application architecture, so one can use the library adopting\n  either redux-like paradigm with actions, reducers, and selectors, state machine, or use it simply\n  as an \"interstate\" variant of the standard `useState` hook which is great for prototyping and\n  creating proofs of concepts.\n\n* It is compatible with *Concurrent mode* of *React*.\n\n## Install\n\n```bash\nnpm i use-interstate\n```\n\n* [Use](docs/Use.md)\n  + [`initInterstate`](docs/Use.md#initinterstate)\n  + [`useInterstate`](docs/Use.md#useinterstate)\n  + [`readInterstate`](docs/Use.md#readinterstate)\n  + [`acceptSelector` method](docs/Use.md#acceptselector-method)\n  + [`setInterstate`](docs/Use.md#setinterstate)\n  + [`resetInterstate`](docs/Use.md#resetinterstate)\n  + [deps](docs/Use.md#deps)\n\n* [*use-interstate* and *TypeScript*](docs/UseWithTypeScript.md#use-interstate-and-typescript)\n  + [Error messages](docs/UseWithTypeScript.md#error-messages)\n  + [Dev types](docs/UseWithTypeScript.md#dev-types)\n* [Why not *Context Provider*](docs/SecurityNotes.md#why-not-context-provider)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturtleflyer%2Fuse-interstate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturtleflyer%2Fuse-interstate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturtleflyer%2Fuse-interstate/lists"}