{"id":19065867,"url":"https://github.com/msolvaag/state-odb","last_synced_at":"2026-04-13T20:32:42.258Z","repository":{"id":57369918,"uuid":"123110082","full_name":"msolvaag/state-odb","owner":"msolvaag","description":"Normalizer and object relation manager for state based systems (redux/vuex)","archived":false,"fork":false,"pushed_at":"2018-03-19T09:05:32.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-24T05:21:34.698Z","etag":null,"topics":["db","normalize","redux","state","state-management","vuex"],"latest_commit_sha":null,"homepage":null,"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/msolvaag.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-27T10:04:18.000Z","updated_at":"2019-09-18T22:09:21.000Z","dependencies_parsed_at":"2022-09-09T16:40:08.116Z","dependency_job_id":null,"html_url":"https://github.com/msolvaag/state-odb","commit_stats":null,"previous_names":["msolvaag/state-db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/msolvaag/state-odb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msolvaag%2Fstate-odb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msolvaag%2Fstate-odb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msolvaag%2Fstate-odb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msolvaag%2Fstate-odb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msolvaag","download_url":"https://codeload.github.com/msolvaag/state-odb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msolvaag%2Fstate-odb/sbom","scorecard":{"id":665988,"data":{"date":"2025-08-11","repo":{"name":"github.com/msolvaag/state-odb","commit":"1517e06905a0435c5d2745d56fe11fd4a723864a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/5 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":"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":"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":"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"Vulnerabilities","score":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-8w4h-3cm3-2pm2","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq"],"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-21T18:03:21.694Z","repository_id":57369918,"created_at":"2025-08-21T18:03:21.694Z","updated_at":"2025-08-21T18:03:21.694Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31770720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["db","normalize","redux","state","state-management","vuex"],"created_at":"2024-11-09T00:53:25.811Z","updated_at":"2026-04-13T20:32:42.222Z","avatar_url":"https://github.com/msolvaag.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# state-odb\n[![NPM downloads](https://img.shields.io/npm/dm/state-odb.svg?style=flat-square)](https://www.npmjs.com/package/state-odb)\n[![NPM package](https://img.shields.io/npm/v/state-odb.svg?style=flat-square)](https://www.npmjs.com/package/state-odb)\n\nstate-odb provides a normalized state and easy object management.\n\n## Why\nHaving a normalized state is a good strategy if your data is nested in different ways. The redux documentation has a nice explanation [here](http://redux.js.org/docs/recipes/reducers/NormalizingStateShape.html).\nstate-odb is a port of the redux-db project with means to decouple the term redux from the logic it provides. state-odb is compatible with all single state controlled systems. ( vuex/redux/..).\n\n## How\n``` javascript\nimport db from \"./schema\";\n\nexport const dbReducer = db.combineReducers(\n    (session, action) =\u003e {\n        const { BlogPost, Comment, User } = session;\n\n        switch (action.type) {\n            case \"POSTS_FETCH_DONE\":\n            case \"POST_FETCH_DONE\":\n            case \"POST_UPDATE\":\n            case \"POST_INSERT\":\n                // all these actions may be handled using just one statement.\n                // the upsert method accepts both single objects and arrays.\n                // the payload is automatically normalized and related tables are also updated.\n\n                BlogPost.upsert(action.payload);\n                break;\n\n            case \"POST_DELETE\": {\n                const { id } = action.payload;\n                const post = BlogPost.get(id);\n\n                post.comments.delete(); // Could be skipped if cascading deletes are defined.\n                post.delete();\n\n                // or just, BlogPost.delete( id );\n                break;\n            }\n            case \"COMMENT_UPDATE\":\n            case \"COMMENT_INSERT\": {\n                // assuming payload contains {id,post,author}\n                const { post } = action.payload;\n\n                BlogPost.get(post).comments.add(action.payload);\n                // or just, Comment.upsert(action.payload);\n                break;\n            }\n            case \"COMMENT_DELETE\": {\n                const { id } = action.payload;\n                Comment.delete(id);\n                break;\n            }\n        }\n    }\n);\n```\n\n## Contact / feedback\nFeel free to create issues and PR's.\n\n## Dependencies\n* none","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsolvaag%2Fstate-odb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsolvaag%2Fstate-odb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsolvaag%2Fstate-odb/lists"}