{"library":"xrs","type":"library","category":null,"description":"xrs is a JavaScript library designed for building reactive servers and clients, currently at version 1.2.2. It facilitates full-duplex communication by treating both client requests and server responses as streams, promises, or plain values. The server component integrates the Express framework for routing and μWS (uws) for high-performance WebSocket handling, enabling efficient management of both HTTP and WebSocket connections. A key differentiator is its emphasis on stream-based interactions, allowing complex real-time data flows and supporting features like binary uploads with progress event tracking. The client-side library is designed to be lightweight, bundling at approximately 3 KB. While specific release cadence information is not provided, the current version suggests it is either actively maintained or stable. It's suitable for applications requiring low-latency, real-time communication with built-in stream processing capabilities.","language":"javascript","status":"active","version":"1.2.2","tags":["javascript","reactive","server","express","uws"],"last_verified":"Wed May 27","install":[{"cmd":"npm install xrs","imports":["import xrs from 'xrs';\nconst server = xrs({ port: 3000, processor: req => 'ack' });","import xrs from 'xrs';\nconst send = xrs('ws://localhost:3000');","import xrs from 'xrs';\nconst xrsServer = xrs({ port: 3000, processor: req => 'ack' });\nxrsServer.http.on('listening', () => console.log('Server is live'));"]},{"cmd":"yarn add xrs","imports":[]},{"cmd":"pnpm add xrs","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/xrs","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/xrs/compatibility"}}