crossws

Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers

MIT 24 个版本
安装
npm install crossws
yarn add crossws
pnpm add crossws
bun add crossws
README

crossws

npm version npm downloads

Elegant, typed, and simple toolkit to implement cross-platform WebSocket servers.

👉 📖 documentation

Features

🧩 Seamlessly integrates with Bun, Cloudflare Workers, Deno and Node.js and any compatible web framework.

✅ Prebundled with ws for Node.js support with alternative/much faster uWebSockets adapter.

📦 Extremely lightweight and tree-shakable conditional ESM exports.

🚀 High-performance and simple hooks API, without per-connection callback creation.

🌟 Typed hooks API and developer-friendly object inspection.

[^1]: crossws supports Node.js via npm:ws (prebundled) or uWebSockets.js.

Contribution

Local development
  • Clone this repository
  • Install the latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run examples using pnpm play: scripts

License

Published under the MIT license. Made by @pi0 and community 💛


🤖 auto updated with automd

版本列表
0.4.6 2026-06-09
0.4.5 2026-04-10
0.4.4 2026-01-27
0.4.3 2026-01-19
0.4.2 2026-01-19
0.4.1 2025-05-23
0.4.0 2025-05-23
0.3.5 2025-05-07
0.3.4 2025-02-10
0.3.3 2025-01-24
0.3.2 2025-01-22
0.3.1 2024-09-10
0.3.0 2024-09-04
0.2.4 2024-02-26
0.2.3 2024-02-25
0.2.2 2024-02-25
0.2.1 2024-02-25
0.2.0 2024-02-25
0.1.3 2024-02-24
0.1.2 2024-02-24
0.1.1 2024-01-29
0.1.0 2024-01-29
0.0.1 2023-12-07
0.0.0 2023-12-06