Logo of crossws


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

Elegant, typed, and simple interface to implement platform-agnostic WebSocket servers.

👉 📖 documentation


🧩 Seamlessly integrates with, Bun, Deno, Cloudflare Workers and Node.js (ws || uWebSockets).

🚀 High-performance server hooks, avoiding heavy per-connection events API (why)

📦 No external dependencies, includes ws for Node.js support

💡 Extremely lightweight and tree-shakable packaging with ESM and CJS support

🔍 Developer-friendly object logging

This project and API are under development.


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


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