{"_id":"@berty/weshnet-expo","_rev":"5-a986b292626aff9c8e89a2f1d8e16189","name":"@berty/weshnet-expo","dist-tags":{"latest":"1.0.3"},"versions":{"0.0.1":{"name":"@berty/weshnet-expo","version":"0.0.1","keywords":["react-native","expo","weshnet","Weshnet-Expo","berty","@berty/weshnet-expo"],"author":{"name":"Berty Technologies","email":"oss@berty.tech"},"license":"MIT","_id":"@berty/weshnet-expo@0.0.1","maintainers":[{"name":"iuriberty","email":"iuri@berty.tech"},{"name":"berty-staff","email":"staff@berty.tech"},{"name":"m42am","email":"m@42.am"}],"homepage":"https://github.com/berty/weshnet-expo#readme","bugs":{"url":"https://github.com/berty/weshnet-expo/issues"},"dist":{"shasum":"44e95d518b58034fe9fdcec0b2d965aa7ad8eb66","tarball":"https://registry.npmjs.org/@berty/weshnet-expo/-/weshnet-expo-0.0.1.tgz","fileCount":173,"integrity":"sha512-WTRDAKuPvlYPejYbisqrOar0gRL/4qNWFjPZBJ2dAFoCIyl9R0+7uiuMnoriqNA/yZnKfxRw19nwWf9TkRp/Aw==","signatures":[{"sig":"MEQCIFnUwNYGzTHh+hR7xbmCjTIkJx6vpvVqjG8UUK9igT2NAiBsHd9hqQTrjcN45hWX7oAKBb8voc/UYL/V1sFv0u8+Vw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2568375},"main":"build/index.js","type":"module","types":"build/index.d.ts","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","open:ios":"open -a \"Xcode\" example/ios","expo-module":"expo-module","open:android":"open -a \"Android Studio\" example/android","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"iuriberty","email":"iuri@berty.tech"},"repository":{"url":"https://github.com/berty/weshnet-expo","type":"git"},"description":"Weshnet React Native Expo module","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2023 Berty Technologies\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"base64-js":"^1.5.1","protobufjs":"^7.2.4"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.1","handlebars":"^4.7.7","@types/react":"^18.0.25","protobufjs-cli":"^1.1.1","expo-modules-core":"^1.5.4","expo-module-scripts":"^3.0.11"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/weshnet-expo_0.0.1_1690820289245_0.653478870768164","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@berty/weshnet-expo","version":"0.0.2","keywords":["react-native","expo","weshnet","Weshnet-Expo","berty","@berty/weshnet-expo"],"author":{"name":"Berty Technologies","email":"oss@berty.tech"},"license":"MIT","_id":"@berty/weshnet-expo@0.0.2","maintainers":[{"name":"iuriberty","email":"iuri@berty.tech"},{"name":"berty-staff","email":"staff@berty.tech"},{"name":"m42am","email":"m@42.am"}],"homepage":"https://wesh.network/","bugs":{"url":"https://github.com/berty/weshnet-expo/issues"},"dist":{"shasum":"ace851bcc83348680b728af669cba8cc760b8df5","tarball":"https://registry.npmjs.org/@berty/weshnet-expo/-/weshnet-expo-0.0.2.tgz","fileCount":176,"integrity":"sha512-ND7wkmRGx4EvvP0iR1rJ2vZvGU+CEbYpQElfMSvDBaHnkEPEJDfV26prSCR5mRaO/0bW1gIQAEJU1MjK1yCQTw==","signatures":[{"sig":"MEUCIQCx7cc3jzeCLk9mIoFjP3OteYaO2HdMP8w0ZR9zh6fRVwIgJzIeoEpufCvLcOUum5TaVeMtdUn6vku/qZDb4MvtcEg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2571371},"main":"build/index.js","type":"module","types":"build/index.d.ts","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","open:ios":"open -a \"Xcode\" example/ios","expo-module":"expo-module","open:android":"open -a \"Android Studio\" example/android","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"iuriberty","email":"iuri@berty.tech"},"repository":{"url":"https://github.com/berty/weshnet-expo","type":"git"},"description":"Wesh Network React Native Expo module","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2023 Berty Technologies\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"base64-js":"^1.5.1","protobufjs":"^7.2.4"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.1","handlebars":"^4.7.7","@types/react":"^18.0.25","protobufjs-cli":"^1.1.1","expo-modules-core":"^1.5.4","expo-module-scripts":"^3.0.11"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/weshnet-expo_0.0.2_1690829837813_0.020632715146431835","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@berty/weshnet-expo","version":"1.0.1","keywords":["react-native","expo","weshnet","Weshnet-Expo","berty","@berty/weshnet-expo"],"author":{"name":"Berty Technologies","email":"oss@berty.tech"},"license":"MIT","_id":"@berty/weshnet-expo@1.0.1","maintainers":[{"name":"d4ryl00","email":"d4ryl00@gmail.com"},{"name":"iuriberty","email":"iuri@berty.tech"},{"name":"berty-staff","email":"staff@berty.tech"},{"name":"m42am","email":"m@42.am"}],"homepage":"https://wesh.network","bugs":{"url":"https://github.com/berty/weshnet-expo/issues"},"dist":{"shasum":"c6e1ab56919ed82894ca39b1f80dc96800854bf5","tarball":"https://registry.npmjs.org/@berty/weshnet-expo/-/weshnet-expo-1.0.1.tgz","fileCount":137,"integrity":"sha512-qun+SIhBe959d5N8hZhULe1NewssLqx0wv/ophpT6d58j7ZJ7Vu0znFkhZH0BD30a5KV2qT7jUEtoSfQ6PnM6A==","signatures":[{"sig":"MEUCIQCUZfILaJm00pggQavGT9NOIVhSVxNlKm6fc8VaW6TxHwIgVy9CUqrpathq219gXb25BjvBaLPv4OpaxhjwMqlTgYc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1571204},"main":"build/index.js","type":"module","types":"build/index.d.ts","gitHead":"7ecb4b3991231a8516cff2bf245339b13b7e4b7e","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare","open:ios":"open -a \"Xcode\" example/ios","expo-module":"expo-module","open:android":"open -a \"Android Studio\" example/android","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"d4ryl00","email":"d4ryl00@gmail.com"},"repository":{"url":"git+https://github.com/berty/weshnet-expo.git","type":"git"},"_npmVersion":"10.5.2","description":"Wesh Network React Native Expo module","directories":{},"_nodeVersion":"20.13.1","dependencies":{"base64-js":"^1.5.1","protobufjs":"^7.2.4"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.46.0","ts-node":"^10.9.1","prettier":"^3.0.1","handlebars":"^4.7.7","typescript":"^5.1.6","@types/react":"^18.0.25","protobufjs-cli":"^1.1.1","eslint-plugin-n":"^15.0.0 || ^16.0.0 ","expo-modules-core":"^1.5.4","eslint-plugin-jest":"^27.2.3","expo-module-scripts":"^3.0.11","eslint-plugin-import":"^2.28.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-prettier":"5.0.0","@typescript-eslint/parser":"^6.2.1","@react-native/eslint-config":"^0.72.2","@typescript-eslint/eslint-plugin":"^6.2.1","eslint-config-standard-with-typescript":"^37.0.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/weshnet-expo_1.0.1_1729259755185_0.48161440877588846","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@berty/weshnet-expo","version":"1.0.2","keywords":["react-native","expo","weshnet","Weshnet-Expo","berty","@berty/weshnet-expo"],"author":{"name":"Berty Technologies","email":"oss@berty.tech"},"license":"MIT","_id":"@berty/weshnet-expo@1.0.2","maintainers":[{"name":"d4ryl00","email":"d4ryl00@gmail.com"},{"name":"iuriberty","email":"iuri@berty.tech"},{"name":"berty-staff","email":"staff@berty.tech"},{"name":"m42am","email":"m@42.am"}],"homepage":"https://wesh.network","bugs":{"url":"https://github.com/berty/weshnet-expo/issues"},"dist":{"shasum":"8d5c5cbfc592f1c92b4fccf41cb45db6cb41ba16","tarball":"https://registry.npmjs.org/@berty/weshnet-expo/-/weshnet-expo-1.0.2.tgz","fileCount":142,"integrity":"sha512-HtLatcu3C6I58cGEPeTh1tcpSTwc+vgQLvEDTiGdRQ5ySLY3MsBccoS/Jo5d3IrVyvEWiVl7F0wpCkw5ylt83A==","signatures":[{"sig":"MEUCIQCwyuXs8lTTjLMmE4GCHfwC6j7QPypOAoHmW4o1euNwKAIgB/ftI4K4DV8RNCeLqGvGipcKSrkkf+G8FW2FKMXunsg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2731703},"main":"build/index.js","type":"module","types":"build/index.d.ts","gitHead":"01865acdf5dcace0fb72768805c482a870fa8d25","scripts":{"lint":"expo-module lint","test":"expo-module test","build":"expo-module build","clean":"expo-module clean","prepare":"expo-module prepare && sh prepare.sh","open:ios":"open -a \"Xcode\" example/ios","expo-module":"expo-module","open:android":"open -a \"Android Studio\" example/android","prepublishOnly":"expo-module prepublishOnly"},"_npmUser":{"name":"d4ryl00","email":"d4ryl00@gmail.com"},"repository":{"url":"git+https://github.com/berty/weshnet-expo.git","type":"git"},"_npmVersion":"10.5.2","description":"Wesh Network React Native Expo module","directories":{},"_nodeVersion":"20.13.1","dependencies":{"base64-js":"^1.5.1","protobufjs":"^7.2.4"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.46.0","ts-node":"^10.9.1","prettier":"^3.0.1","handlebars":"^4.7.7","typescript":"^5.1.6","@types/react":"^18.0.25","protobufjs-cli":"^1.1.1","eslint-plugin-n":"^15.0.0 || ^16.0.0 ","expo-modules-core":"^1.5.4","eslint-plugin-jest":"^27.2.3","expo-module-scripts":"^3.0.11","eslint-plugin-import":"^2.28.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-prettier":"5.0.0","@typescript-eslint/parser":"^6.2.1","@react-native/eslint-config":"^0.72.2","@typescript-eslint/eslint-plugin":"^6.2.1","eslint-config-standard-with-typescript":"^37.0.0"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/weshnet-expo_1.0.2_1729782323481_0.24474866840114706","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@berty/weshnet-expo","version":"1.0.3","description":"Wesh Network React Native Expo module","main":"build/index.js","types":"build/index.d.ts","type":"module","scripts":{"build":"expo-module build","clean":"expo-module clean","lint":"expo-module lint","test":"expo-module test","prepare":"expo-module prepare && sh prepare.sh","prepublishOnly":"expo-module prepublishOnly","expo-module":"expo-module","open:ios":"open -a \"Xcode\" example/ios","open:android":"open -a \"Android Studio\" example/android"},"keywords":["react-native","expo","weshnet","Weshnet-Expo","berty","@berty/weshnet-expo"],"repository":{"type":"git","url":"git+https://github.com/berty/weshnet-expo.git"},"bugs":{"url":"https://github.com/berty/weshnet-expo/issues"},"author":{"name":"Berty Technologies","email":"oss@berty.tech"},"license":"MIT","homepage":"https://wesh.network","dependencies":{"base64-js":"^1.5.1","protobufjs":"^7.2.4"},"devDependencies":{"@react-native/eslint-config":"^0.72.2","@types/react":"^18.0.25","@typescript-eslint/eslint-plugin":"^6.2.1","@typescript-eslint/parser":"^6.2.1","eslint":"^8.46.0","eslint-config-standard-with-typescript":"^37.0.0","eslint-plugin-import":"^2.28.0","eslint-plugin-jest":"^27.2.3","eslint-plugin-n":"^15.0.0 || ^16.0.0 ","eslint-plugin-prettier":"5.0.0","eslint-plugin-promise":"^6.0.0","expo-module-scripts":"^3.0.11","expo-modules-core":"^1.5.4","handlebars":"^4.7.7","prettier":"^3.0.1","protobufjs-cli":"^1.1.1","ts-node":"^10.9.1","typescript":"^5.1.6"},"peerDependencies":{"expo":"*","react":"*","react-native":"*"},"_id":"@berty/weshnet-expo@1.0.3","gitHead":"431e7477eecaeba03ef7fcd1a820d9ffef1cf8a6","_nodeVersion":"20.13.1","_npmVersion":"10.5.2","dist":{"integrity":"sha512-38UGDLzovlFZuPf2xLtzB50Yz91ztYEAqTeqzo0MhwHOyvorVSngRLrPJOwr37aIdu+KMaw53M4jFFO3rLROng==","shasum":"4fcacdcbf178e5abb85acbee8006ef6f8a358f01","tarball":"https://registry.npmjs.org/@berty/weshnet-expo/-/weshnet-expo-1.0.3.tgz","fileCount":142,"unpackedSize":2731693,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAU2iXfByf7Bm8k96BIAUBeTg1V7GdEuS/K7auNp5gIQIhALB2KuqqxtSN3jNMYWv3UiqUM4QvKsZYVeobJKz8xFYZ"}]},"_npmUser":{"name":"d4ryl00","email":"d4ryl00@gmail.com"},"directories":{},"maintainers":[{"name":"berty-staff","email":"staff@berty.tech"},{"name":"m42am","email":"m@42.am"},{"name":"d4ryl00","email":"d4ryl00@gmail.com"},{"name":"iuriberty","email":"iuri@berty.tech"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/weshnet-expo_1.0.3_1732538315221_0.696325365187564"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-31T16:18:09.171Z","modified":"2024-11-25T12:38:35.635Z","0.0.1":"2023-07-31T16:18:09.564Z","0.0.2":"2023-07-31T18:57:18.056Z","1.0.1":"2024-10-18T13:55:55.474Z","1.0.2":"2024-10-24T15:05:23.734Z","1.0.3":"2024-11-25T12:38:35.426Z"},"bugs":{"url":"https://github.com/berty/weshnet-expo/issues"},"author":{"name":"Berty Technologies","email":"oss@berty.tech"},"license":"MIT","homepage":"https://wesh.network","keywords":["react-native","expo","weshnet","Weshnet-Expo","berty","@berty/weshnet-expo"],"repository":{"type":"git","url":"git+https://github.com/berty/weshnet-expo.git"},"description":"Wesh Network React Native Expo module","maintainers":[{"name":"berty-staff","email":"staff@berty.tech"},{"name":"m42am","email":"m@42.am"},{"name":"d4ryl00","email":"d4ryl00@gmail.com"},{"name":"iuriberty","email":"iuri@berty.tech"}],"readme":"<h1 align=\"center\">\n  <img src=\"https://wesh.network/img/LogoCubes.svg\" alt=\"Berty\" title=\"Berty\" height=\"100px\" />\n</h1>\n<h1 align=\"center\">\nWesh Network Expo Module\n</h1>\n<h2>\n<mark>🚧 This project is work In Progress. This library cannot be used yet.</mark>\n</h2>\n<p align=\"center\">\n    <a href=\"https://crpt.fyi/berty-discord\"><img alt=\"discord\" src=\"https://img.shields.io/badge/discord-gray?logo=discord\" /></a>\n    <a href=\"https://github.com/berty\"><img alt=\"github\" src=\"https://img.shields.io/badge/@berty-471961?logo=github\" /></a>\n    <a href=\"https://twitter.com/weshnet\"><img alt=\"twitter\" src=\"https://img.shields.io/twitter/follow/berty?label=%40weshnet&style=flat&logo=twitter\" /></a>\n</p>\n\n<h3 align=\"center\">The Wesh network toolkit lets your application use the Wesh protocol to support privacy-based, off-grid, peer-to-peer communication.\n<br/><br/>For details, see the Wesh website at <a href=\"https://wesh.network\">https://wesh.network</a>. The website includes blog tutorials which introduce you to Wesh and walk you through some example applications and background of the Wesh protocol.</h3>\n\n---\n\n## Requirements\n\n-   [Go](https://golang.org/doc/install) = 1.22.4\n\nFollow the [React Native requirements](https://reactnative.dev/docs/set-up-your-environment) and [Expo requirements](https://docs.expo.dev/get-started/set-up-your-environment) for your platform.\n\n## Instalation\n\nInstall the package in your project:\n\n```sh\n# create new expo project\nnpx create-expo-app my-app --template expo-template-blank-typescript\ncd my-app\nnpx expo install @berty/weshnet-expo\n```\n\n## Usage\n\nAdd the following to your `App.tsx`:\n\n```tsx\nimport React, { useState, useEffect } from \"react\";\nimport { StyleSheet, Text, View } from \"react-native\";\n\nimport * as WeshnetExpo from \"@berty/weshnet-expo\";\n\nexport default function App() {\n    const [peerID, setPeerID] = useState<string>();\n    useEffect(() => {\n        WeshnetExpo.init().then((client) => {\n            client.serviceGetConfiguration({}).then((res) => {\n                setPeerID(res.peerId);\n                console.log(res);\n            });\n        });\n    }, []);\n\n    const loadingView = <Text> Loading Weshnet... </Text>;\n    const weshView = <Text>hello my peerid is: {peerID}</Text>;\n    return (\n        <View style={styles.container}>{!peerID ? loadingView : weshView}</View>\n    );\n\n    const styles = StyleSheet.create({\n        container: {\n            flex: 1,\n            backgroundColor: \"#fff\",\n            alignItems: \"center\",\n            justifyContent: \"center\",\n        },\n    });\n}\n```\n\n`weshnet` needs some system permissions to get the phone's connectivity status and make `mDNS` working. Edit your `app.json` to include the following permissions:\n\n```json\n{\n    \"expo\": {\n        \"android\": {\n            \"permissions\": [\n                \"android.permission.READ_PHONE_STATE\",\n                \"android.permission.ACCESS_NETWORK_STATE\",\n                \"android.permission.CHANGE_WIFI_MULTICAST_STATE\"\n            ]\n        }\n    }\n}\n```\n\nYou need to update your native Android / iOS folders. If you have a `managed workflow` (learn more [here](https://medium.com/@mehro_z/choosing-between-managed-and-bare-workflow-in-expo-a-comprehensive-difference-7086305f1480)), do the following (this command will delete and recreate the native folders!!!)\n\n```sh\nnpx expo prebuild --clean\n```\n\n## Example App\n\n```sh\ncd example\nmake build.ios # or make build.android\n```\n\n## Contributing\n\n[![Contribute to Berty](https://assets.berty.tech/files/contribute-contribute_v2--Contribute-berty-ultra-light.gif)](https://github.com/berty/community)\n\nIf you want to help out, please see [docs/developer-guide.md](./docs/developer-guide.md) and [CONTRIBUTING.md](./CONTRIBUTING.md).\n\nThis repository falls under the Berty [Code of Conduct](https://github.com/berty/community/blob/master/CODE_OF_CONDUCT.md).\n\nYou can contact us on the [`#questions-❓`](https://crpt.fyi/berty-dev-discord) channel on [discord](https://crpt.fyi/berty-discord).\n\n## License\n\nDual-licensed under [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) and [MIT](https://opensource.org/licenses/MIT) terms.\n\n`SPDX-License-Identifier: (Apache-2.0 OR MIT)`\n\nSee the [COPYRIGHT](./COPYRIGHT) file for more details.\n","readmeFilename":"README.md"}