{"_id":"@capacitor-community/realm","_rev":"52-ab6102b49f6bd6804ab1c6012cee13e3","name":"@capacitor-community/realm","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.2":{"name":"@capacitor-community/realm","version":"0.0.2","keywords":["capacitor","plugin","native"],"author":{"name":"Priyank Patel","email":"priyank.patel@stackspace.ca"},"license":"MIT","_id":"@capacitor-community/realm@0.0.2","maintainers":[{"name":"stewan","email":"oi@stewan.io"},{"name":"dwieeb","email":"dwieeb@gmail.com"},{"name":"priyankpatel","email":"priyank.patel@stackspace.ca"},{"name":"rdlabo","email":"sakakibara@rdlabo.jp"},{"name":"byrds","email":"info@byrds.ch"},{"name":"it_mike_s","email":"mike.summerfeldt@gmail.com"},{"name":"dotnetkow","email":"matt.netkow@gmail.com"},{"name":"mhartington","email":"mikehartington@gmail.com"},{"name":"maxlynch","email":"max@ionic.io"}],"homepage":"https://github.com/capacitor-community/realm#readme","dist":{"shasum":"389d68494d96ef4d6386063220441eeb970d676f","tarball":"https://registry.npmjs.org/@capacitor-community/realm/-/realm-0.0.2.tgz","fileCount":44,"integrity":"sha512-VjY6MHSVl0rKPhEIlgMgW0WmCD41ftXWCsuNf8T0c4t5AudoG4AxGPk5o+rEPQwFZPaYuNO3CHBlsPxFaRlRjA==","signatures":[{"sig":"MEQCIGOY74vFX6iUegXw4fiWCxX3ay8Se+M5THoLpdb5kyY6AiAQxrLVlpMfi2ZwLVAR/U4MuVOSbLLQFjFPaQLXos7J3A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58288529,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfC2u4CRA9TVsSAnZWagAArAoP/Awn+0FmAU1xj7tRdfGC\nE2DeWru3GfQtWDhFIKx/kkwsGGfjrn722ejuzrnxYNM8gshy/iRoq3Bw+nf7\n6MB1G5a3yOW2S/spXkJTVXqlV4pdgv50zKfD5mTR3ATDcuJTOX9MY2sTT6/W\nwfb+kTRIn2v5SxfeWFG7YMdDjxaHEkWGF+5v0W6iWTz/dpOwg7Ug0W6Qm0g3\nrpZrEbyeSoViRwuUMtoPP/iGj/gTEIj5iiFQlPrEp6bFnkL8nGm8mSGgWWFh\nGDcRgXQDi023ccuClIo+WxbpA5HyHLyOGzyzj4F+XsuSxU8aFTSl7UWjgc4O\neAJ7Yq7U8Jl0wdodYPhQHcfftXPDTdHCTfjXWA1e3cY1lisRaL6wZfZrwUhJ\nZnzEWGduBRwWM4hgtOoJlUnep7IsB1/N0vWkqwnNBVVsWwHbzRADGKZHhzb4\nvtvnEypmagb9AYDKc6/S36cnj2TuGfIsURd3Et4G8vJ+QO7BvOS6ZYyYjEm5\nMv6BuJiflCqwOGn/knahQwhRuyDe4u/LQ0kejBcm5iAyTSD7eRe57T5VZqbk\nPtdV//B9XwgBGSFLSfzuJyxAyUIDiVAc+eO6pdD1mikAEdmc7b1F4GH/o321\nFAoOZIWKLDfoxLeJZNAUbwv6Y02et32oc67nLQdpRZhhZmJ5XIXtO04HRFJc\nzE8q\r\n=++Dm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/esm/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"types":"dist/esm/index.d.ts","gitHead":"a0e007dc6bb681da0088524fa42f30ed6d7a73da","scripts":{"build":"npm run clean && tsc","clean":"rimraf ./dist","watch":"tsc --watch","npm-publish":"np","prepublishOnly":"npm run build"},"_npmUser":{"name":"priyankpatel","email":"priyank.patel@stackspace.ca"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+ssh://git@github.com/capacitor-community/realm.git","type":"git"},"_npmVersion":"6.14.4","description":"A native plugin for MongoDB Realm","directories":{},"_nodeVersion":"14.4.0","dependencies":{"realm-web":"^0.6.0","@capacitor/core":"latest"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","typescript":"^3.9.6","@capacitor/ios":"latest","@capacitor/android":"latest"},"_npmOperationalInternal":{"tmp":"tmp/realm_0.0.2_1594583992192_0.21981200787901023","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@capacitor-community/realm","version":"0.0.3","keywords":["capacitor","plugin","native"],"author":{"name":"Priyank Patel","email":"priyank.patel@stackspace.ca"},"license":"MIT","_id":"@capacitor-community/realm@0.0.3","maintainers":[{"name":"byrds","email":"info@byrds.ch"},{"name":"dotnetkow","email":"matt.netkow@gmail.com"},{"name":"dwieeb","email":"dwieeb@gmail.com"},{"name":"it_mike_s","email":"mike.summerfeldt@gmail.com"},{"name":"maxlynch","email":"max@ionic.io"},{"name":"mhartington","email":"mikehartington@gmail.com"},{"name":"priyankpatel","email":"priyank.patel@stackspace.ca"},{"name":"rdlabo","email":"sakakibara@rdlabo.jp"},{"name":"stewan","email":"oi@stewan.io"}],"homepage":"https://github.com/capacitor-community/realm#readme","dist":{"shasum":"a1165efa4cdfcc3937e4e52bb39101b7e0770723","tarball":"https://registry.npmjs.org/@capacitor-community/realm/-/realm-0.0.3.tgz","fileCount":44,"integrity":"sha512-SdKXZelBCTspyFMo8RegGEfP99YDPQu+lgViJCLbz+ira2qJ/0Hzv6AspgM2HACl7BezJ3lCzEf1XCwJ7LsNmg==","signatures":[{"sig":"MEQCIGS7M2RlOSsTraD/OIbrjbC2VXoPNKry8B8Z68yUJwF7AiAkgUNnGiKltmt0dfNHcxTX4OrRITItBdeiiVc5jHR4qA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58288529,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2CMCCRA9TVsSAnZWagAAyGsP/RFlGaStTz9fVqeJdXwT\n2dB0YCvOmjTe/RgMGIvBBNWaoLv0OxSSYzGBXTweFNKaa0W0YA7TfEgnKomO\n8J/I3SO/mfF6ScJvc5ozr6c5RGqYBipSYfcP8E5RDd0vPgf6uL+DPrOVx01N\nygf/LD+6yuwrSYuRLE4fP+2aqH7U/MfY2W81z7e+gPAXDQafS8N178xF9PTp\n9f2AkPg7gcWT6+G5xTwlDdvA2wpoY1asNyBgvlQG0guHtq5dWZpalkfDLRmf\nzrjI1jsti/mucL3toNxEhVdgBQmU2pOXT8Ui1TCuvNbpgSU4CncFj7ik6/b1\n7UjHepH/VneD28wGKrh03dcAJkZMQ9wgRqjLKNzgvdoXtcPYy1wRhTKtCexs\ne/MLlI6qNklihg3Qs2KuQPmZ2KKpOPSTMpNblEDfaFRGbrjhfYZvw6Dyvmbg\nmBq/mb5d0pqs5jg4VhBs+vDznysenCXWvos0WFCZoRXcUdk3fvgWDmVsO9eV\nIxLQIKAttDKhc1kXvzp0XAaJimgd57NKkyP5DzWft7b4Jkj6ofG8f15/xd3B\n4jdlGnVcpYqOULF0iCCz21QQKESJKQ1RujJb9u7csmxTvLmMDPnJ1sWxC4Tf\n/A/AC3T9w/ZzF3DApLhJMnnQWZ0FhaIDIIEIbcdFBIwappcn3ATF5Q3boyLq\nMhF+\r\n=CIo5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/esm/index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"types":"dist/esm/index.d.ts","gitHead":"7ac8ff822ac9fbc048832b48f6f3d80b50257e8d","scripts":{"build":"npm run clean && tsc","clean":"rimraf ./dist","watch":"tsc --watch","npm-publish":"np","prepublishOnly":"npm run build"},"_npmUser":{"name":"priyankpatel","email":"priyank.patel@stackspace.ca"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"url":"git+ssh://git@github.com/capacitor-community/realm.git","type":"git"},"_npmVersion":"6.14.4","description":"A native plugin for MongoDB Realm","directories":{},"_nodeVersion":"14.4.0","dependencies":{"realm-web":"^0.6.0","@capacitor/core":"latest"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^3.0.2","typescript":"^3.9.6","@capacitor/ios":"latest","@capacitor/android":"latest"},"_npmOperationalInternal":{"tmp":"tmp/realm_0.0.3_1594584101209_0.8945705007438227","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-07-12T19:59:51.923Z","modified":"2026-09-28T16:57:50.239Z","0.0.2":"2020-07-12T19:59:52.623Z","0.0.3":"2020-07-12T20:01:41.947Z"},"author":{"name":"Priyank Patel","email":"priyank.patel@stackspace.ca"},"license":"MIT","homepage":"https://github.com/capacitor-community/realm#readme","keywords":["capacitor","plugin","native"],"repository":{"url":"git+ssh://git@github.com/capacitor-community/realm.git","type":"git"},"description":"A native plugin for MongoDB Realm","maintainers":[{"email":"jcesarmobile@gmail.com","name":"jcesarmobile"},{"email":"vitor.oliveira@outsystems.com","name":"vmfo"},{"email":"ihasmax@gmail.com","name":"maxlynch"},{"email":"mikehartington@gmail.com","name":"mhartington"},{"email":"mike.summerfeldt@gmail.com","name":"it_mike_s"},{"email":"info@byrds.ch","name":"byrds"},{"email":"sakakibara@rdlabo.jp","name":"rdlabo"},{"email":"priyank.patel@stackspace.ca","name":"priyankpatel"},{"email":"dwieeb@gmail.com","name":"dwieeb"},{"email":"oi@stewan.io","name":"stewan"},{"email":"arielhernandezmusa@gmail.com","name":"arielhernandezmusa"},{"email":"jeanpierre.queau@gmail.com","name":"jeepq"},{"email":"keagan@start9labs.com","name":"start9keagan"},{"email":"kevinboosten@gmail.com","name":"boosten"},{"email":"noahklayman@gmail.com","name":"nklayman"},{"email":"ibby@zyra.ca","name":"ihadeed"},{"email":"daniel.prr.azevedo@gmail.com","name":"danielprrazevedo"},{"email":"aparajita@aparajita.com","name":"ckgaparajita"},{"email":"joey@ionic.io","name":"jpender"},{"email":"nick@ionic.io","name":"nhyatt"},{"email":"pwespi@pm.me","name":"pwespi"},{"email":"epicshaggy@gmail.com","name":"epicshaggy"},{"email":"hello@thomasvidas.com","name":"thomasvidas"},{"email":"mail@robingenz.dev","name":"robingenz"},{"email":"james@diacono.com.au","name":"diachedelic"},{"email":"jaborges@protonmail.ch","name":"johnborges"},{"email":"tobyas@tobyas.nl","name":"tobyas"},{"email":"ely@meta-tek.net","name":"elylucas"},{"email":"giovanni@ionic.io","name":"giodimiliaionic"},{"email":"brownoxford@gmail.com","name":"brownoxford"},{"email":"mrba7ista@gmail.com","name":"mrbatista"},{"email":"bazuka5801@mail.ru","name":"bazuka5801"},{"email":"hemangsk@gmail.com","name":"hemang"},{"email":"ache@bbit.io","name":"thegnuu"},{"email":"peter@mapledesign.co.uk","name":"pbowyer"},{"email":"ely+capcom@meta-tek.net","name":"capcombot"},{"email":"rui.moreira.mendes@outsystems.com","name":"rui.mendes"},{"email":"andre.destro@outsystems.com","name":"ndr"},{"email":"agerardojacinto@gmail.com","name":"alexgerardojacinto"},{"email":"tafelnl@protonmail.com","name":"tafelnl"},{"email":"pedro.gustavo.bilro@outsystems.com","name":"os-pedrobilro"},{"email":"dallastjames@gmail.com","name":"dallasjames"},{"email":"ryltsov.alex@gmail.com","name":"ryaa"},{"email":"avishkank@gmail.com","name":"nkalupahana"},{"email":"hi@ionic.io","name":"ionicjs"},{"email":"sp@shiv19.com","name":"multishiv19"},{"email":"nuno.azevedo@outsystems.com","name":"nuno.azevedo-outsystems"},{"email":"trevorlambert11@gmail.com","name":"trevorlambert"},{"email":"philip.peitsch@gmail.com","name":"peitschie"},{"email":"damiantarnawsky@gmail.com","name":"damiantarnawsky"},{"email":"eric.harvey@outsystems.com","name":"harvdoggy"},{"email":"ossplugins@outsystems.com","name":"capacitor-plugin-bot"},{"email":"horodyski@ionic.io","name":"eric-ionic"},{"email":"rui.alves@outsystems.com","name":"os-ruialves"}],"readme":"<p align=\"center\"><br><img src=\"https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png\" width=\"128\" height=\"128\" /></p>\n<h3 align=\"center\">Realm</h3>\n<p align=\"center\"><strong><code>@capacitor-community/realm</code></strong></p>\n<p align=\"center\"><strong><code><i>(WORK IN PROGRESS)</i></code></strong></p>\n<p align=\"center\">\n  Capacitor community plugin for native <a href=\"https://www.mongodb.com/realm\">Realm</a>.\n</p>\n\n<p align=\"center\">\n  <img src=\"https://img.shields.io/maintenance/yes/2020?style=flat-square\" />\n  <a href=\"https://github.com/capacitor-community/realm/actions?query=workflow%3A%22Test+and+Build+Plugin%22\"><img src=\"https://img.shields.io/github/workflow/status/capacitor-community/realm/Test%20and%20Build%20Plugin?style=flat-square\" /></a>\n  <a href=\"https://www.npmjs.com/package/@capacitor-community/realm\"><img src=\"https://img.shields.io/npm/l/@capacitor-community/realm?style=flat-square\" /></a>\n<br>\n  <a href=\"https://www.npmjs.com/package/@capacitor-community/realm\"><img src=\"https://img.shields.io/npm/dw/@capacitor-community/realm?style=flat-square\" /></a>\n  <a href=\"https://www.npmjs.com/package/@capacitor-community/realm\"><img src=\"https://img.shields.io/npm/v/@capacitor-community/realm?style=flat-square\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n<a href=\"#contributors-\"><img src=\"https://img.shields.io/badge/all%20contributors-3-orange?style=flat-square\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n</p>\n\n## Maintainers\n\n| Maintainer    | GitHub                                      | Social                                           |\n| ------------- | ------------------------------------------- | ------------------------------------------------ |\n| Priyank Patel | [priyankpat](https://github.com/priyankpat) | [@priyankpat\\_](https://twitter.com/priyankpat_) |\n\n## Installation\n\nUsing npm:\n\n```bash\nnpm install @capacitor-community/realm\n```\n\nUsing yarn:\n\n```bash\nyarn add @capacitor-community/realm\n```\n\nSync native files:\n\n```bash\nnpx cap sync\n```\n\nOn iOS, no further steps are needed.\n\nOn Android, make changes to the following files:\n\n`MainActivity.java`:\n\n```java\nimport com.getcapacitor.community.realm.Realm;\n\npublic class MainActivity extends BridgeActivity {\n\n  @Override\n  public void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n\n    // Initializes the Bridge\n    this.init(\n        savedInstanceState,\n        new ArrayList<Class<? extends Plugin>>() {\n\n          {\n            // Additional plugins you've installed go here\n            // Ex: add(TotallyAwesomePlugin.class);\n            add(Realm.class);\n          }\n        }\n      );\n  }\n}\n```\n\n## Supported methods\n\n| Name                      | Android | iOS | Web |\n| :------------------------ | :------ | :-- | :-- |\n| initialize                | ✅      | ✅  | ✅  |\n| signInAnonymously         | ✅      | ✅  | ✅  |\n| logout                    | ✅      | ✅  | ✅  |\n| signInWithEmailPassword   | ✅      | ✅  | ✅  |\n| signInWithApiKey          | ✅      | ✅  | ✅  |\n| signInWithJWT             | ✅      | ✅  | ✅  |\n| signInWithGoogle          | ✅      | ✅  | ✅  |\n| signInWithFacebook        | ✅      | ✅  | ✅  |\n| signInWithApple           | ✅      | ✅  | ✅  |\n| registerWithEmailPassword | ✅      | ✅  | ✅  |\n| confirmEmail              | ✅      | ✅  | ✅  |\n| resetPassword             | ✅      | ✅  | ✅  |\n| sendPasswordResetEmail    | ✅      | ✅  | ✅  |\n\n## Usage\n\n```typescript\nimport { Plugins } from \"@capacitor/core\";\n\nconst { Realm } = Plugins;\n\n/**\n * Platform: Android/iOS/Web\n * Initialize Realm with the correct Application Id\n * @params appId - This ID is unique to this application. It is necessary for connecting any client to Realm.\n * @returns void\n */\nRealm.initialize({\n  appId: '{{APP_ID}}',\n});\n\n/**\n * Platform: Android/iOS/Web\n * https://docs.mongodb.com/realm/android/authenticate/#anonymous\n * The anonymous authentication provider enables users to log in to your application with short-term accounts that store no persistent personal information.\n * @params none\n * @returns void\n */\nRealm.signInAnonymously();\n\n/**\n * Platform: Android/iOS/Web\n * https://docs.mongodb.com/realm/android/authenticate/#email-password\n * The Email/Password authentication provider enables users to log in to your application with an email username and a password.\n * @params none\n * @returns void\n */\nRealm.signInWithEmailPassword({\n    email: '',\n    password: '',\n});\n\n/**\n * Platform: Android/iOS/Web\n * The API authentication provider enables users to log in to your application with an API key.\n * @params none\n * @returns void\n */\nRealm.signInWithApiKey({\n    apiKey: '',\n});\n\n/**\n * Platform: Android/iOS/Web\n * https://docs.mongodb.com/realm/android/authenticate/#android-login-custom-jwt\n * The Custom JWT authentication provider enables users to log in to your application with a custom JSON Web Token.\n * @params jwtToken - custom jwt token\n * @returns void\n */\nRealm.signInWithJWT({\n    jwtToken: '',\n});\n\n/**\n * Platform: Android/iOS/Web\n * https://docs.mongodb.com/realm/android/authenticate/#google-oauth\n * The Google OAuth authentication provider enables users to log in to your application with a custom token provided by Google.\n * @params googleToken - token obtained from google\n * @returns void\n */\nRealm.signInWithGoogle({\n    googleToken: '',\n});\n\n/**\n * Platform: Android/iOS/Web\n * https://docs.mongodb.com/realm/android/authenticate/#facebook-oauth\n * The Facebook OAuth authentication provider enables users to log in to your application with a custom token provided by Facebook.\n * @params accessToken - token obtained from facebook\n * @returns void\n */\nRealm.signInWithFacebook({\n    accessToken: '',\n});\n\n/**\n * Platform: Android/iOS/Web\n * https://docs.mongodb.com/realm/android/authenticate/#sign-in-with-apple\n * The Sign-in with Apple authentication provider enables users to log in to your application with a custom token provided by Apple.\n * @params idToken - token obtained from apple\n * @returns void\n */\nRealm.signInWithApple({\n    idToken: '',\n});\n\n/**\n * Platform: Android/iOS/Web\n * https://docs.mongodb.com/realm/android/authenticate/#log-out\n * The method will log out any user, regardless of the authentication provider.\n * @params none\n * @returns void\n */\nRealm.logout();\n\n/**\n * Platform: Android/iOS/Web\n * https://docs.mongodb.com/realm/android/manage-email-password-users/#register-a-new-user-account\n * The method will register a user with email/password authentication provider.\n * @params email - unique email address\n *         password - secure password\n * @returns void\n */\nRealm.registerWithEmailPassword({\n    email: '',\n    password: '',\n});\n\n/**\n * Platform: Android/iOS/Web\n * https://docs.mongodb.com/realm/android/manage-email-password-users/#confirm-a-new-user-s-email-address\n * The method will confirm a user with email/password authentication provider.\n * @params token - parameters in the confirmation link sent in the confirmation email\n *         tokenId - parameters in the confirmation link sent in the confirmation email\n * @returns void\n */\nRealm.confirmEmail({\n    token: '',\n    tokenId: '',\n});\n\n/**\n * Platform: Android/iOS/Web\n * https://docs.mongodb.com/realm/android/manage-email-password-users/#reset-a-user-s-password\n * The method will confirm a user with email/password authentication provider.\n * @params token - parameters in the confirmation link sent in the confirmation email\n *         tokenId - parameters in the confirmation link sent in the confirmation email\n *         newPassword - new secure password\n * @returns void\n */\nRealm.resetPassword({\n    token: '',\n    tokenId: '',\n    newPassword: '',\n});\n\n/**\n * Platform: Android/iOS/Web\n * The method will resend password reset email.\n * @params email - email address of account that requires password reset\n * @returns void\n */\nRealm.sendPasswordResetEmail({\n    email: '',\n});\n\n```\n","readmeFilename":"README.md"}