Server SDK
The core real-time chat engine. Attach ChatEngine to any Node.js HTTP server.
Server SDK
@ravex/server is the heart of ravex. It turns any standard Node.js HTTP server into a powerful, typed real-time chat backend.
Features
- Room management (create, join, leave, kick, members)
- Presence system with automatic away detection
- Typing indicators with debounce/throttle
- Message editing, deletion, reactions, and read receipts
- Built-in rate limiting
- Optional persistence adapters
- Full TypeScript support
Quick Links
Architecture
The engine is built around three main pieces:
ChatEngine— The main class you instantiate- Managers (RoomManager, UserManager) — Internal state handling
- Handlers (Message, Presence, Typing) — Business logic for each domain
You rarely need to touch the internals — the public API on ChatEngine and the configuration options cover most use cases.