rpc-websockets
JSON-RPC 2.0 over WebSockets for Node.js real-time communication.
HTTP clients and networking npm LGPL-3.0-only
Used in agent projects
34
0.3% of 12,697 public repos built with AI coding agents
Rank in http clients and networking
#24 of 29
by use in those projects
Downloads
2.1M
npm, last 7 days, rpc-websockets
GitHub stars
626
last push May 15, 2026
How rpc-websockets is used
rpc-websockets is a dependency in 34 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.3%), #24 of 29 in http clients and networking. The most used alternative there is Axios. Projects that use it most often also use Solana Web3.js (100.0%), Anchor (67.6%), Solana SPL Token (52.9%).
Often used with rpc-websockets
| Solana Web3.js | 100.0% of rpc-websockets projects · 6.0× more than average |
|---|---|
| Anchor | 67.6% of rpc-websockets projects · 19.6× more than average |
| Solana SPL Token | 52.9% of rpc-websockets projects · 7.3× more than average |
| ts-node | 41.2% of rpc-websockets projects · 6.0× more than average |
| dotenv | 47.1% of rpc-websockets projects · 3.0× more than average |
| TypeScript | 88.2% of rpc-websockets projects · 1.6× more than average |
| Chai | 26.5% of rpc-websockets projects · 11.0× more than average |
| Mocha | 23.5% of rpc-websockets projects · 10.6× more than average |
Install
| Package | npm install rpc-websockets |
|---|---|
| Main stacks | TypeScript / JavaScript (21), Rust (9), Next.js (4) |
| Example projects | outsmartchad/onchain-dex-cli, Cryptorubic/rubic-app, kazinarka/pumpfun-scripts, YadlaMani/stablecoin-contract, expand-network/sdk-nodejs |
Alternatives to rpc-websockets
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Axios npm Promise-based HTTP client for browser and Node.js with interceptors. |
1,264 (10.0%) | 115M | 109K | MIT |
| Requests pypi Elegant Python HTTP library for making web requests. |
675 (5.3%) | 309M | 54.6K | Apache-2.0 |
| aiohttp pypi Async HTTP client/server framework for Python with WebSocket support. |
295 (2.3%) | 117M | 16.6K | — |
| ws npm Simple, fast WebSocket client and server for Node.js with full RFC support. |
287 (2.3%) | 283M | 22.8K | MIT |
| websockets pypi WebSocket implementation for Python with RFC 6455 and 7692 compliance. |
286 (2.3%) | 109M | 5,732 | — |
| httpx pypi Modern Python HTTP client with async support, replacing the standard requests library. |
266 (2.1%) | 16M | 15.6K | BSD-3-Clause |
| node-fetch npm Bring the Fetch API to Node.js for making HTTP requests. |
219 (1.7%) | 207M | 8,852 | MIT |
| urllib3 pypi HTTP client with thread-safe connection pooling, file uploads and advanced features. |
193 (1.5%) | 338M | 4,071 | — |