Skip to content
/ crossws Public

๐Ÿ”Œ Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers.

License

Notifications You must be signed in to change notification settings

unjs/crossws

Repository files navigation

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.

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