{
 "kind": "tool",
 "slug": "partysocket",
 "path": "tools/partysocket/",
 "name": "PartySocket",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "HTTP clients and networking",
   "tools/http-clients/"
  ]
 ],
 "lead": "Robust WebSocket client with reconnection, multiplexing and PartyKit support.",
 "chips": [
  {
   "label": "HTTP clients and networking",
   "path": "tools/http-clients/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install partysocket"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/cloudflare/partykit"
  },
  {
   "label": "Website",
   "href": "https://docs.partykit.io/reference/partysocket-api"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/cloudflare/partykit"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Aug 3, 2026",
   "note": "Latest GitHub release Aug 3, 2026. ",
   "src": "https://github.com/cloudflare/partykit"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "2 projects",
   "status": "info",
   "sub": "#84 of 126 in its category",
   "note": "Dependency in 2 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What PartySocket does",
   "parts": [
    {
     "t": "prose",
     "text": "Robust WebSocket client with reconnection, multiplexing and PartyKit support."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "PartySocket popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "46",
       "of": "/ 100",
       "l": "Gid Score, #2427 overall"
      },
      {
       "n": "5.1M",
       "l": "downloads a week, npm"
      },
      {
       "n": "1,318",
       "l": "GitHub stars"
      },
      {
       "n": "2",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How PartySocket is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "PartySocket joined the catalog on its public numbers (5,065,612 downloads a week on npm and 1,318 GitHub stars), not on our project count: it is a dependency in 8 public GitHub projects of our scan, 2 of them set up for AI coding agents.",
      "The most used alternative in our scan is ws (204 projects).",
      "Projects that use it most often also use ESLint (75.0%), react-markdown (37.5%), react-resizable-panels (37.5%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 75.0% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 37.5% of its projects",
       "v": "react-markdown",
       "path": "tools/react-markdown/"
      },
      {
       "l": "In 37.5% of its projects",
       "v": "react-resizable-panels",
       "path": "tools/react-resizable-panels/"
      },
      {
       "l": "In 37.5% of its projects",
       "v": "remark-gfm",
       "path": "tools/remark-gfm/"
      },
      {
       "l": "In 37.5% of its projects",
       "v": "tw-animate-css",
       "path": "tools/tw-animate-css/"
      },
      {
       "l": "In 37.5% of its projects",
       "v": "AI SDK",
       "path": "tools/ai/"
      },
      {
       "l": "In 87.5% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 50.0% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about PartySocket",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in HTTP clients and networking",
       "path": "tools/http-clients/",
       "items": [
        {
         "text": "Axios",
         "path": "tools/axios/"
        },
        {
         "text": "Requests",
         "path": "tools/requests-py/"
        },
        {
         "text": "httpx",
         "path": "tools/httpx/"
        },
        {
         "text": "postgres",
         "path": "tools/postgres/"
        },
        {
         "text": "aiohttp",
         "path": "tools/aiohttp/"
        },
        {
         "text": "websockets",
         "path": "tools/websockets/"
        },
        {
         "text": "redis (Python)",
         "path": "tools/redis-pypi/"
        },
        {
         "text": "undici",
         "path": "tools/undici/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "PartySocket",
       "me": true,
       "facts": [
        "MIT",
        "Gid 46",
        "5.1M/wk"
       ]
      },
      {
       "name": "ws",
       "why": "Simple, fast WebSocket client and server for Node.js with full RFC support.",
       "path": "tools/ws/",
       "facts": [
        "MIT",
        "Gid 82",
        "427M/wk"
       ]
      },
      {
       "name": "Socket.IO Client",
       "why": "Real-time bidirectional communication library for JavaScript with fallbacks.",
       "path": "tools/socket-io-client/",
       "facts": [
        "MIT",
        "Gid 80",
        "22.3M/wk"
       ]
      }
     ],
     "more": "Compare PartySocket with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install partysocket"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for PartySocket yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm partysocket"
  ],
  [
   "Category",
   "HTTP clients and networking"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "46.1"
  ],
  [
   "Rank in category",
   "#84 of 126"
  ],
  [
   "GitHub",
   "cloudflare/partykit"
  ],
  [
   "Last change",
   "Aug 3, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/cloudflare.png"
}