Dashboard →GitHub
📱 Mobile & Web SDKs

Embed MyYarns
in any app or platform

One widget key. Four native SDKs. Drop live AI chat into your React Native, Flutter, Android, or iOS app in under 10 minutes.

⚛️
React Native
npm
🐦
Flutter
pub.dev
🤖
Android
Kotlin
🍎
iOS Swift
SPM
🌐
Web
script tag
🔌
REST + WS
any platform
Your widget key — get it from Dashboard → Widgets. Looks like sb_chat_xxxx. All SDKs use the same key — no backend changes needed.
1Install

Add the SDK to your project

bash
npm install @sendbaba/myyarns-rn
2Show the chat

Drop in the component — floating button appears automatically

jsx
// App.jsx
import { MyYarnsChat } from '@sendbaba/myyarns-rn'

export default function App() {
  return (
    <View style={{ flex: 1 }}>
      <YourApp />
      <MyYarnsChat widgetKey="sb_chat_xxxx" />
    </View>
  )
}
3Identify visitors optional

Pass name, email, phone — appears in your MyYarns inbox

jsx
<MyYarnsChat
  widgetKey="sb_chat_xxxx"
  visitorInfo={{
    name:  user.displayName,
    email: user.email,
    phone: user.phone,
  }}
/>

// Programmatic open
import { useMyYarns } from '@sendbaba/myyarns-rn'
const { open, unread } = useMyYarns()
<Button onPress={open} title={`Support (${unread})`} />
WebSocket Events

All SDKs connect to wss://myyarns.sendbaba.com/ws/{widget_key}/{session_id}

EventDirectionDescription
→ messageSendSend visitor message — { type, content }
→ visitor_infoSendIdentify visitor — { type, name, email, phone, page, device }
→ ratingSendSubmit satisfaction rating — { type, value: "up"|"down" }
→ proactive_checkSendCheck for trigger on current page
← messageReceiveAI/agent reply — { id, sender, content, timestamp }
← typingReceiveAI is typing — show indicator for ~3s
← lead_capturedReceiveVisitor identity saved — { name, email, phone }
← rating_receivedReceiveRating confirmed
Download SDK Files

Drop directly into your project

React Native (.js)Flutter (.dart)Android (.kt)iOS (.swift)Integration Guide
Need help integrating?

Our team in Lagos is available for integration support, custom requirements, and enterprise deployments.

✉ dev@sendbaba.comGitHub Issues