
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
simpleremote
Advanced tools
Simple Remote Object implementation. It wraps up a Javascript object to use it from other process.
Via npm on Node:
npm install simpleremote
Reference it from your program:
var simpleremote = require('simpleremote');
Declare and expose an object using a server:
var obj = {
add: function(x,y) {
return x + y;
}
};
var server = simpleremote.createRemoteServer(obj);
server.listen(port);
Consuming the remote object from a client:
var client = simpleremote.createRemoteClient();
client.on('remote', function (remote) { // receives an proxy object to remote object
remote.add(1, 2, function (err, value) {
console.log(value); // prints 3
};
});
client.connect(port, host);
Declare and expose an object using a client:
var obj = {
add: function(x,y) {
return x + y;
}
};
var client = simpleremote.createRemoteClient(obj);
client.connect(port, host);
Consuming the remote object from a server:
var server = simpleremote.createRemoteServer();
server.on('remote', function (remote) { // receives an proxy object to remote object at client connection
remote.add(1, 2, function (err, value) {
console.log(value); // prints 3
};
});
server.listen(port);
You can combine both methods.
If the remote method to invoke has a callback as last parameter, you must declare its name at exposing the object:
var obj = {
addAsync: function(x,y, cb) {
// ...
cb(null, x + y);
}
};
var client = simpleremote.createRemoteClient(obj, ['addAsync']);
var obj = {
addAsync: function(x,y, cb) {
// ...
cb(null, x + y);
}
};
var server = simpleremote.createRemoteServer(obj, ['addAsync']);
TBD: Registry support.
git clone git://github.com/ajlopez/SimpleRemote.git
cd SimpleRemote
npm install
npm test
Feel free to file issues and submit pull requests � contributions are welcome.
If you submit a pull request, please be sure to add or update corresponding
test cases, and ensure that npm test continues to pass.
FAQs
Simple Remote Objects for Node.js
We found that simpleremote 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.