Cloudflare has acquired PartyKit, the open source platform for deploying real-time, collaborative, multiplayer applications. PartyKit started in 2022 as a project to explore the capabilities of Durable Objects and expose them through familiar components, so developers could configure behavior for those objects and deploy to Cloudflare in seconds. Its integrations with libraries such as Yjs and React made it usable for multiplayer games and collaborative drawing tools, among other use cases.

Cloudflare acquires PartyKit to allow developers to build real-time multi-user applications

Stateful serverless and the Durable Objects model

Real-time applications on the web have traditionally been a distributed systems problem: teams had to provision and manage infrastructure and databases to hold state across multiple clients. Cloudflare introduced Durable Objects in 2020 to address this. Unlike regular serverless functions, which are ephemeral and stateless, Durable Objects retain state across requests and serve as a synchronization point for clients. Paired with WebSockets, they support applications from multiplayer games to collaborative drawing tools.

PartyKit's approach avoids the external databases that conventional designs rely on for state, which complicate scalability and raise costs. Instead, stateful serverless functions behave as if running on a single machine while maintaining state across requests. Thousands of these "machines" can be spun up globally, each holding its own state. Cloudflare frames PartyKit as a complement to traditional serverless computing rather than a replacement.

WebSockets, games and local-first work

Scaling bidirectional WebSocket communication to millions of users has long been the hard part. Cloudflare positions Workers as the serverless framework for making chat services, multiplayer games and collaborative tools scalable. Durable Objects add persistent connections where the stateless model had none, and the combined toolkit is aimed at low-latency use cases such as gaming, where delay defines the experience.

Local-first applications follow the same premise: work should not stop when the network does. Data is stored on the client and synced when the connection returns, so a document can be edited while offline and its state restored later. Cloudflare says its vision, enhanced by PartyKit's technology, is to make local-first the standard for application development.

What changes for existing users

  • Existing PartyKit projects will continue to work as expected.
  • New features are planned, including the ability to create and use PartyKit projects inside existing Workers and Pages projects.
  • Commercial use of PartyKit carries no extra charges beyond standard usage charges for Cloudflare Workers and other services.
  • The roadmap will expand to integrations with popular frameworks and libraries, including React, Vue and Angular.

The acquisition extends Cloudflare's long-running argument that the next stage of serverless computing is stateful. Building real-time experiences was previously within reach only of large companies; Cloudflare says primitives like Durable Objects on the edge now put them within reach of regular developers and teams.