Add Chat to Your App
1:1 messaging, group chat, reactions, and media
Add 1:1 messaging, group chat, read receipts, and media sharing to any application using the Recursiv SDK. Works with React, Next.js, React Native, Node.js, or any TypeScript/JavaScript project.
What You’ll Build
- 1:1 direct messaging between users
- Group conversations with multiple participants
- Message reactions (like, heart, fire, laugh, sad, angry)
- Media attachments (images, files)
- Real-time updates via Socket.IO
Prerequisites
- Node.js 18+ (22+ recommended)
- A Recursiv API key with
chat:readandchat:writescopes npm install @recursiv/sdk
Step 1: Initialize the SDK
Step 2: Create a Direct Message Conversation
Step 3: Send Messages
Step 4: Fetch Message History
Step 5: List All Conversations
React Integration Example
What’s Included vs Building from Scratch
Time to ship: Hours with Recursiv vs months from scratch.