ws vs Socket.IO
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, ws is a dependency in 204 (4.2%) and Socket.IO in 58 (1.2%): ws is 3.5× as common. Among repos created in the last 90 days that use a http clients and networking tool, ws is in 37.1% and Socket.IO in 2.9%, against 18.5% and 5.5% of older ones. 9 projects list both, often a sign of a migration or of a monorepo with several apps.
HTTP clients and networking npm Updated Nov 17, 2026
Side by side
| ws | Socket.IO | |
|---|---|---|
| Agent projects that use it | 204 | 58 |
| Rank in http clients and networking | #4 | #16 |
| In new repos with a http clients and networking tool (last 90 days) | 37.1% | 2.9% |
| In older repos with one | 18.5% | 5.5% |
| Downloads, last 7 days | 409M | 25M |
| GitHub stars | 22.8K | 63.2K |
| Last push to its repo | Nov 16, 2026 | Nov 17, 2026 |
| License | MIT | MIT |
| Funding | — | Yes |
| Projects that list both | 9 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | ws | Socket.IO |
|---|---|---|---|
| Claude Code | 2,617 | 5.5% | 1.3% |
| GitHub Copilot | 2,350 | 3.8% | 0.9% |
| Cursor | 1,990 | 3.3% | 1.4% |
| Gemini CLI | 422 | 7.8% | 2.1% |
| OpenAI Codex | 409 | 4.2% | 0% |
| OpenCode | 304 | 4.6% | 0% |
| OpenClaw | 241 | 22.4% | 0% |
| Devin Desktop | 231 | 6.5% | 0% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
ws
Simple, fast WebSocket client and server for Node.js with full RFC support.
Most often used with it:
| tsx | 57.4% of its projects |
|---|---|
| dotenv | 52.5% of its projects |
| Zod | 64.7% of its projects |
| Express | 41.2% of its projects |
| Vitest | 58.3% of its projects |
npm install ws
Socket.IO
Real-time bidirectional communication library for Node.js with fallback transports.
Most often used with it:
| dotenv | 69.0% of its projects |
|---|---|
| Socket.IO Client | 67.2% of its projects |
| Express | 58.6% of its projects |
| tsx | 51.7% of its projects |
| Lucide React | 58.6% of its projects |
npm install socket.io
More matchups
ws vs Socket.IO ClientRequests vs httpxhttpx vs aiohttpAxios vs node-fetchAxios vs undicihttpx vs urllib3Requests vs urllib3
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.