{"library":"js-rpc2","type":"library","category":null,"description":"A lightweight RPC library for JavaScript/TypeScript enabling client-server communication over HTTP and WebSocket. Supports strings, binary data, objects, arrays, and callbacks for progress feedback. Current stable version is 2.6.1. Integrates with Koa router for server-side setup. Ships TypeScript definitions. Differentiated by simple API and broad data type support, including Uint8Array.","language":"javascript","status":"active","version":"2.6.1","tags":["javascript","js","web","http","websocket","rpc","electron","chrome","extensions","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install js-rpc2","imports":["import { createRpcClientHttp } from 'js-rpc2/src/client.js'","import { createRpcClientWebSocket } from 'js-rpc2/src/client.js'","import { createRpcServerKoaRouter } from 'js-rpc2/src/server.js'"]},{"cmd":"yarn add js-rpc2","imports":[]},{"cmd":"pnpm add js-rpc2","imports":[]}],"homepage":"https://github.com/yuanliwei/js-rpc#readme","github":"ssh://git@github.com/yuanliwei/js-rpc","docs":null,"changelog":null,"pypi":null,"npm":"js-rpc2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}