Product comparison · · 4 min read

PubNub alternatives for chat, and the code you delete when you switch

Which PubNub alternatives come with the chat built in, and what each PubNub building block becomes when you move your chat to TalkJS.

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 usesOn TalkJSWhat leaves your code
Chat Components, or screens you built on the Chat SDKA pre-built chat UI for React, React Native, Flutter, Vue, Angular and Web Components, styled with themesYour inbox, message list and message field
Channels, with users and memberships in App ContextConversations with participants. You still sync your users from your appCode that keeps channel members and metadata in sync
Message PersistenceEvery message kept, on every planHistory paging for the UI, and the retention setting
PresenceA status indicator that shows who's onlinePresence listeners and the online dot
Typing, reactions, read receipts and unread counts from the Chat SDKTyping indicator, emoji reactions (custom emojis too), read receipts and unread tracking, drawn in the UIThe UI you draw for each of them
Quotes and repliesMessage replies, shown with the message they answerYour reply view
Moderation code you run in FunctionsForbidden words and patterns, hidden emails, phone numbers and links, a report button, roles and bans, plus webhooks for an AI moderation serviceYour moderation Function
Mobile Push to APNs and FCMPush through APNs and FCM, plus email and SMS notifications. Replies to a notification email land back in the chatPush payloads on every publish
Access Manager tokensAuthentication with a token your server signsPubNub grant code. You sign a TalkJS token instead
Lena · Vintage framesOnlinereplaces Presence
Does the oak frame come in 50 × 70?
Does the oak frame come in 50 × 70?
Yes, I can ship it Monday.
replaces quotes and replies
Perfect, ordering now.
👍 1replaces reactions
Thanks! I'll send tracking.
✓✓ Readreplaces read receipts
Lena is typing…replaces typing
Say something…
An example TalkJS conversation. Each blue label names the PubNub piece that part of the built-in UI replaces.

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.

TalkJS chat UI shown in three different themes

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?

  1. Create your users in TalkJS, then one conversation per PubNub channel, with the channel's members as participants.
  2. 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 with start set to the timetoken of the oldest message you got.
  3. 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.