15 open-source alternatives ranked by real activity

Open-source PubNub alternatives

A curated, ranked list of the 15 best open-source alternatives to PubNub.

The best open-source alternative to PubNub is Rocket.Chat. If that doesn't suit you, other good options are Mattermost, Kafka, Zulip and NATS.

Commercial alternatives to PubNub include Ably, Liveblocks, Pusher and Stream. See all 21.

PubNub alternatives are mainly backend-as-a-service tools, but some are also team chat tools and infrastructure & container tools. 14 of them shipped code in the last 30 days, 15 can be self-hosted, and 9 use a permissive licence.

Last updated November 13, 2026 · ranked by GitHub stars, growth and recent commits

Rocket.Chat

A customizable team communications platform with real-time chat and video, aimed at organizations with strict data protection needs and offered self-hosted, cloud or air-gapped.

GitHub stars
46k
Last commit
today
Latest release
9.0.0
Self-hosted
Yes
Hosted version
Available
rocket.chatRocket.Chat homepage screenshot

Rocket.Chat is a communications platform written in TypeScript for teams and organizations that care about data protection. It supports real-time conversations between colleagues, with partner companies, and with customers or citizens, and its topics place it in the same space as Slack, with WebRTC for calls and meetings.

The product emphasizes control over where and how it runs. Deployment options include self-hosted servers, a managed cloud and fully air-gapped environments, with a scalable architecture and performance monitoring for workspace administration. Security and sovereignty features, including identity management, are a core part of the pitch, and the platform is built to be highly customizable, so organizations can adapt it to their own workflows and integrations.

The repository's license is listed as 'Other' on GitHub, although the topics reference an MIT-licensed community core, so confirm which components fall under which terms before relying on it commercially. It suits government bodies, enterprises and regulated industries that want a Slack-style tool they can host themselves.

Key features

  • Real-time team messaging and channels
  • Video conferencing built on WebRTC
  • Self-hosted, cloud and air-gapped deployment
  • Scalable architecture with performance monitoring
  • Identity and security controls for data sovereignty
  • Highly customizable platform

Pricing: Rocket.Chat does not publish prices. Commercial, Government and Defense plans are quoted through its sales team, with on-premise and air-gapped deployment options.

Mattermost

A self-hosted, open-core collaboration platform combining team chat, automated workflows, voice calls, screen sharing and AI integrations.

GitHub stars
40k
Last commit
yesterday
Latest release
v12.0.2
Self-hosted
Yes
Hosted version
Available
mattermost.comMattermost homepage screenshot

Mattermost is an open-core collaboration platform you host yourself, covering team chat, workflow automation, voice calls, screen sharing and AI integrations. This repository is the primary source for core development of the platform. The server is built with Go and React, ships as one Linux binary and depends on PostgreSQL. GitHub lists the license as 'Other'.

Each month, on the 16th, a newly compiled release is published under the MIT license. You can deploy Mattermost on-premises or try it in the cloud. The project highlights use cases such as DevSecOps, incident resolution and IT service desk, and it offers native clients for Android, iOS, Windows, macOS and Linux in addition to the web interface.

Installation options include Docker, Ubuntu, a tar archive, Kubernetes, Helm and an Omnibus package. Developers can build integrations through APIs, webhooks, slash commands, Apps and plugins, and the repository links product and developer documentation, security bulletins and contribution guides. It suits engineering, security and operations teams that want controlled, self-managed team messaging.

Key features

  • Team chat with channels and threads
  • Built-in workflow automation
  • Voice calling and screen sharing
  • Integration with AI tools
  • Single Linux binary with PostgreSQL
  • Native mobile and desktop apps
  • APIs, webhooks, slash commands and plugins

Pricing: Mattermost does not publish prices. Professional, Enterprise and Enterprise Advanced are quoted through sales; a limited-use edition and a 1-hour trial environment are offered for evaluation.

Kafka

Apache Kafka is an open-source platform for distributed event streaming, used in data pipelines, streaming analytics and data integration.

