partykit
Installation
SKILL.md
PartyKit
Real-time infrastructure on Cloudflare's edge. Stateful WebSocket servers with on-demand rooms, global distribution, and Durable Objects backing.
Quick Start
npm create partykit@latest my-app
cd my-app
npm run dev
Server (party/index.ts)
import type * as Party from "partykit/server";
export default class Server implements Party.Server {
constructor(readonly room: Party.Room) {}