Beta build. Report issues to your operator channel.
NewFree hosted tier. SDK live in minutes →

Realtime platform on Cloudflare

Ship chat and live productfrom one SDK.

In-app chat, voice AI, live location, stream, collab, and device sync, plus Slack, Discord, and 12 more channels. Self-host on Workers or start on hosted cloud.

pnpm add @fluxy-chat/sdk
Self-host on CloudflareMIT licensednpm & pnpm

Your app

Live preview

app/chat/page.tsx
support-room
Live
PT
Write a message…

Wire the client once. Tabs cycle chat, agents, location, stream, collab, game, IoT, and channel adapters — same SDK, same room.

Live Playground

Try it right now.No signup required.

Jump into a live room with an AI agent. Ask questions, test real-time messaging, see how Durable Objects work. Everything runs on Cloudflare's edge network.

Works with stacks you already use

One SDK across common frontends and runtimes. Fork the repo when you want full control.

Next.jsReactVueViteNodeWorkersReact NativeSvelteRemixTanStackExpressFastify
Next.jsReactVueViteNodeWorkersReact NativeSvelteRemixTanStackExpressFastify

Featured on

Fluxychat on Product Hunt: realtime chat API on Cloudflare, hosted or self-hostFluxychat badge (SaaSHub approved)Check out Fluxychat at SideProjectors

Deploy in your account. Quotas live in D1. Console access can require a one-time ack; usage still runs through your Worker with your keys.

14 platforms

Slack, Discord, Telegram, WhatsApp, Teams, and 9 more on one unified adapter interface.

AI-native

Streaming markdown, tool calling, MCP client, and LLM middleware pipeline built in.

30+ SDK modules

Rooms, presence, typing, history, agents, webhooks, cards, and more, all on @fluxy-chat/sdk.

Durable agents

WorkflowAgent persists to D1, survives deploys, and resumes from the last step.

Realtime voice

Bidirectional voice-to-voice AI with provider-agnostic abstraction.

MIT self-host

Deploy the Worker + D1 in your Cloudflare account. Read every line of source.

Messaging basics, on the edge

Channels, presence, mentions, and webhooks without bolting on another realtime vendor. Tap or hover a row on desktop.

Threads, polls, and translation are up to your product layer. FluxyChat ships the realtime core: rooms, presence, typing, delivery, and AI agent events.

What ships in the box

Edge delivery, AI-native streaming, 14 platform adapters, and a console for day-two work. You own the UI; we handle rooms, delivery, agents, and ops hooks.

Most teams glue together chat, AI, support, and compliance from different vendors. That gets expensive and hard to audit. FluxyChat puts 14 platform adapters, streaming AI, MCP tools, and governance hooks on the edge you already run.

  • 14 platform adapters (Slack, Discord, Telegram, WhatsApp, Teams, +9)
  • AI-native streaming with tool calling & HITL approval
  • MCP client for external tool servers
  • LLM middleware pipeline (guardrails, caching, RAG, PII redaction)
  • WorkflowAgent for durable agent execution
  • Card builder with Slack Block Kit & Teams Adaptive Cards
  • DevTools playground & OpenTelemetry tracing
  • GDPR export, audit trails, and retention policies

Already set up? Open the console for rooms, agents, and billing.

Built-in architecture

14 platform adapters

Slack, Discord, Telegram, WhatsApp, Teams, Email, SMS, Webhook, Matrix, and 5 more on one unified interface

Streaming markdown

Table buffering, code fence tracking, inline marker healing for clean partial renders during AI streaming

MCP client + tool calling

Consume any MCP-compatible tool server. Auto-convert to LLM function-calling format with HITL approval gates

Card builder

Composable rich messaging with JSX or function API. Slack Block Kit and Teams Adaptive Card renderers built in

Middleware pipeline

Transform messages and AI responses before they land

Moderate, validate, enrich, and fan out from the edge. LLM middleware supports guardrails, caching, RAG injection, PII redaction, and logging via wrapGenerate / wrapStream / transformParams. Policy code stays on the data path, not in a sidecar you forget to deploy.

Developers

SDK, CLI, docs, and console in one repo

