Crossws
๐ Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers.
Install / Use
/learn @h3js/CrosswsREADME
crossws
<!-- automd:badges --> <!-- /automd -->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
<details> <summary>Local development</summary>- 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
<!-- automd:contributors license=MIT author="pi0" -->Published under the MIT license. Made by @pi0 and community ๐ <br><br> <a href="https://github.com/h3js/crossws/graphs/contributors"> <img src="https://contrib.rocks/image?repo=h3js/crossws" /> </a>
<!-- /automd --> <!-- automd:with-automd -->๐ค auto updated with automd
<!-- /automd -->Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot ๅฏๅชไฝๆถๅ่ฝๅใไฝฟ็จ <qqmedia> ๆ ็ญพ๏ผ็ณป็ปๆ นๆฎๆไปถๆฉๅฑๅ่ชๅจ่ฏๅซ็ฑปๅ๏ผๅพ็/่ฏญ้ณ/่ง้ข/ๆไปถ๏ผใ
