If your chat runs on PubNub, the alternatives that come with the chat already built are TalkJS, Stream, Sendbird and CometChat. On TalkJS, moving over is mostly deleting code. You get a pre-built chat UI, every message kept on every plan, and email and push notifications, for $279 a month at 10,000 monthly active users. PubNub's calculator puts the same number of users at $550.
What does each PubNub piece become on TalkJS?
PubNub stopped supporting Chat Components, its pre-built React and React Native chat UI kit, on January 1, 2025. Its Chat SDK is headless: in PubNub's own words, it "renders nothing", so every screen is yours to build and maintain. On TalkJS those screens come built. Here's what replaces each piece, and the code you get to delete:
| If your PubNub chat uses | On TalkJS | What leaves your code |
|---|---|---|
| Chat Components, or screens you built on the Chat SDK | A pre-built chat UI for React, React Native, Flutter, Vue, Angular and Web Components, styled with themes | Your inbox, message list and message field |
| Channels, with users and memberships in App Context | Conversations with participants. You still sync your users from your app | Code that keeps channel members and metadata in sync |
| Message Persistence | Every message kept, on every plan | History paging for the UI, and the retention setting |
| Presence | A status indicator that shows who's online | Presence listeners and the online dot |
| Typing, reactions, read receipts and unread counts from the Chat SDK | Typing indicator, emoji reactions (custom emojis too), read receipts and unread tracking, drawn in the UI | The UI you draw for each of them |
| Quotes and replies | Message replies, shown with the message they answer | Your reply view |
| Moderation code you run in Functions | Forbidden words and patterns, hidden emails, phone numbers and links, a report button, roles and bans, plus webhooks for an AI moderation service | Your moderation Function |
| Mobile Push to APNs and FCM | Push through APNs and FCM, plus email and SMS notifications. Replies to a notification email land back in the chat | Push payloads on every publish |
| Access Manager tokens | Authentication with a token your server signs | PubNub grant code. You sign a TalkJS token instead |
With TalkJS Themes you can go from quick tweaks to fonts and colors all the way to changing the markup in certain areas, so the same chat fits a Slack-style app, a mobile messenger or a live comment section next to a video livestream.
Want to keep a UI you've already built? The TalkJS Data APIs for JavaScript, Flutter, Kotlin and Swift give you the chat data without our UI, so you can swap PubNub out underneath your screens first and move to the pre-built UI later.
How much does PubNub cost next to TalkJS?
PubNub Starter is $98 a month for 1,000 monthly active users and keeps up to 6 months of messages. Past 1,000, you add users by card or move to Pro, which PubNub's sales team prices. Its calculator estimates Pro at $550 a month for 10,000 users and $1,130 for 25,000, with unlimited storage.
TalkJS Basic is $279 a month for 10,000 users, and Growth is $569 for 25,000, billed monthly. That's about half of PubNub's estimate at both sizes. The TalkJS vs PubNub comparison prices both at four sizes and goes through them feature by feature.
How do you move your PubNub messages to TalkJS?
- Create your users in TalkJS, then one conversation per PubNub channel, with the channel's members as participants.
- Read each channel's history with
fetchMessages(). One call returns up to 100 messages for one channel, oldest first. When there are more, call again withstartset to the timetoken of the oldest message you got. - Send the messages to the TalkJS import endpoint with each one's original send time as
createdAt, in milliseconds. They show up in the conversation as they were sent.
Run the export before messages age out of your PubNub retention window, which is 7 days on the Free plan. Want a hand? Tell us about your setup on the TalkJS vs PubNub page, and we'll plan the move with you. Once you're live, support on every plan is a chat with our engineers.
What other PubNub alternatives are there?
Stream, Sendbird and CometChat also ship chat SDKs with UI kits and charge per monthly active user. Of the four, TalkJS costs the least at both 10,000 and 25,000 users: Best chat APIs and SDKs has each one's price. Twilio Conversations is Twilio's messaging API, also billed per active user.
Ably and Pusher Channels are hosted pub/sub services, like the layer of PubNub under its Chat SDK: moving to one swaps the connection and leaves the chat for you to build. Firebase Realtime Database stores and syncs data you can build chat on, and AWS AppSync gives AWS teams GraphQL with real-time updates over WebSockets. Centrifugo and Socket.IO are servers you run yourself. With any of these, you're still building the UI, history, notifications and moderation from the table above. TalkJS comes with all four, and it already carries more than 130 million messages a month for apps in 90+ countries.
FAQ
Is PubNub free?
Yes, for up to 200 monthly active users or 1 million transactions a month, with 1 GB of data stored for 7 days. Past that, PubNub asks you to move to Starter. TalkJS is free for as long as you build and test, and you pay when you go live. Try TalkJS for free.