Categories
Self-Hosted Instant Messaging MQTT Real-Time Messaging WebSocket Chat Infrastructure AI Streaming Agent WorkflowsStars
Forks
Watchers
Developer links
WuKongIM
WuKongIM is an open-source messaging server that gives your product real-time chat, notifications, and streaming AI conversations on infrastructure you control, with no per-user SaaS bill. Your application keeps its own accounts, permissions, and interface, while WuKongIM handles persistent connections, per-channel message ordering, offline sync, multi-device sessions, and presence across personal, group, and custom channels, including groups of 100,000 members. For AI workloads, an assistant can push an answer to the client chunk by chunk, users can cancel mid-reply, and a reconnecting device recovers the finished text. The agent demo shows live tool-call traces and approval cards that stay in sync across devices, and the support demo lets a bot greet visitors before a human agent takes over with the whole conversation intact. Live-room features cover barrage messages, likes, pinned host notices, and per-room muting, while preview MQTT 5 support and recoverable device commands bring fleets of IoT devices onto the same channels. An embedded Manager console tracks node health, hash slot placement, tasks, connections, and backups behind role-based logins, and a read-only Operations MCP endpoint lets AI assistants diagnose the cluster. Client SDKs cover Android, iOS, Web, Flutter, and HarmonyOS. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. Apache-2.0 licensed.
Benefits
- No Database, Cache, or Queue
- Message storage, metadata, replication, and online backup are built into the server, so nothing like MySQL, Redis, Kafka, or etcd has to be provisioned and kept healthy next to it.
- Scale From One Node to Many
- A single node already runs the same 256 hash slot cluster model as larger deployments, so you can add or drain nodes online without changing how your application sends messages.
- AI Replies That Survive Reconnects
- Assistants append incremental chunks through the event API, users can cancel mid-answer, and a reconnecting client recovers the finished snapshot instead of polling the whole message history.
- Operate It With Full Visibility
- The embedded Manager console, bundled Prometheus metrics, and the wkcli tool expose node health, slot placement, tasks, backups, and benchmarks, so operators see cluster state without extra monitoring tooling.
Features
- Durable AI Streaming
- The /message/event endpoint accepts stream.open, stream.delta, and stream.finish events with idempotent event IDs, delivering incremental LLM output to online sessions over durable channels.
- Multi-Protocol Gateway
- Clients connect over the binary WKProto protocol on TCP, WebSocket, or WSS, with JSON-RPC and preview MQTT 5 options, while backends use the HTTP API and synchronous before_send webhooks.
- Embedded Manager Console
- A JWT and RBAC protected web console on port 5301 shows nodes, hash slots, tasks, channels, connections, messages, diagnostics, and online backup and restore controls.
- Cross-Platform Client SDKs
- WuKongIMSDK adds local storage, conversations, and unread counts on Android, iOS, Web, Flutter, and HarmonyOS; the lightweight EasySDK also reaches Rust, C#, C++, and Python.
- Plugins and Operations MCP
- Hot-reload .wkp plugins extend the server inside a sandbox, and a read-only MCP endpoint with twelve bounded tools lets AI assistants inspect cluster health, logs, and backups.
- Six Runnable Demos
- Chat, streaming replies, customer support, agent tool calls, MQTT smart store, and live-room barrage demos start from one launcher with a simulated model, so no API key is required.