crossws
Unified WebSocket Servers

elegant, typed, and simple toolkit to implement cross-platform WebSocket servers.

๐Ÿงฉ Pluggable

Seamlessly integrates with Bun, Cloudflare Workers, Deno and Node.js and any compatible web framework.

๐Ÿ“ฆ Lightweight

Extremely lightweight and tree-shakable conditional ESM exports. Prebundled with ws for Node.js support.

๐Ÿš€ Made for Performance

High-performance and simple hooks API, without per-connection callback creation.

๐ŸŒŸ Developer Friendly

Typed hooks API and developer-friendly object inspection.