websocket-framed
JSON →Framed WebSocket Communication library for Node.js and browser (version 1.2.9, last updated 2023). It wraps WebSocket messages in a frame data structure (fid, rid, type, data) and supports three serialization codecs: JSON, CBOR, and MsgPack. This enables complex data serialization, type annotation, and request/response correlation. The library is lightweight (<5KB), has zero runtime dependencies, and works with standard WebSocket API. It is available as CommonJS only, with no ESM or TypeScript type definitions. Release cadence is low; the last release was in 2023.
Resources
packagewebsocket-framed ↗