{"id":22533434,"url":"https://github.com/oknoorap/mobx-react-lite-context","last_synced_at":"2025-09-07T07:12:25.020Z","repository":{"id":57299658,"uuid":"192434236","full_name":"oknoorap/mobx-react-lite-context","owner":"oknoorap","description":"Simple MobX React Lite with Context + Hooks","archived":false,"fork":false,"pushed_at":"2019-06-21T08:13:40.000Z","size":14,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-18T03:06:54.088Z","etag":null,"topics":["mobx-react","react"],"latest_commit_sha":null,"homepage":"","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/oknoorap.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":"2019-06-18T00:01:57.000Z","updated_at":"2024-09-05T16:23:39.000Z","dependencies_parsed_at":"2022-08-26T20:24:43.756Z","dependency_job_id":null,"html_url":"https://github.com/oknoorap/mobx-react-lite-context","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oknoorap/mobx-react-lite-context","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oknoorap%2Fmobx-react-lite-context","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oknoorap%2Fmobx-react-lite-context/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oknoorap%2Fmobx-react-lite-context/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oknoorap%2Fmobx-react-lite-context/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oknoorap","download_url":"https://codeload.github.com/oknoorap/mobx-react-lite-context/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oknoorap%2Fmobx-react-lite-context/sbom","scorecard":{"id":704132,"data":{"date":"2025-08-11","repo":{"name":"github.com/oknoorap/mobx-react-lite-context","commit":"2a4869627482875f5ed2840a0bfbdfd0d24da60f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T06:00:00.765Z","repository_id":57299658,"created_at":"2025-08-22T06:00:00.766Z","updated_at":"2025-08-22T06:00:00.766Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274006542,"owners_count":25206166,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"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":["mobx-react","react"],"created_at":"2024-12-07T09:08:18.045Z","updated_at":"2025-09-07T07:12:24.973Z","avatar_url":"https://github.com/oknoorap.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eMobX React Lite Context\u003c/h1\u003e\n\u003cp\u003e\n  \u003cimg src=\"https://img.shields.io/badge/version-0.1.0-blue.svg?cacheSeconds=2592000\" /\u003e\n  \u003ca href=\"https://twitter.com/oknoorap\"\u003e\n    \u003cimg alt=\"Twitter: oknoorap\" src=\"https://img.shields.io/twitter/follow/oknoorap.svg?style=social\" target=\"_blank\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e Simple MobX React Lite with Context\n\n## Install\n\n```sh\n# yarn\nyarn add mobx mobx-react-lite mobx-react-lite-context\n\n# npm\nnpm install mobx mobx-react-lite mobx-react-lite-context --save\n```\n\n## Example\nMore example via [codesandbox.io](https://codesandbox.io/s/mobx-react-lite-context-3iwcu)\n\n```tsx\n// index.tsx\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport Page from './page'\nimport Store from './store'\n\nconst App = () =\u003e {\n  return (\n    \u003cStore.Provider\u003e\n      \u003cPage /\u003e\n    \u003c/Store.Provider\u003e\n  );\n};\n\nReactDOM.render(\u003cApp /\u003e, document.getElementById(\"root\"));\n\n// page.tsx\nimport React from 'react'\nimport Store, { IStore } from './store'\n\nexport default () =\u003e {\n  const { counter }: IStore = useStore\u003cIStore\u003e()\n\n  return (\n    \u003cStore.Consumer\u003e\n      \u003cbutton onClick={() =\u003e counter.add()}\u003eIncrement {counter.value}\u003c/button\u003e\n    \u003c/Store.Consumer\u003e\n  )\n}\n\n// store.ts\nimport { createContext } from \"mobx-react-lite-context\";\nimport Counter, { IStore as ICounterStore } from \"./counter\";\n\nexport interface IStore {\n  counter: ICounterStore;\n}\n\nexport default createContext\u003cIStore\u003e({\n  counter: new Counter()\n});\n\n\n// counter.ts\nimport { observable, action } from 'mobx'\n\ninterface IStore {\n  value: number;\n  add(): void;\n}\n\nexport default class Store implements IStore {\n  @observable value = 0;\n  @action add() {\n    this.value++;\n  }\n}\n```\n\n## 💰 Donate\nSend me ETH to this address `0xab1c4e446900ad20bf5fae1be67f87d54dacd2f0`\n\n## Author\n\n👤 **Ribhararnus Pracutian \u0026lt;oknoorap@gmail.com\u0026gt;**\n\n* Twitter: [@oknoorap](https://twitter.com/oknoorap)\n* Github: [@oknoorap](https://github.com/oknoorap)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/oknoorap/mobx-react-lite-context/issues).\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## License\nMIT © oknoorap\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foknoorap%2Fmobx-react-lite-context","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foknoorap%2Fmobx-react-lite-context","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foknoorap%2Fmobx-react-lite-context/lists"}