PartyKit is a collection of open-source TypeScript libraries that make it easy to build real-time, collaborative, and multiplayer applications on Cloudflare Workers. At its core, partyserver enhances Durable Objects with a clean WebSocket lifecycle API, while partysocket gives clients a resilient, auto-reconnecting WebSocket. Together they provide everything you need — from live cursors and collaborative text editing to AI agent orchestration and pub/sub at scale.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/cloudflare/partykit/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
Build and deploy your first real-time app in minutes
How It Works
Understand the Durable Object model powering PartyKit
API Reference
Full API docs for partyserver, partysocket, and all packages
Guides
Deep dives into routing, auth, storage, scaling, and more
Core Packages
partyserver
Durable Object base class with lifecycle hooks, broadcasting, and hibernation support
partysocket
Auto-reconnecting WebSocket client with message buffering and React hooks
y-partyserver
Add Yjs CRDT collaborative editing to any PartyServer with one import
partysub
Pub/sub at scale across distributed Durable Object shards
partywhen
Schedule tasks by cron, delay, or exact time using Durable Object alarms
partytracks
Observable-based WebRTC audio/video via Cloudflare Realtime SFU
Popular Use Cases
Multiplayer Apps
Shared state and real-time sync
Live Chat
Room-based messaging with broadcast
Presence
Show who’s online in real time
Collaborative Editing
Yjs-powered rich text and code editors
AI Agents
Long-running agents with durable state
Hono Integration
Drop PartyServer into any Hono app