{"_id":"@armiachat/chatsdk","name":"@armiachat/chatsdk","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"@armiachat/chatsdk","version":"1.0.2","description":"Chat SDK for React Native","main":"index.js","license":"MIT","publishConfig":{"access":"public"},"_id":"@armiachat/chatsdk@1.0.2","_nodeVersion":"23.6.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-KfnVYjvjrlyBtA1HFgu/f3/YdBJZeyu0hVHgx0BiHY3GieBhZ/Ox6v4alIEkqb6MyMNRlKW0vV/nx48TMIkzAg==","shasum":"1ccfd0a1775cac4a007f5eb87df20989e20e1b7e","tarball":"https://registry.npmjs.org/@armiachat/chatsdk/-/chatsdk-1.0.2.tgz","fileCount":69,"unpackedSize":583829,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDOsjNFfCFllfJw+3yFAO20wF7kBFa9h9dd0y1O7AQidQIgXdFgZAlF/owAusgmd4Qa9n4K2tSGUjK7df2nakYXaAQ="}]},"_npmUser":{"name":"jithindasp","email":"jithindas.p@armiasystems.com"},"directories":{},"maintainers":[{"name":"jithindasp","email":"jithindas.p@armiasystems.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chatsdk_1.0.2_1743594755516_0.019971072665681877"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-02T11:52:35.434Z","1.0.2":"2025-04-02T11:52:35.741Z","modified":"2025-04-02T11:52:36.012Z"},"maintainers":[{"name":"jithindasp","email":"jithindas.p@armiasystems.com"}],"description":"Chat SDK for React Native","license":"MIT","readme":"# Chat SDK\n\nA powerful and easy-to-use Chat SDK built with React Native and Supabase. This SDK allows developers to integrate real-time chat functionality into their mobile applications with minimal setup.\n\n## Getting Started\n\n> **Note**: Make sure you have completed the [Set Up Your Environment](https://reactnative.dev/docs/set-up-your-environment) guide before proceeding.\n\n### Installation\nTo install the SDK in your React Native project, run:\n\n```sh\n# Using npm\nnpm install @your-username/chat-sdk\n\n# OR using Yarn\nyarn add @your-username/chat-sdk\n```\n\n## Step 1: Initialize the Chat SDK\nImport and initialize the SDK in your project:\n\n```tsx\nimport ChatSDK from '@your-username/chat-sdk';\n\nChatSDK.initialize({\n  supabaseUrl: 'https://your-supabase-url.supabase.co',\n  supabaseAnonKey: 'your-anon-key',\n});\n```\n\n## Step 2: Usage\n\n### Sending a Message\n```tsx\nChatSDK.sendMessage({\n  groupId: 'group-id',\n  userId: 'user-id',\n  message: 'Hello, world!'\n});\n```\n\n### Fetching Messages\n```tsx\nconst messages = await ChatSDK.getMessages('group-id');\nconsole.log(messages);\n```\n\n### Handling Notifications\n```tsx\nChatSDK.enablePushNotifications();\n```\n\n## Step 3: Modify and Extend\nNow that you have successfully integrated the Chat SDK, you can extend its functionalities:\n- **Customize UI** using `React Native Gifted Chat`\n- **Add media sharing** like images and audio\n- **Implement group chat enhancements**\n\n## Configuration\nEnsure your `Supabase` project has the following tables:\n- `users`\n- `groups`\n- `group_members`\n- `group_messages`\n\n## Troubleshooting\nIf you're having issues getting the above steps to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.\n\n## Development & Contribution\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/your-username/chat-sdk.git\n   cd chat-sdk\n   ```\n2. Install dependencies:\n   ```sh\n   yarn install\n   ```\n3. Build the SDK:\n   ```sh\n   yarn build\n   ```\n4. Run tests:\n   ```sh\n   yarn test\n   ```\n\n## Publishing to NPM\nTo publish a new version:\n```sh\nyarn build\nnpm publish --access public\n```\n\n## License\nMIT License\n\n## Author\n[Your Name](https://github.com/your-username)\n\n","readmeFilename":"README.md","_rev":"1-17ff9028f2f2966ccef57608c857bff6"}