Auth, rooms, and retries sit behind hooks and route handlers. Scaffold a new project with create-fluxy-chat CLI. When you need keys, quotas, or billing, open the operator UI instead of wiring another admin surface.

Where teams start

AI-powered SaaS with in-app chat

Stream AI responses with tool calling, build copilots with HITL approval, and ship agent features on the same WebSocket as user messages.

Multi-platform messaging apps

One adapter interface across Slack, Discord, Telegram, WhatsApp, Teams, and 9 more. Unified card builder for rich messages across platforms.

Regulated & compliance-heavy teams

GDPR export, erasure, audit trails, retention policies, and signed webhooks, enforced at the edge rather than sold as a separate SKU.

Developer teams shipping fast

JWT auth, SDK hooks, create-fluxy-chat CLI scaffolding, and a console for day-two ops, without becoming WebSocket infrastructure experts.

Production ready

Live verticals, voice, and the server event bus

Polls, breakouts, stage go-live, collab CRDT, fleet GPS, and hybrid check-in fan out as server_event frames on the room WebSocket. Voice AI, streaming AI, MCP tools, and durable agents sit on the same worker, with production readiness labels on every surface.

Multi-platform adapters

14 platform adapters (Slack, Teams, Discord, Telegram, WhatsApp, and more) behind a unified interface.

Streaming markdown

Table buffering, code fence tracking, and inline marker healing for clean partial renders during AI streaming.

Card element builder

Compose rich interactive messages with buttons, tables, and sections: JSX or function API, Slack Block Kit and Teams Adaptive Cards.

AI tool presets

Reader, messenger, and moderator tool groups with per-tool approval gates for enterprise governance.

Stream resumption

Reconnect to in-progress AI responses after page refresh or network drop. No lost tokens.

MCP client

Consume any MCP-compatible tool server. Auto-convert tools to LLM function-calling format.

LLM middleware

Pluggable pipeline: guardrails, caching, RAG injection, PII redaction, logging. wrapGenerate, wrapStream, transformParams.

DevTools web UI

Visual inspector for LLM calls, tool executions, and token usage. OpenTelemetry with GenAI semantic conventions.

WorkflowAgent

Durable agent execution that survives deploys and restarts. State persisted to D1, automatic resume from last step.

Sandbox support

Safely execute untrusted code in isolated environments with portable command execution.

Realtime voice

STT → LLM → TTS pipeline with latency metrics. WebRTC realtime with automatic fallback to chunked audio or text-only.

Conversation transcripts

Per-user message persistence keyed by cross-platform identity. Append, list, filter by platform/thread/role, and delete, with configurable retention and capping.

Slash commands & regex routing

Built-in slash command parser with positional/named args, aliases, and help. Regex-based message pattern matching for keyword triggers without @-mentions.

Ephemeral & chainable messages

Post ephemeral messages with DM fallback. Chainable SentMessage with .edit(), .delete(), .addReaction(), .removeReaction().

Platform modules

Stream, game, IoT, spatial twins, cross-channel continuity, and marketplace apps, each with docs, demos, and readiness badges.

Platform Extensions

App Marketplace · Cross-Channel · Spatial · Web3

Extend FluxyChat with apps, unify sessions across devices, build spatial experiences, and add Web3 auth.

App Marketplace

Publish and install apps with OAuth scoped grants. App review, versioning, and tenant installation.

Try it

Cross-Channel Continuity

Unify user sessions across web, mobile, voice, and bot. Identity linking, channel switching, device replay.

Try it

Spatial & Digital Twins

Create 3D room scenes with entities, agent access grants, AR overlays, and spatial audio presences.

Try it

Web3 Chat

Wallet-based authentication, token-gated rooms, on-chain message commitments with hash verification.

Try it

Agent Marketplace

Browse and install pre-built agent skills by category. Community templates with versioning and config schemas.

Try it

Chatbot Builder

Visual trigger-action rule engine with conditions, priorities, and simulated event testing.

Try it

FluxyStream: Live Broadcasting

Create events, provision ingest, go live with HLS playback. Chat overlay and reactions on the same room.

Try it

WebTransport Readiness

Auto-negotiation WebTransport → WebSocket → SSE → Long Poll. Feature detection with automatic fallback chain.

Try it

AI Agent Platform

