PartyKit's hosted platform shut down in October 2026 (deploys stopped 16 Oct, platform off 23 Oct). The open-source Server still runs on your own Cloudflare account — but if you were hosted, or you want the productized room instead of the raw primitive, here is the honest mapping.
First, establish where your state lives
- Hosted *.partykit.dev rooms: gone unless you exported data before the shutdown. There is nothing to migrate from the hosted side.
- Self-deployed on your Cloudflare account: your Durable Object storage is untouched. Export it from your still-running server before you cut over.
- Decide the fork: keep self-deployed PartyKit OSS unchanged, or move to FluxyChat rooms (MIT self-host on the same account, or hosted beta).
Map the room
- Party.name (the Server class) + room id → one FluxyChat room per tenant object. Keep the same ids: roomId is just a string scoped to your project.
- PartySocket / usePartySocket(host, party, room) → FluxyRealtimeProvider + useChat({ roomId }) from @fluxy-chat/react.
- room.getConnections() presence → SDK presence (usePresence / sendCursor). FluxyChat presence is room state, not a separate presence service.
import { FluxyRealtimeProvider, useChat } from "@fluxy-chat/react";
function Room() {
const { messages, sendMessage, connectionState } = useChat({ roomId: "general" });
// messages replay from D1 after reconnect — no client-side buffer to rebuild
}
Map Server.onMessage custom protocols
PartyKit gives you a raw Server class: onConnect, onMessage, onClose, onRequest, plus room.storage and room.broadcast. FluxyChat is a productized room, not a generic onMessage runtime — deliberate. User content becomes messages; system and server-originated events become feed messages or HTTP-ingested events on the same room timeline.
- ws.send JSON protocols → message content + metadata for user-visible events; feed messages (kind: "agent" / system) for traces your users should see but not reply to.
- Your custom server logic (game rules, moderation, summarizers) stays yours: keep it in your Worker/API and publish into the room over HTTP or the MCP send_message tool.
- room.broadcast() → the SDK fan-out. You stop managing connection sets; the Durable Object owns them and hibernates when quiet.
Map storage and Yjs
- room.storage (Durable Object storage) → D1 history for messages. FluxyChat does not silently swallow your DO storage: export yours first, then decide what belongs in message history vs your own tables.
- y-partykit provider → FluxyYjsProvider from @fluxy-chat/sdk/yjs, nested under FluxyRealtimeProvider on the same room. Awareness and document sync ride the room socket.
- Chat threads are not document comments: FluxyChat nests replies under messages (parentId). If your PartyKit app used comments on artifacts, keep that surface separate or mirror it as messages with a link back.
Auth: the part PartyKit left to you
PartyKit rooms are open unless you add auth yourself. FluxyChat ships the two modes you actually need: public rooms join with a publishable pk_ key from the browser; private rooms use a member JWT minted on your server (fc_ credentials never ship to the client).
- Public demo/widget room → publishableKey on the provider. Anyone can join; treat content as public.
- Tenant room → mint a short-lived member JWT per user on your server, pass it to the provider. Revoke by expiry.
- Server-to-room publishing (bots, ingest) uses your API key/JWT server-side — the same credentials your backend already holds.
Cutover checklist
- Export any DO storage you still own; snapshot hosted data if you have it anywhere.
- Stand up the FluxyChat Worker (hosted beta project or MIT fork on your account) and create the room ids 1:1.
- Swap the client transport (one provider, one hook) and re-point server publishers.
- Run the two-tab check: same user in two tabs sees one identity with a member JWT; different seats do not see each other's whispers.
- Keep the PartyKit deployment dark-launched until the new room survives a hibernation/reconnect cycle, then decommission.
- Stuck mid-migration? The hosted pilot program (/pilot) includes migration help from PartyKit, Pusher, Ably, Stream, or Liveblocks under a written agreement.
When to stay on self-deployed PartyKit
If your Server class logic is the product — game simulation, trading engine, custom sync protocol — and it already runs well on your own Cloudflare account, the shutdown changes nothing for you. FluxyChat is for teams who want tenant chat rooms with agents and history, not a raw socket runtime. Cloudflare's own Agents SDK is the other supported path for durable agent primitives; FluxyChat builds the room above it.
Topics: partykit alternative · partykit shutdown migration · partyserver to durable objects · partysocket migration · y-partykit alternative