GitHub stars
34k
Last commit
yesterday
Licence
Apache-2.0
Self-hosted
Yes
kafka.apache.orgKafka homepage screenshot

Apache Kafka is a platform for distributed event streaming. Teams use it to move and process streams of events for data pipelines, streaming analytics, data integration and business-critical applications. The code lives in the Apache Software Foundation repository, is written mainly in Java with Scala for parts of the broker, and is released under the Apache-2.0 license.

Kafka is installed software that you run yourself. The project builds and tests against recent Java versions, supports Scala 2.13 only, and documents how to build a JAR and start a broker through its quickstart. The repository also contains client and streams modules, along with test tooling for unit and integration runs. Because Kafka is operated as infrastructure, adopters typically run clusters on their own servers or on Kubernetes, though managed services from other vendors exist.

Key features

  • Distributed event streaming platform
  • Durable publish and subscribe topics
  • Client libraries and a streams module
  • Suited to data pipelines and integration
  • Runs on Java with Scala 2.13
  • Quickstart for building and running a broker

Pricing: Free and open source under the Apache-2.0 license.

Zulip

An open-source team chat app that organizes conversations into topic-based threads, designed for both live and asynchronous discussion, available hosted or self-hosted.

GitHub stars
26k
Last commit
today
Latest release
13.0
Licence
Apache-2.0
Self-hosted
Yes
Hosted version
Available
zulip.comZulip homepage screenshot

Zulip is an open-source team chat application whose defining feature is topic-based threading within channels. The idea is to blend the strengths of email and chat, so that remote and distributed teams can follow several conversations at once and catch up later without losing context. Its topics tag it as a Slack alternative.

The project is developed by a distributed community, with more than a thousand contributors and a steady flow of commits each month, and it says it has put effort into readable, tested code and extensive contributor documentation. The server is a Python web application, and there are web, desktop, built on Electron, and mobile clients, built with React Native. Zulip is used by companies and open-source projects alike, and the README says it is designed for both live and asynchronous communication.

Zulip is licensed under Apache-2.0. You can run the server on your own infrastructure, which gives full control over data, or use the hosted service operated by the project's company. It suits teams that find flat channel-based chat chaotic and want a more structured way to keep discussions organized.

Key features

  • Topic-based threading in channels
  • Live and asynchronous conversations
  • Web, desktop and mobile clients
  • Self-hosted server or hosted service
  • Extensive contributor documentation
  • Python and JavaScript codebase

Pricing: Cloud has a free plan, with Standard at $8 and Plus at $12 per user per month ($6.67 and $10 billed annually). Self-hosted is free, with Basic at $3.50 and Business at $8 per user per month; Enterprise is by contact.

NATS

NATS Server is a high-performance messaging server for distributed systems, microservices and edge devices, written in Go.

GitHub stars
21k
Last commit
2 days ago
Latest release
v2.15.3
Licence
Apache-2.0
Self-hosted
Yes
nats.ioNATS homepage screenshot

NATS is a messaging system for connecting applications, services and devices, and nats-server is its Go implementation. It works as a message bus and queue for microservices and other distributed systems, and the server is a single lightweight program that runs in many different environments.

The server can run on-premise, in the cloud, at the edge and even on a Raspberry Pi. The project lists more than 40 client language implementations, so services written in different languages can talk to one another. NATS is part of the Cloud Native Computing Foundation and aims to simplify the design and operation of modern distributed systems.

NATS Server is free software under the Apache 2.0 license and is distributed through Docker images and GitHub releases. Repository topics point to uses in cloud-native microservices, connected vehicles and edge computing.

Key features

  • High-performance messaging server written in Go
  • Message bus and queue patterns
  • Over 40 client language libraries
  • Runs on-premise, in the cloud or at the edge
  • Small footprint that fits a Raspberry Pi
  • Docker images available

Pricing: Free and open source under the Apache 2.0 license.

EMQX

EMQX is a unified MQTT platform that connects, processes, and streams real-time data from millions of devices to cloud, AI, and analytics systems.