No-code agent builder, versioning, CI/CD deploy, sandbox testing, cost tracking, rate limiting, A/B testing, personality designer, emotional intelligence, cross-platform memory.

Try it

FluxyGame: Multiplayer SDK

Matchmaking, server-authoritative state sync @20fps, AI NPCs with memory, tournaments, replay system, party system. Game room = chat room.

Try it

FluxyIoT: MQTT Bridge & Device Fleet

Device provisioning, rule engine, device shadow (desired vs reported), OTA updates, geofencing, AI device doctor, device-as-room-member.

Try it

FluxyEdu: Live classroom

Polls, breakouts, attendance, and stage go-live with server_event fan-out on the room WebSocket.

Try it

Realtime SDK

One SDK for chat, location, stream, and more

Start with in-app chat. Add location, push, voice AI, collab, HLS stream, multiplayer, IoT, fleet GPS, spatial twins, or 14 channel adapters: one SDK, one worker, one room WebSocket.

Ship a chat feature in an afternoon.

Rooms, presence, threads, and reactions over one WebSocket. Vertical events (polls, breakouts, stage live) arrive on the same connection via onServerEvent — no second subscription layer.

const { messages, sendMessage } = useChat({
  roomId: "chat:room-42",
  client,
  onServerEvent: (ev) => {
    if (ev.name === "edu.poll.created") showPoll(ev.data);
  },
});

sendMessage("Hello from FluxyChat");
Open the live SDK demos
Ship Squad3 online
typing
Type your message...

FluxyCollab

Everything teams need to build together

Whiteboard, kanban, documents, spreadsheets, and AI, all synced in real-time via CRDT. No save button required.

Spatial ViewDocumentSpreadsheetFilesAI SummariesExplore all

FluxyStream

Live streaming with real-time chat

Broadcast live video via WebRTC, RTMP, or OBS. Viewers watch with integrated chat, polls, virtual gifts, and AI moderation, all in one room.

Live video broadcast

WebRTC + Cloudflare Stream HLS relay with adaptive bitrate, DVR, and multi-resolution.

Chat overlay

Integrated FluxyChat room inside the player. Viewers chat, react, and engage in real-time.

Polls & quizzes

Create polls and quizzes during the stream. Results update in real-time for everyone.

AI moderation

Automated content moderation powered by DLP and AI agents. Keep chat clean at scale.

Virtual gifts & tipping

Viewers send virtual gifts with physics animations. Stripe-powered tipping for creators.

AI highlights

Automatic highlight reels generated from chat spikes, reactions, and viewer sentiment.

LIVE

Welcome to the stream everyone! 🎉

8424.2K
Stream chat2.1K viewers
4 more typing...
Type a message...

Enterprise-ready

Self-serve plans cover most production traffic. When governance matters, these capabilities are built into the worker, not a separate SKU bolted on later.

  • SSO / SAML & SCIM provisioning
  • Audit logs with export schedules
  • Retention policies & legal hold
  • IP whitelisting & DLP integrations
  • GDPR export and erasure tools
  • Signed webhooks with retry & delivery logs
  • Per-tool approval gates for AI agents
  • OpenTelemetry tracing with GenAI semantic conventions

Explore capabilities in the features console.

Pricing

One plan covers chat, AI agents, webhooks, and platform modules. Undercuts Pusher and Ably on message quotas. Starter at $20/mo vs Pusher Startup at $49/mo for similar traffic.

Console routes can require a one-time ack on your dashboard host. Billable usage still needs your Worker credentials.

Self-serve checkout today

Free includes 200,000 messages, 5,000 agent invokes, and 50,000 webhook deliveries /mo. Pro raises each to 10× for $50/mo, ideal for production rooms with active agents.

Free

$0/mo

