
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
blue-rpc-protocol
Advanced tools
BlueRPC is a fast RPC protocol that uses WebSockets and MessagePack. It solves real-world problems and is very easy to use.
In BlueRPC, streams are first-class data types. You can send streams just like any other value, and BlueRPC automatically handles things like cancellation and backpressure.
Since streams are just regular values, you can easily mix them with structured data, unlike HTTP (where you'd need to use headers or "multipart/form-data" for structured data) or gRPC (where there's no way to directly represent a byte stream) or JSON-RPC (which doesn't support streaming).
Here are its features:
BlueRPC can be implemented in any general-purpose programming language. This repository contains a specification and a reference implementation for JavaScript (compatible with Node.js and browsers).
npm install blue-rpc-protocol
Requires Node.js v16.x.x or later, or any modern browser.
const http = require('http');
const BlueRPC = require('blue-rpc-protocol');
const methods = {
echo: (param) => {
return param;
}
};
await BlueRPC.listen({
methods,
server: http.createServer(),
logger: console.log
});
const BlueRPC = require('blue-rpc-protocol');
const client = BlueRPC.createClient('ws://localhost');
const result = await client.invoke('echo', 'foo');
console.log('result:', result); // => "result: foo"
FAQs
A fast RPC protocol that uses WebSockets and MessagePack
The npm package blue-rpc-protocol receives a total of 2 weekly downloads. As such, blue-rpc-protocol popularity was classified as not popular.
We found that blue-rpc-protocol demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.