I replaced ws with 2.5KB of code and deleted 14 dependencies
npm install ws = 1.2MB. For a WebSocket. I checked node_modules/ws and found 14 dependencies. To send {"type": "ping"}. So I spent a weekend fixing it. Meet @rabbx/ws: 2.5KB gzipped, zero dependencies 6.4KB minified. 2.5KB gzipped. 0 deps. Tree-shakeable. Side-effect free. Same Web Standard API you
ORIGINAL SOURCE →via Dev.to
ADVERTISEMENT
⚡ STAY AHEAD
Events like this, convergence-verified across 689 sources, land in your inbox every Sunday. Free.
GET THE SUNDAY BRIEFING →RELATED · conflict
- [CONFLICT] Intermodal Asia
- [CONFLICT] UNDRR Regional Office for Arab States
- [CONFLICT] Digital security in war and conflict: challenges for civil society and tools for resilience
- [CONFLICT] Securing the Untrusted Agentic Development Layer
- [CONFLICT] Gülistan Doku cinayetinde kilit isim Türkiye'ye geliyor! Bakan Gürlek: En yakın görgü tanığı
- [CONFLICT] Rusya Ukrayna'da geçici ateşkes ilan etti