# cloudflare/partykit

PartyKit, for Workers

Repository: https://github.com/cloudflare/partykit
Canonical: https://ross.abutalabs.com/products/cloudflare-partykit
Language: TypeScript
License: ISC
License Family: permissive
Topics: agents, ai, collaboration, durable-objects, real-time
Last push: 2026-08-03T15:14:06+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 95, release rhythm 84, longevity 59
- inputs: {"age_days": 828, "days_push": 30, "days_rel": 30, "gap_med": 0, "n_releases_24m": 188}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1252, forks 78 (observed 2026-08-28T04:04:08.473614+00:00)

## What it is
PartyServer is a TypeScript library that enhances Cloudflare Durable Objects for building real-time applications with WebSockets, lifecycle hooks, and broadcasting. It includes companion packages for resilient WebSocket clients, Yjs collaborative editing, pubsub at scale, state sync, and task scheduling.

## Use cases
- build real-time multiplayer apps on Cloudflare Workers
- add websocket rooms with broadcasting to Durable Objects
- implement collaborative editing with Yjs and CRDTs
- run pubsub at scale across global Durable Object instances
- sync server state to clients in real time
- schedule tasks at scale on Workers
- build AI agents with persistent realtime connections

## When to choose
- you are building on Cloudflare Workers and Durable Objects
- you need realtime websocket features with reconnection and resilience
- you want collaborative editing or multiplayer state sync
- you need pubsub or scheduled tasks backed by Durable Objects

## When to avoid
- you are not deploying on Cloudflare Workers
- you need a self-hosted realtime server outside Cloudflare
- you need a fully mature, long-stable library rather than a work in progress

## Facets
- artifact type: library
- maturity: active
- function: websocket, rpc, middleware, state-management, scheduling
- domain: web-development, developer-tools
- platform: -
- tags: durable-objects, cloudflare-workers, realtime, collaboration, yjs, crdt, pubsub, partykit, real-time, ai-agents, cloudflare, nodejs, typescript, web-server

## Member repositories
- cloudflare/partykit (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:08.473614+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:07:32.529777+00:00, confidence not recorded.
  - readme: https://github.com/cloudflare/partykit (fetched 2026-08-28T04:04:08.473614+00:00, sha 204e7836db27)
- Data as of 2026-08-30T08:39:29.467469+00:00.
