JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2492627
  • Score
    100M100P100Q201700F
  • License MIT

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

Package Exports

  • crossws
  • crossws/adapters/bun
  • crossws/adapters/cloudflare
  • crossws/adapters/deno
  • crossws/adapters/node
  • crossws/adapters/sse
  • crossws/adapters/uws
  • crossws/server
  • crossws/server/bun
  • crossws/server/deno
  • crossws/server/node
  • crossws/websocket
  • crossws/websocket/sse

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