Try the stack without a card.

  • 200,000 messages / month
  • 5,000 agent invokes / month
  • 50,000 webhook deliveries / month
  • SDK, dashboard, and platform modules
  • Community support (GitHub + Discord: https://discord.gg/fluxychat)
  • One project, fair-use limits
  • Upgrade without migrating data
Create free account
Most teams start here

Starter

$20/mo

Production traffic with fixed monthly limits.

  • 500,000 messages / month
  • 10,000 agent invokes / month
  • 100,000 webhook deliveries / month
  • Chat, agents, stream, collab, game, IoT on one worker
  • Signed webhooks with retries
  • GDPR export and erasure endpoints
  • Email support (best effort)
Choose Starter

Pro

$50/mo

Heavy rooms, agents, and webhook volume.

  • 5,000,000 messages / month
  • 100,000 agent invokes / month
  • 1,000,000 webhook deliveries / month
  • 5M messages, 100k agent invokes, 1M webhook deliveries per month
  • Priority support
  • Custom retention and audit (contact us)
  • Annual invoicing on request
Choose Pro

Team

$99/mo

Multiple projects, more seats, same compliance posture as Pro.

  • 20,000,000 messages / month
  • 200,000 agent invokes / month
  • 1,000,000 webhook deliveries / month
  • 20M messages, 200k agent invokes, 1M webhook deliveries per month
  • Up to 5 projects and 5 team seats
  • Team member management and RBAC
  • Priority support, annual invoicing on request
Choose Team

Growth

From $199/mo

B2B SaaS with omnichannel, AI memory, and FTS search.

  • 100,000,000 messages / month
  • 1,000,000 agent invokes / month
  • 5,000,000 webhook deliveries / month
  • Multiple projects, omnichannel inbox (base)
  • AI memory and full-text search
  • Light moderation tooling
  • Annual invoicing on request
Choose Growth

or talk to us first →

Sales-led plans for governance and higher limits

Business

From $699/mo

Serious teams needing SSO and audit at scale.

  • SSO add-on
  • Custom domain and higher limits
  • Audit export schedules
  • Priority support, white-label lite
Contact sales

Enterprise

Custom

Regulated and large deployments.

  • SCIM and SLA
  • Retention and DLP pack
  • Compliance review
  • Dedicated support
Talk to us
Why usage-based quotas?

Cost tracks messages, AI invokes, and webhook volume. Self-serve plans include fixed monthly quotas; heavy usage can be metered on Growth and above.

Do AI agent invokes count against my quota?

Yes. Each plan includes a monthly agent invoke limit. Streaming AI, tool calls, and MCP interactions count as invokes.

Are stream, collab, game, and IoT modules extra?

No separate SKU. Platform modules run on the same room and worker. Quotas apply to messages and agent invokes like chat.

Enterprise vs Business?

Business is high-limit self-serve with SSO add-on and audit export. Enterprise adds SCIM, SLA, DLP, security review, and dedicated support.

Self-host vs hosted?

Same worker and SDK. Hosted is fastest to start; self-host gives full control on your Cloudflare account with MIT source.

Need enterprise SSO, VPC-style isolation, or custom SLOs? Email fluxychat@outlook.com.

How we compare

Not a feature shootout: rough fit vs Stream, Ably, Pusher, and DIY DO repos. Full compare · Leaving Pusher.

CapabilityTypical stream APIsTypical Ably-styleTypical Channels (Pusher-style)Fluxychat
Edge-native (Cloudflare Workers + DO + D1)Managed cloudManaged cloudManaged cloudDesigned for Workers + DO + D1
Multi-platform adapters (14 platforms)Limited / separate productN/AN/ASlack, Discord, Telegram, WhatsApp, Teams, +9, unified interface
AI-native streaming (markdown, tool calling)Add-on / separate productN/AN/AStreaming markdown, tool_call/tool_result, HITL approval
MCP client integrationN/AN/AN/AConsume any MCP tool server, auto-convert to function-calling
LLM middleware pipelineN/AN/AN/AwrapGenerate / wrapStream / transformParams, guardrails, RAG, PII
Durable agent execution (WorkflowAgent)N/AN/AN/APersists to D1, survives deploys, auto-resume from last step
In-app chat + operator consoleSeparate product areasConsole + APIsChannels dashboardFirst-party console in monorepo
Headless SDK (optimistic sends, reconnect state)Strong SDKsStrong SDKsChannels SDKs@fluxy-chat/sdk + vanilla store
Time to first message (CLI)SDK install + dashboard setupSDK install + dashboard setupSDK install + dashboard setupnpx create-fluxy-chat my-chat --minimal
Drop-in chat widget (no custom UI)UI kit / components (separate)Headless-firstHeadless-first@fluxy-chat/ui-kit, FluxyChatWidget + FluxyInboxPanel
Agent tool events on room WebSocketVariesSeparate productsN/Atool_call / tool_result on same timeline
Message templates + member preferences APIVariesN/ALimitedPOST /templates, member prefs PATCH
Reconnect, replay, and delivery state in SDKSDK features varySDK features varyChannels SDKconnectionState, loadMore, clientMessageId idempotency
Read receipts / unread badgesProduct features varyVaries by productNot first-class in ChannelsmarkReadLatest + room list unread in SDK/console
In-app notifications (mentions, DMs)Separate notification productsSeparate productsBeams (separate SKU)REST + SDK useNotifications on same Worker
Mobile push (FCM + APNs + Web Push)FCM/APNs via Stream PushPush notifications add-onBeams (separate product)FCM + APNs HTTP/2 + VAPID; per-env project_push_config; client delivery ack
Cross-room activity feedActivity feeds productN/AN/Auser_activity_feed + GET /user/activity-feed + mention fan-out
Support macros / canned responsesModeration / automationsN/AN/Asupport_canned_responses + /support/canned-responses
Client SDKs (mobile + game)iOS, Android, Flutter, UnityBroad SDK coverageiOS, Android, webFlutter, Swift, KMP, React Native + Unity/.NET skeletons
Message middleware (validate / filter / enrich)VariesN/AWebhooks onlyEdge pipeline before persist + broadcast
Unified room WebSocket (chat + server_event + capability)Separate channel productsPub/sub channelsChannels onlyOne WS: messages, game/IoT/live/fleet/poll fan-out, vertical capability events
Live streaming & broadcast (HLS, polls, highlights)Video product / add-onSeparate live productChannels only (no HLS stack)FluxyStream: events, broadcast, polls, AI co-host on same Worker
Real-time collab (Yjs / CRDT whiteboard)Feeds / activityPub/sub channelsN/ACollab DO adapter + Excalidraw/Yjs in SDK
Game multiplayer (matchmaking, replay, NPC)N/AN/APresence onlyFluxyGame: lobbies, authoritative ticks, D1 leaderboard
IoT & device sync (MQTT, shadow, rules)N/AIoT messaging (separate)N/AFluxyIoT: fleets, readings, rules, geofence on Worker
Fleet & live location trackingN/ALocation / maps partnersN/AFluxyFleet: trips, ETA, driver tracking APIs + fleet.gps_update on room WS
Spatial / digital twin roomsN/AN/AN/AScenes + spatial.entity_added fan-out on room WS
Voice + AI transport pipelineVoice / video add-onsSeparate productsN/AuseVoice (production) + transport fallback on room WebSocket
Cross-channel continuity & customer memoryCRM integrationsN/AN/ACDP graph + journey mapping + A2A tasks on Worker
Pricing surprises at scaleEnterprise / usage tiersUsage-basedFree tier small; connections add upCloudflare pricing you can read; MIT self-host option
Self-host / on your own accountProprietary cloudManaged-firstManaged-firstFull MIT monorepo, deploy Worker + D1 in your CF account
Socket fleet / VPS to operateManaged vendor infraManaged vendor infraManaged vendor infraNo VPS; one Room DO per room on CF edge
Next.js on Vercel + realtime (typical split)Managed cloud + your frontendAbly + Vercel tutorial patternChannels + serverless functionsVercel/Netlify UI + CF Worker chat (no Vercel WS limits)
Omnichannel inbox (mentions, unread, follow-ups)Separate feeds productN/AN/AuseInbox items feed + REST /inbox + console badge
MIT license, read and deploy the full stackProprietary cloudManaged-firstManaged-firstMIT monorepo, Worker, SDK, console, no vendor lock-in

What does it actually cost on Cloudflare?

Real numbers, not vague "contact sales" ranges. The free tier is generous; the paid tier scales with usage; self-host is just your Cloudflare bill. No per-connection pricing surprises.

FluxyChat runs entirely on your Cloudflare account. You pay Cloudflare directly no per-seat or per-message markup from us on the self-host path.

PlanMonthly messagesD1 reads / dayCost (USD)Best for
Workers Free~3M / mo (100k req/day × 30)5M / day$0Hobby · early beta · <1k MAU
Workers Paid ($5/mo)~300M+ / mo25M+ / day$5 + usageGrowing SaaS · 1k–100k MAU
Self-host on your CF accountUnlimited*Your plan limitsYour plan costEnterprise · cost-sensitive · compliance

* D1 storage cap: 10 GB on the free plan, unlimited on paid. Message fanout uses Durable Object egress see Cloudflare's current pricing for live numbers. Run pnpm run check:pricing to verify your env assumptions match the published rates.

FAQs

Questions we hear when teams compare hosted chat APIs and edge deployments.

What is the chat API vs the SDK?

Your backend talks to the Worker over HTTP. The browser uses @fluxy-chat/sdk to join a room, send, and render. Same product, two surfaces.

Can I keep the frontend on Vercel?

Yes. Lots of teams leave Next on Vercel or Netlify and run chat on Workers + Durable Objects. You skip the platform WebSocket limits and a second Pusher-style bill.

Is this Intercom, Zendesk, or a live-chat widget?

No. Those are support desks. FluxyChat is the room layer for chat inside your app: SDK, webhooks, agent timeline. You build the UI. Guide: /guides/in-app-chat-vs-support-desk.

Is this a Pusher or Ably replacement?

For tenant-scoped in-app chat on the edge, usually yes: rooms, history, reconnect, operator tools. For generic pub/sub or SMS/WhatsApp, keep those products and use FluxyChat for the chat slice.

How is this different from a fully managed vendor?

You can run the Worker and D1 in your Cloudflare account, read the MIT source, and control upgrades. Hosted cloud is there when you do not want to wire infra on day one.

Can I add moderation and webhooks?

Yes. Middleware on the edge, signed webhooks, and console pages for the boring admin work.

What are Durable Objects for chat?

Cloudflare puts shared state in a Durable Object. Chat rooms are the textbook case. FluxyChat uses one Room object per room and D1 for history. Guide: /guides/durable-objects-for-chat-rooms.

Humans and AI agents in the same room?

tool_call and tool_result ride the same WebSocket as user messages, so you replay one timeline instead of guessing what the agent did. Streaming markdown with table buffering and code fence tracking renders cleanly during AI responses. Guide: /guides/agent-events-same-websocket-stream.

What platforms do the multi-platform adapters support?

14 platforms behind a unified interface: Slack, Discord, Telegram, WhatsApp, Microsoft Teams, Email, SMS, Webhook, Matrix, and more. Each adapter handles platform-specific formatting, and the card builder renders Slack Block Kit and Teams Adaptive Cards natively.

What is MCP and how does FluxyChat use it?

Model Context Protocol lets your agents consume external tool servers. FluxyChat acts as an MCP client and auto-converts tools to LLM function-calling format. Point your agent at any MCP-compatible server.

Can I add guardrails or RAG to AI responses?

Yes. The LLM middleware pipeline supports wrapGenerate, wrapStream, and transformParams hooks. Plug in guardrails, caching, RAG injection, PII redaction, or logging on the edge before responses reach users.

Does WorkflowAgent survive deploys?

Yes. WorkflowAgent persists state to D1 after each step. If the Worker restarts or you deploy a new version, the agent resumes from the last completed step.

I finished Cloudflare's chat tutorial. Now what?

That tutorial is the right start. FluxyChat adds JWT, D1 history, reconnect in the SDK, and a console. See /guides/after-cloudflare-chat-tutorial.

Why not stay on Pusher?

You might not need to. Edge pricing you can read, self-host on your account, no socket VPS fleet. Compare at /compare.

Where should I start?

Run the quickstart for a JWT and first room, or read /guides if you are still picking between DIY Workers chat and a packaged layer.

Does a public dashboard mean anyone can spend my quota?

No. Billable calls need your JWTs and API keys. Turn on DASHBOARD_ACCESS_MODE=ack (and optional CONSOLE_GATE_SECRET) so console routes need a one-time ack first.

Build AI-native chat on infrastructure you own.

Start on the free tier with 14 platform adapters, streaming AI, and MCP tools. Run a pilot on hosted cloud, or deploy the worker in your Cloudflare account when you are ready.