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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

39485dc Β· Mar 8, 2025
Feb 10, 2025
Feb 10, 2025
Jan 21, 2025
Mar 8, 2025
Feb 10, 2025
Feb 10, 2025
Dec 7, 2023
Aug 15, 2024
Jan 29, 2024
Dec 7, 2023
Feb 10, 2025
Dec 7, 2023
Aug 7, 2024
Jan 22, 2025
Oct 18, 2024
Mar 8, 2025
Mar 8, 2025
Jan 29, 2024
Dec 7, 2023
Feb 10, 2025
Aug 6, 2024

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