{"id":4727,"url":"https://github.com/pervasync/react-native-sync","last_synced_at":"2026-04-05T07:02:37.944Z","repository":{"id":30672409,"uuid":"125666175","full_name":"pervasync/react-native-sync","owner":"pervasync","description":"Two way, incremental sync between React Native realmjs database and MySQL, Oracle, MS SQL Server and PostgreSQL ","archived":false,"fork":false,"pushed_at":"2023-03-05T22:56:14.000Z","size":241,"stargazers_count":58,"open_issues_count":6,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-30T00:52:06.445Z","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/pervasync.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-03-17T20:23:26.000Z","updated_at":"2023-12-30T09:55:44.000Z","dependencies_parsed_at":"2024-01-02T22:02:33.834Z","dependency_job_id":null,"html_url":"https://github.com/pervasync/react-native-sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pervasync/react-native-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pervasync%2Freact-native-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pervasync%2Freact-native-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pervasync%2Freact-native-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pervasync%2Freact-native-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pervasync","download_url":"https://codeload.github.com/pervasync/react-native-sync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pervasync%2Freact-native-sync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268639931,"owners_count":24282678,"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-04T02:00:09.867Z","response_time":79,"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":"2024-01-05T20:17:21.490Z","updated_at":"2026-04-05T07:02:32.867Z","avatar_url":"https://github.com/pervasync.png","language":"JavaScript","readme":"# react-native-sync\n\nTwo way, incremental sync between React Native realmjs databases and MySQL, Oracle, MS SQL Server and PostgreSQL databases.\n\n## Features\n\n* Direct DB synchronization between on device [realmjs DB](https://realm.io/docs/javascript/latest/) and server side MySQL, Oracle, MS SQL Server and PostgreSQL databases\n* Each user could subscribe to a subset of server side data\n* Files can also be syned\n\n## Setup\n\nFor end-to-end testing, you need to first setup a Pervasync server and publish your central database tables for sync. See [Pervasync documentation](https://docs.google.com/document/u/1/d/1Oioo0MxSArRgBdZ0wmLND-1AdzVLyolNd-yWw59tIC8/pub) for instructions.\n\nThis library is available on npm, install it with: `npm install --save react-native-sync` or `yarn add react-native-sync`.\n\n## Usage\n\n1. Import react-native-sync as RNSync:\n\n    ```javascript\n    import RNSync from \"react-native-sync\";\n    ```\n\n2. Configure RNSync:\n\n    ```javascript\n    var settings = {\n        syncServerUrl: \"http://localhost:8080/pervasync/server\", // required\n        syncUserName: \"user_1\", // required\n        syncUserPassword: \"welcome1\", // required\n    };\n    await RNSync.config(settings);\n    ```\n\n3. Start a sync session:\n\n    ```javascript\n    let syncSummary = await RNSync.sync();\n    ```\n\n4. Get a handle to the synced realm database and synced folder path:\n\n    ```javascript\n    let realm = await RNSync.getRealm(syncSchemaName);\n    let path = await RNSync.getPath(syncFolderName);\n    ```\n\n## Complete Example\n\nCheck out [react-native-sync-demo](https://github.com/pervasync/react-native-sync-demo) and expecially [sync.js](https://github.com/pervasync/react-native-sync-demo/blob/master/sync.js)\n\n\n","funding_links":[],"categories":["Components"],"sub_categories":["Backend"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpervasync%2Freact-native-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpervasync%2Freact-native-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpervasync%2Freact-native-sync/lists"}