GitHub stars
17k
Last commit
yesterday
Latest release
6.3.3
Self-hosted
Yes
Hosted version
Available
emqx.comEMQX homepage screenshot

EMQX is a unified MQTT platform designed for connecting, processing, and streaming real-time data from millions of devices to cloud, AI, and analytics systems. It combines an MQTT broker, SQL-based rules engine, and data integration into one platform, enabling users to turn IoT data into actionable intelligence. The platform is trusted by global leaders in automotive, manufacturing, and AI infrastructure.

Key features

  • Scales to 100M+ devices and millions of messages per second with sub-ms latency within a single cluster
  • Combines MQTT broker, SQL-based rules engine, and data integration into one platform
  • Empowers AI agents with real-time access to physical devices using built-in MCP support
  • Offers a portfolio including EMQX Cloud (fully managed), EMQX Enterprise (self-managed), EMQX Edge (lightweight edge), and EMQX Neuron

OpenIM

An open-source instant messaging SDK and server for developers who want to build chat, user management and group messaging into their own apps.

GitHub stars
17k
Last commit
3 days ago
Latest release
v3.8.3-patch.18
Licence
Apache-2.0
Self-hosted
Yes
openim.ioOpenIM homepage screenshot

OpenIM is an open-source instant messaging solution aimed at developers rather than end users. The project contrasts itself with standalone chat apps such as Telegram, Signal and Rocket.Chat, saying it is a set of building blocks for adding messaging to your own application instead of an installable chat product.

It consists of the OpenIM SDK, a client-side library, and the OpenIM Server, written in Go. Together they handle sending and receiving messages, managing users and managing groups, so teams can embed chat into social, marketplace, enterprise or other apps without building the infrastructure themselves. The README is translated into many languages and links to community channels on Twitter, Slack and WeChat, and topics mention IM, chat and messaging.

OpenIM is Apache-2.0 licensed and runs on your own servers. It suits product teams and agencies who need to own their messaging stack, for example for data-residency or customization reasons, and who are comfortable operating a Go back end.

Key features

  • Instant messaging server in Go
  • Client SDK for embedding chat
  • Message sending and receiving
  • User account management
  • Group chat management
  • Deploy on your own servers

Pricing: Free and open source under the Apache-2.0 license.

Centrifugo

Centrifugo is a self-hosted, language-agnostic real-time messaging server that pushes messages to browsers and apps over WebSocket and other transports, an alternative to Pusher and Ably.

GitHub stars
11k
Last commit
2 days ago
Latest release
v6.10.3
Licence
Apache-2.0
Self-hosted
Yes
centrifugal.devCentrifugo homepage screenshot

This entry covers Centrifugo, the real-time messaging server from the Centrifugal project. It is an open-source PUB/SUB server for user-facing messaging: your backend publishes into channels through a simple HTTP or gRPC API, and clients subscribe to those channels using official SDKs, or a unidirectional approach that needs no SDK.

Messages reach online users over WebSocket, HTTP streaming, Server-Sent Events, gRPC and WebTransport. Because it is language-agnostic, it can sit beside any backend and separates the business logic from the real-time transport. It is used for chat apps, live comments, multiplayer games, data visualizations, collaborative tools and streaming AI responses. An embedded admin UI shows live connections and lets you publish test messages, and Redis support allows scaling out.

Centrifugo is written in Go and licensed under Apache-2.0. It is pitched as a self-run replacement for hosted services like Pusher, Ably and PubNub and for libraries such as socket.io, Phoenix.PubSub and SignalR, and a Docker command starts it in a minute for local trials. The README warns that the insecure flags used in the quick start must never be used in production.

Key features

  • Channel-based PUB/SUB messaging
  • WebSocket, SSE, HTTP streaming and gRPC transports
  • WebTransport support for browsers
  • HTTP and gRPC publish API
  • Official client SDKs
  • Embedded admin UI
  • Scaling out with Redis

Pricing: Free and open source under the Apache-2.0 licence.

RabbitMQ

Multi-protocol message and streaming broker supporting AMQP, MQTT and STOMP, used to decouple services in distributed systems.

