npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ethora/chat-component-rn

v26.4.1

Published

Drop-in XMPP chat component for React Native / Expo. <Chat config={...}/> and you're done.

Readme

Ethora Chat Component — React Native (@ethora/chat-component-rn)

React Native chat UI + chat core for iOS and Android, powered by the Ethora platform (REST + XMPP). Mount a <Chat /> component, point it at an Ethora app, and get a production-oriented mobile chat experience: rooms, threads, message history, media, push notifications, and pluggable auth.

Part of the Ethora SDK ecosystem — see all SDKs, tools, and sample apps. Follow cross-SDK updates in the Release Notes.

Looking for the React.js (web) version? See @ethora/chat-component.

What you get

  • Room list and room chat UI (Native / iOS + Android)
  • Message history (MAM), replies, edits, deletes
  • Typing indicators
  • Push notifications (FCM / APNs)
  • Pluggable auth (default / JWT / injected user / custom)
  • Custom message bubble, input, scroll, and day-separator overrides

Default backend endpoints

The package defaults to the canonical Ethora Cloud endpoints:

| Purpose | Default value | |---------|---------------| | API base URL | https://api.chat.ethora.com/v1 | | XMPP WebSocket | wss://xmpp.chat.ethora.com/ws | | XMPP host | xmpp.chat.ethora.com | | XMPP MUC (conference) | conference.xmpp.chat.ethora.com | | Web / sign up | https://app.chat.ethora.com | | Swagger / API docs | https://api.chat.ethora.com/api-docs/#/ |

To target QA, point the equivalent props/env vars at chat-qa.ethora.com. To self-host, override with your own xmppSettings and baseUrl — see the example below.

Install

# inside an existing React Native project
npm install @ethora/chat-component-rn
# or
yarn add @ethora/chat-component-rn

iOS only:

cd ios && pod install

Quick start

import React from 'react';
import { SafeAreaView } from 'react-native';
import { Chat, XmppProvider } from '@ethora/chat-component-rn';

export default function App() {
  return (
    <SafeAreaView style={{ flex: 1 }}>
      <XmppProvider>
        <Chat
          config={{
            appId: 'YOUR_APP_ID',
            baseUrl: 'https://api.chat.ethora.com/v1',
            xmppSettings: {
              devServer: 'wss://xmpp.chat.ethora.com/ws',
              host: 'xmpp.chat.ethora.com',
              conference: 'conference.xmpp.chat.ethora.com',
            },
          }}
        />
      </XmppProvider>
    </SafeAreaView>
  );
}

Sign up at app.chat.ethora.com/register to get an appId (and optionally an app token / JWT for backend integrations). For a guided setup that writes config files into your project, run npx @ethora/setup.

Authentication modes

// JWT login (recommended for production apps that already have user auth)
<Chat config={{ jwtLogin: { enabled: true, token: 'PLACEHOLDER_JWT' } }} />

// Inject an already-authenticated user
<Chat
  config={{
    userLogin: {
      enabled: true,
      user: {
        _id: 'PLACEHOLDER_USER_ID',
        appId: 'PLACEHOLDER_APP_ID',
        firstName: 'Jane',
        lastName: 'Doe',
        token: 'PLACEHOLDER_ACCESS_TOKEN',
        refreshToken: 'PLACEHOLDER_REFRESH_TOKEN',
        xmppPassword: 'PLACEHOLDER_XMPP_PASSWORD',
        username: 'PLACEHOLDER_USERNAME',
        walletAddress: 'PLACEHOLDER_WALLET_ADDRESS',
        defaultWallet: { walletAddress: 'PLACEHOLDER_WALLET_ADDRESS' },
      },
    },
  }}
/>

Pinning a single room

<Chat
  roomJID="[email protected]"
  config={{ setRoomJidInPath: false }}
/>

Local development

This repo is bootstrapped with @react-native-community/cli. To run it as its own RN sample app rather than as a library:

git clone https://github.com/dappros/ethora-chat-component-rn.git
cd ethora-chat-component-rn
yarn install
cd ios && pod install && cd ..
yarn start            # Metro
yarn ios              # in another terminal
yarn android          # in another terminal

Make sure you have completed the React Native environment setup before proceeding.

Related

Support

License

AGPL. See LICENSE.