{"id":30091896,"url":"https://github.com/osedea/redux-persist-realm","last_synced_at":"2025-08-09T07:53:48.595Z","repository":{"id":57351197,"uuid":"100822828","full_name":"Osedea/redux-persist-realm","owner":"Osedea","description":"A Realmjs interface for redux-persist","archived":false,"fork":false,"pushed_at":"2020-02-01T04:25:26.000Z","size":3,"stargazers_count":39,"open_issues_count":4,"forks_count":17,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-30T05:23:36.510Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Osedea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-19T21:42:07.000Z","updated_at":"2022-04-27T09:39:33.000Z","dependencies_parsed_at":"2022-09-18T23:41:29.767Z","dependency_job_id":null,"html_url":"https://github.com/Osedea/redux-persist-realm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Osedea/redux-persist-realm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Osedea%2Fredux-persist-realm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Osedea%2Fredux-persist-realm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Osedea%2Fredux-persist-realm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Osedea%2Fredux-persist-realm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Osedea","download_url":"https://codeload.github.com/Osedea/redux-persist-realm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Osedea%2Fredux-persist-realm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269548490,"owners_count":24436109,"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-08-09T02:00:10.424Z","response_time":111,"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":"2025-08-09T07:53:47.794Z","updated_at":"2025-08-09T07:53:48.570Z","avatar_url":"https://github.com/Osedea.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redux-persist-realm\n\nA Realmjs interface for redux-persist\n\n## Dependencies\n\n- Realm : [Docs](https://realm.io/docs/javascript/latest/), [npm](https://www.npmjs.com/package/realm)\n- Redux-persist : [Docs](https://github.com/rt2zz/redux-persist), [npm](https://www.npmjs.com/package/redux-persist)\n\n## Installation\n\n### If you already have realm and redux-persist\n\n```\nnpm i --save redux-persist-realm\n# or\nyarn add redux-persist-realm\n```\n\n### Else\n\n```\nnpm i --save redux-persist realm redux-persist-realm\n# or\nyarn add redux-persist realm redux-persist-realm\nreact-native link realm\n```\n\n## Usage\n\n```diff\nimport {compose, applyMiddleware, createStore} from 'redux'\nimport {persistStore, autoRehydrate} from 'redux-persist'\n+ import realmPersistInterface from 'redux-persist-realm'\n\n// add `autoRehydrate` as an enhancer to your store (note: `autoRehydrate` is not a middleware)\nconst store = createStore(\n  reducer,\n  undefined,\n  compose(\n    applyMiddleware(...),\n    autoRehydrate()\n  )\n)\n\n+ const config = {\n+   storage: realmPersistInterface\n+ }\n\n// begin periodically persisting the store\n- persistStore(store)\n+ persistStore(store, config)\n```\n\nDon't hesitate to publish [Issues](https://github.com/Osedea/redux-persist-realm/issues) if you see something missing!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosedea%2Fredux-persist-realm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosedea%2Fredux-persist-realm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosedea%2Fredux-persist-realm/lists"}