GitHub stars
14k
Last commit
2 days ago
Latest release
v4.4.0
Self-hosted
Yes
rabbitmq.comRabbitMQ homepage screenshot

RabbitMQ is an open-source message broker that also supports streaming. Applications publish messages to the broker and other applications consume them, which lets services communicate without depending on each other being available at the same moment. This repository contains the core server and the built-in tier 1 plugins.

The broker speaks several protocols: AMQP 0-9-1, AMQP 1.0, its own Stream Protocol, MQTT versions 3.1, 3.1.1 and 5.0, STOMP 1.0 through 1.2, and MQTT and STOMP over WebSocket. Quorum queues provide replicated, consistency-oriented queues, while streams offer a persistent, replicated append-only log that consumers can read without removing messages. Monitoring works with Prometheus and Grafana.

The server is licensed under the MPL 2.0 and can be installed on many platforms, with a Kubernetes Cluster Operator for container deployments. The documentation includes tutorials, a production checklist and clustering guides. Commercial editions and paid support from Broadcom exist alongside the community edition, which is supported through GitHub Discussions and Discord.

Key features

  • AMQP 0-9-1 and AMQP 1.0 messaging
  • MQTT and STOMP protocol support
  • Replicated quorum queues
  • Persistent replicated streams
  • Kubernetes Cluster Operator
  • Prometheus and Grafana monitoring

Pricing: Open source under the MPL 2.0; commercial editions and paid support are available from Broadcom.

RedisInsight

Redis Insight is a visual developer tool from Redis for browsing, querying and optimizing Redis data, with a workbench, profiler and slow log analysis.

GitHub stars
8.9k
Last commit
2 days ago
Latest release
3.8.0
redis.ioRedisInsight homepage screenshot

Redis Insight is a graphical client for Redis, published by Redis. It helps developers design, build and tune applications by letting them browse, filter and visualize key-value data and view values in formats such as JSON, Hex and ASCII.

It offers create, read, update and delete support for lists, hashes, strings, sets, sorted sets, streams and JSON, plus management of vector sets, including similarity search. A Workbench provides a command-line interface with command auto-complete, while Profiler shows commands sent to Redis in real time and SlowLog highlights slow operations. Pub/Sub support, bulk deletion by filter and in-context recommendations for performance and memory use round out the tool, along with interactive tutorials.

The application is built with Electron, the Monaco editor and Node.js, and it works with Redis modules. The repository licence is listed as non-standard rather than a common open-source licence, so check the repository for the exact terms before redistributing.

Key features

  • Browse and filter Redis keys visually
  • CRUD for core data types and JSON
  • Vector set creation and similarity search
  • Workbench with command auto-complete
  • Real-time command profiler
  • SlowLog analysis and Pub/Sub support

5 more PubNub alternatives

Commercial PubNub alternatives

Hosted, closed-source products that compete with PubNub. Showing 12 of 21.

See every PubNub alternative on its tool page

PubNub alternatives: questions

What is the best open-source alternative to PubNub?
Rocket.Chat is the top-ranked open-source alternative to PubNub on Enlisted: A customizable team communications platform with real-time chat and video, aimed at organizations with strict data protection needs and offered self-hosted, cloud or air-gapped. Other strong options are Mattermost, Kafka, Zulip and NATS.
What are the best commercial alternatives to PubNub?
Ably, Liveblocks, Pusher, Stream and Sendbird are among the hosted, closed-source alternatives to PubNub listed on Enlisted, which lists 21 in total. Compare their pricing and features on each tool page.
Are these PubNub alternatives free?
All 15 are open source, so the code is free to use under its licence, and all of them can be self-hosted on your own server or computer. 5 also offer a paid or managed cloud version if you'd rather not host it yourself.
How is this list of PubNub alternatives ranked?
By a score built from GitHub stars, star growth over the last 30 days and how recently the code changed. 14 of these projects shipped code in the last 30 days. Data is refreshed daily, and nobody can pay to move up.

People also look for alternatives to…

View all