{"id":4713,"url":"https://github.com/aksonov/react-native-xmpp","last_synced_at":"2025-10-12T07:12:14.090Z","repository":{"id":50303835,"uuid":"43016024","full_name":"aksonov/react-native-xmpp","owner":"aksonov","description":"XMPP library for React Native (iOS and Android native support)","archived":false,"fork":false,"pushed_at":"2019-04-04T04:49:41.000Z","size":520,"stargazers_count":311,"open_issues_count":43,"forks_count":98,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-10-06T12:52:58.691Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aksonov.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":"2015-09-23T17:25:25.000Z","updated_at":"2025-06-25T01:26:54.000Z","dependencies_parsed_at":"2022-08-04T08:30:22.526Z","dependency_job_id":null,"html_url":"https://github.com/aksonov/react-native-xmpp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aksonov/react-native-xmpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksonov%2Freact-native-xmpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksonov%2Freact-native-xmpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksonov%2Freact-native-xmpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksonov%2Freact-native-xmpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aksonov","download_url":"https://codeload.github.com/aksonov/react-native-xmpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aksonov%2Freact-native-xmpp/sbom","scorecard":{"id":176851,"data":{"date":"2025-08-11","repo":{"name":"github.com/aksonov/react-native-xmpp","commit":"d7290f520d8f6068582ac603f55724b92fb97a56"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"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":"Code-Review","score":3,"reason":"Found 4/12 approved changesets -- score normalized to 3","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":"Binary-Artifacts","score":8,"reason":"binaries present in source code","details":["Warn: binary detected: XmppDemo/android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: android/gradle/wrapper/gradle-wrapper.jar:1"],"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":"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":"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":"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"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 2-Clause \"Simplified\" 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":"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":"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 25 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"}}]},"last_synced_at":"2025-08-16T17:51:43.157Z","repository_id":50303835,"created_at":"2025-08-16T17:51:43.157Z","updated_at":"2025-08-16T17:51:43.157Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010644,"owners_count":26084783,"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-10-12T02:00:06.719Z","response_time":53,"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.065Z","updated_at":"2025-10-12T07:12:14.042Z","avatar_url":"https://github.com/aksonov.png","language":"Objective-C","funding_links":[],"categories":["Components","Objective-C"],"sub_categories":["Backend"],"readme":"# react-native-xmpp\n\nAn XMPP library for React Native.\n\nA simple interface for native XMPP communication. Both iOS and Android are supported.\n\n## Demo\n\nXmppDemo uses a Flux approach (check its `XmppStore`) to communicate with a sample XMPP server, where 4 accounts were registered.\n\n![demo-3](https://cloud.githubusercontent.com/assets/1321329/10537760/406affa6-73f4-11e5-986f-81a78adf129e.gif)\n\n## Example\n\n```js\nvar XMPP = require('react-native-xmpp');\n\n// optional callbacks\nXMPP.on('message', (message) =\u003e console.log('MESSAGE:' + JSON.stringify(message)));\nXMPP.on('iq', (message) =\u003e console.log('IQ:' + JSON.stringify(message)));\nXMPP.on('presence', (message) =\u003e console.log('PRESENCE:' + JSON.stringify(message)));\nXMPP.on('error', (message) =\u003e console.log('ERROR:' + message));\nXMPP.on('loginError', (message) =\u003e console.log('LOGIN ERROR:' + message));\nXMPP.on('login', (message) =\u003e console.log('LOGGED!'));\nXMPP.on('connect', (message) =\u003e console.log('CONNECTED!'));\nXMPP.on('disconnect', (message) =\u003e console.log('DISCONNECTED!'));\n\n// trustHosts (ignore self-signed SSL issues)\n// Warning: Do not use this in production (security will be compromised).\nXMPP.trustHosts(['chat.google.com']);\n\n// connect\nXMPP.connect(MYJID, MYPASSWORD);\n\n// send message\nXMPP.message('Hello world!', TOJID);\n\n// disconnect\nXMPP.disconnect();\n\n// remove all event listeners (recommended on componentWillUnmount)\nXMPP.removeListeners();\n\n// remove specific event listener (type can be 'message', 'iq', etc.)\nXMPP.removeListener(TYPE);\n```\n\n## Getting started\n\n1. `npm install react-native-xmpp --save`\n\n### iOS\n\nPlease use CocoaPods \n\n2. Install latest XMPPFramework:\nhttps://github.com/robbiehanson/XMPPFramework\n`pod 'XMPPFramework', :git =\u003e 'https://github.com/robbiehanson/XMPPFramework.git', :branch =\u003e 'master'`\n\n3. Add this package pod:\n`pod 'RNXMPP', :path =\u003e '../node_modules/react-native-xmpp'`\n\nIf you have problems with latest 4.0 XMPPFramework and/or XCode 9.3, you may use old one with forked KissXML:\n`pod 'XMPPFramework', '~\u003e 3.7.0'`\n`pod 'KissXML', :git =\u003e \"https://github.com/aksonov/KissXML.git\", :branch =\u003e '5.1.4'`\n\n\n### Android\n`react-native link react-native-xmpp`\n\nIf it doesn't link the react-native-xmpp correct:\n\n**android/settings.gradle**\n\n```gradle\ninclude ':react-native-xmpp'\nproject(':react-native-xmpp').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-xmpp/android')\n```\n\n**android/app/build.gradle**\n\n```gradle\ndependencies {\n   ...\n   compile project(':react-native-xmpp')\n}\n```\n\n**MainApplication.java**\n\nOn top, where imports are:\n\n```java\nimport rnxmpp.RNXMPPPackage;\n```\n\nAdd the `ReactVideoPackage` class to your list of exported packages.\n\n```java\n@Override\nprotected List\u003cReactPackage\u003e getPackages() {\n    return Arrays.\u003cReactPackage\u003easList(\n        new MainReactPackage(),\n        new RNXMPPPackage()\n    );\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faksonov%2Freact-native-xmpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faksonov%2Freact-native-xmpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faksonov%2Freact-native-xmpp/lists"}