FluxyChat

Core SDK

Core SDK

FluxyChatClient, React hooks, and room session helpers.

FluxyChat ships two npm packages for app developers:

Minimal client

import { FluxyChatClient } from "@fluxy-chat/sdk";

const client = new FluxyChatClient({
  baseUrl: "https://your-worker.workers.dev",
  userId: "alice",
  token: memberJwt,
});

await client.connect();
await client.joinRoom("general");
await client.sendMessage("general", "Hello!");

Topics

GuideWhat it covers
useChatReact hook — messages, send, pagination, agents
Connection stateWebSocket, SSE, polling fallback
AgentsinvokeAgent, handoff, mention triggers
InboxCross-room unread and snooze
User channelPer-user WebSocket for inbox and notifications
NotificationsUser channel events
Web pushuseWebPush browser hook
Presence & typingRoom presence and typing indicators
SearchFull-text message search
Read receiptsUnread counts and mark-read
Message middlewareHooks before send/receive
Voice messagesUpload voice clips with transcription

Install:

npm install @fluxy-chat/sdk @fluxy-chat/react zustand

Peer deps: React 18+ for hooks, zustand 5+ for room store helpers.

On this page