crossws
Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers
Last updated a month ago by pi0 .
MIT · Repository · Original npm · Tarball · package.json
$ npm install crossws 
SYNC missed versions from official npm registry.

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

<summary>Local development</summary>
  • 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

Current Tags

  • 0.4.17                                ...           latest (a month ago)

35 Versions

  • 0.4.17                                ...           a month ago
  • 0.4.16                                ...           a month ago
  • 0.4.15                                ...           2 months ago
  • 0.4.14                                ...           2 months ago
  • 0.4.13                                ...           2 months ago
  • 0.4.12                                ...           3 months ago
  • 0.4.11                                ...           3 months ago
  • 0.4.10                                ...           5 months ago
  • 0.4.9                                ...           5 months ago
  • 0.4.8                                ...           5 months ago
  • 0.4.7                                ...           5 months ago
  • 0.4.6                                ...           6 months ago
  • 0.4.5                                ...           8 months ago
  • 0.4.4                                ...           10 months ago
  • 0.4.3                                ...           10 months ago
  • 0.4.2                                ...           10 months ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.5                                ...           2 years ago
  • 0.3.4                                ...           2 years ago
  • 0.3.3                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.4                                ...           3 years ago
  • 0.2.3                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Total 112
Today 0
This Week 3
This Month 78
Last Day 0
Last Week 47
Last Month 34
Dependencies (0)
None
Dev Dependencies (29)

© 2010 - cnpmjs.org x YWFE | Home | YWFE