Description
PartyServer is a set of libraries for building real-time applications with Cloudflare Workers and Durable Objects. The repository is the main home of PartyServer, which the README says is a work in progress. The core library enhances a standard Durable Object so it is easier to use for WebSockets, and it adds lifecycle hooks and broadcasting. PartySocket is a WebSocket client with reconnection, buffering and resilience. Y-PartyServer adds Yjs support, the CRDT library for real-time collaborative editing, with utility hooks to load and save Yjs documents from external storage. partysub is a pubsub library for scale, which can back a room with several Durable Object instances spread across configurable locations. partysync is an experimental library for synchronizing state from a Durable Object to a client, and partywhen is a library for scheduling tasks at scale. hono-party is middleware that lets the Hono web framework handle PartyServer requests. The repository also has a fixtures directory with small self-contained examples showing different ways to use PartyServer. The project is open source on GitHub under the Cloudflare organization. It is aimed at developers who want to build collaborative or real-time features on Cloudflare's platform.…
Highlights
- WebSocket-focused Durable Object base library
- Reconnecting, buffering WebSocket client
- Yjs support for real-time collaborative editing
- Scalable pubsub and task scheduling libraries
- Hono middleware and small examples
Ratings & Reviews
No ratings yet
Be the first to rate Partykit.
People also visit

websocket-engineer
Building real-time communication systems with WebSockets or Socket.IO
Partykit FAQ
What is PartyServer?
A set of libraries for real-time apps on Cloudflare Workers, built on Durable Objects and inspired by PartyKit.
What does PartySocket do?
It is a WebSocket client library with reconnection, buffering and resilience.
Can I build collaborative editing?
Y-PartyServer adds Yjs, a CRDT library for real-time collaborative editing, with hooks to load and save documents.
Is it production ready?
The README says the project is a work in progress.
Where are the examples?
In the fixtures directory, which has small self-contained examples of PartyServer.
Is it open source?
Yes. The source is on GitHub under the cloudflare organization.
What are the best Partykit alternatives?
Popular alternatives to Partykit include Party, Liveblocks and Livekit. See all Partykit alternatives


