
Centrifugo
Self-hosted scalable real-time pub/sub messaging server
Centrifugo delivers channel-based real-time messages to online clients over WebSocket, SSE, HTTP streaming, gRPC, and WebTransport. Backends publish via HTTP or gRPC APIs.
Ably by Ably Real-time Ltd. is a commercial product. These open-source projects say they can replace it.
The most popular open-source alternative to Ably is NATS Server, with 21.2k GitHub stars. Other open-source alternatives to Ably are Centrifugo. Most Ably alternatives here are Messaging & Event Streaming tools. The first 1 say in their own README or website that they can replace Ably (the quote is shown under each one); the other 1 do the same job, shown with their own description.
Stars and activity updated 27 November 2026.

Self-hosted scalable real-time pub/sub messaging server
Centrifugo delivers channel-based real-time messages to online clients over WebSocket, SSE, HTTP streaming, gRPC, and WebTransport. Backends publish via HTTP or gRPC APIs.
“Centrifugo is an open-source real-time messaging server — a self-hosted alternative to PubNub, Pusher, Ably, Socket.IO, Phoenix.PubSub & SignalR.”
These projects don't call themselves a Ably alternative, but two independent checks of their own description found they do the same main job.

High-performance cloud and edge messaging server
The NATS server is the messaging runtime for services and devices, aimed at distributed deployments from data centers to constrained edge hardware
“NATS is a simple, secure and performant communications system for digital systems, services and devices.”
Yes. 2 open-source projects can replace Ably, for example NATS Server and Centrifugo. 1 of them says so in its own documentation; the other 1 do the same job.
NATS Server (21.2k GitHub stars) is the most popular open-source alternative to Ably on GitHub. Centrifugo has the most recent code changes. The best choice depends on your needs: compare them side by side, for example NATS Server vs Centrifugo.
All of the 2 projects listed here are free to use under an open-source license, with no license fee: all permissive (such as Apache-2.0). Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.