
Security News
Microsoft Releases Open Source Toolkit for AI Agent Runtime Security
Microsoft has released an open source toolkit for enforcing runtime security policies on AI agents as adoption accelerates faster than governance controls.
dnode-spider
Advanced tools
asynchronous rpc system for node.js, bi-direction and poly-direction communication...
dnode-spider is an asynchronous rpc system for node.js based on dnode-protocol and TCP sockets. Fly-Clients nodes and Spider-Server in the middle of web.
Fly === Client. Spider === Server.

npm i dnode-spider
server.js:
var dnode = require('dnode-spider');
/** create Spider-Server */
var server = new dnode.Spider({
s: function (a, b, cb) {
cb(a + b, 'Hello from Spider!');
}
}, {port: 5000, host: 'localhost'});
/** on connection call client function "c" */
server.on('connection', function(remote) {
remote.c(1, 2, function(res, hello) {
console.log(res, hello);
});
});
client.js:
var dnode = require('dnode-spider');
/** create Fly-Client */
var client = new dnode.Fly({
c: function (a, b, cb) {
cb((a + b) * 2, 'Hello from Fly! My name: '+client.nodeId);
}
}, {port: 5000, host: 'localhost', nodeId: 'Fly1'});
/** on connection call client function "s" */
client.on('connection', function(remote) {
remote.s(1, 2, function(res, hello) {
console.log(res, hello);
});
});
output:
node server.js &
node client.js &
3 'Hello from Spider!'
6 'Hello from Fly! My name: Fly1'
var dnode = require('dnode-spider')
Create new Spider-Server, shard api object functions to all connected Fly-s. If you don't like dnode.Spider classname, you can use dnode.Server. dnode.Server === dnode.Spider
After creation in api object add '$' object with 2 methods: 'proxy' and 'ids'. This methods availible in all Fly-s remote.
Call method with 'methodname' from Fly with id = 'nodeId'.
Return Array of all Id connected to Spider
Broad cast call 'methodname' on all Fly and pass to each arguments
Return ids of all connected clients
server.on('connection', function(remote, client) {}); // client connected
server.on('disconnection', function(client) {}); // client disconnected
Create new Fly-Client, shard api object functions to Spider-Server. If you don't like dnode.Fly classname, you can use dnode.Client. dnode.Client === dnode.Fly
server.on('connection', function(remote) {}); // client connected
FAQs
asynchronous rpc system for node.js, bi-direction and poly-direction communication...
The npm package dnode-spider receives a total of 18 weekly downloads. As such, dnode-spider popularity was classified as not popular.
We found that dnode-spider 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
Microsoft has released an open source toolkit for enforcing runtime security policies on AI agents as adoption accelerates faster than governance controls.

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.